Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

A reddit bot that responds to movie quotes from comments in /r/PrequelMemes.

License

Notifications You must be signed in to change notification settings

mike-eason/anakin-reddit-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anakin Bot

A reddit bot that responds to movie quotes from comments in /r/PrequelMemes. It uses Regular Expressions to influence the comments to create... Memes.

Conditions

In responses.json defines all of the possible comments to look for and defines arrays of possible responses to said comments. The bot will look for a key phrase using a regular expression and will pick a random response upon finding one.

The bot will also keep track of what comments it has sent and will perform additional checks to common replies such as "Good bot" or "Bad bot".

Commands

The bot will respond to the following commands:

  • !dewit
  • !spin
  • !youngling
  • !sand

Note: To summon the bot, your comment only needs to contain one of these strings. You do not need to put the bot's username in the comment.

Example

Here is an example regular expression:

(did you|have you) ever heard? the (.*) of (.*)\?$

To satisfy this condition, a comment will look like this:

Did you ever hear the ... of ...?

Note: Almost all of the regular expressions end with $, this denotes that the comment must end with the phrase. It just ensures that the bot is responding in the right context.

Contributing

  • Check the project issues for any jobs that need help.
  • Feel free to fork the project and make a pull request with some nice new features. We can never have too many comment responses.
  • Submit an issue if you have an idea for a comment response and are not sure how to implement it or if you have any other issue with the bot.

Testing

If you are submitting a pull request, please run the tests first (npm test) and ensure that they are all successful. If you are adding a major new feature, please write tests as well.

License

MIT

About

A reddit bot that responds to movie quotes from comments in /r/PrequelMemes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published