Code Monkey home page Code Monkey logo

flair-fairy's Introduction

Reddit Flair Fairy

What is the Flair Fairy?

The Flair Fairy is a reddit bot I made for /r/badcode that adds flair to user's posts listing what language their posted code snippet uses.

What license is it released under?

It is released under the Unlicense. In other words do what you like, doesn't matter to me.

Can I help?

Super yes, if you want to add more features to it, fork and send a pull request. I'd be very appreciative.

What dependencies do I need?

easy_install reddit and requests then you're all set to go! Was written to work with most versions of python, let me know if you have trouble though.

flair-fairy's People

Contributors

brownhead2 avatar damgaard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flair-fairy's Issues

"Moderator Required"

When I left the bot running for awhile this error (see below) eventually occurred. I feel as if this is most likely due to the session timing out or some other such nonsense.

It crashed the bot, so this should definitely be taken care of. A possible solution may be to simply have a script that constantly restarts the bot when it goes down.

Traceback (most recent call last):
  File "reddit-flair-fairy.py", line 153, in <module>
    i.set_flair(map_name(language.lower()))
  File "/usr/lib/python2.6/site-packages/reddit-1.3.8-py2.6.egg/reddit/objects.py", line 613, in set_flair
    return self.subreddit.set_flair(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/reddit-1.3.8-py2.6.egg/reddit/objects.py", line 719, in set_flair
    return self.reddit_session.set_flair(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/reddit-1.3.8-py2.6.egg/reddit/decorators.py", line 204, in login_required_function
    return function(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/reddit-1.3.8-py2.6.egg/reddit/decorators.py", line 215, in moderator_required_function
    six.text_type(self.user))
reddit.errors.ModeratorRequired: u'FlairFairy' is not moderator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.