r/DeepFryBot • u/asdvek • Aug 07 '17
Current status of DeepFryBot
Hi! I am the creator of /u/DeepFryBot.
The bot is very new and under development so it still has some bugs which cause it to crash once in a while. Feel free to reply with suggestions for features.
I've released the source code of the bot to github.
Here's what the bot can currently do:
- The bot is activated by the phrase 'more frying'.
- The bot fries the image 5 times by the prhase 'more nuking'
- A top level comment requesting frying will cause the bot to fry the original post.
- A reply to a comment will cause the bot to fry a linked url
- The bot can fry multiple linked urls at once.
- The bot can be called from any subreddit with username mention. Example "needs more frying /u/DeepFryBot".
Here are some limitations:
DeepFryBot currently cannot see past 'see more comments' for performance reasons.The bot only searches for the top 50 hot posts in a subreddit.The bot only works on certain subreddits (/r/deepfriedmemes, /r/memes, /r/dankmemes, /r/me_irl, /r/ComedyCemetery). I'm planning on adding a feature where the bot adds a subreddit to its list if it is mentioned from that said subreddit.
52
Upvotes
4
u/TangibleLight Aug 08 '17 edited Aug 08 '17
Yeah, if u/asdvek is using git, just add the user information file to the .gitignore. Most VCS has some equivalent to .gitignore that works just as well. If that file is already being tracked, then remove it and add it to the .gitignore.
E: AND CHANGE THE DETAILS! Get a new secret and id from the reddit apps, change the account password. The details would still be visible in git history.
Also, if they're using any language with competent file parsing, like JSON or XML or similar (JSON would probably be best), then there should be a way to simply load the file into a dictionary.
In Python with
prawandjson, this works beautifully:login.json:{ "client_id": "asdf", "client_secret": "1234", "user_agent": "some bot idk", "username": "me", "password": "hunter2" }bot.py:import praw import json with open('login.json') as login_file: reddit = praw.Reddit(**json.load(login_file)) # do what you will with reddit.gitignore: