Inspired by Facebook's bunnylol search engine and using the new jack_bunny that is a modernized version of the prior. I have tweaked jack's version to my needs and my possible commands. Also I split the requirements in basic_requirements and requirements being the first for development purposes and the l 6BB3 ater for production.
I have some commands and plan to add more, but right now the possible most important now is this command:
help
returns a list of usable commands
You can tweak your command inside the comamnds.py file, for example if you want to add the i
command that works
for going to instagram when given no arguments and takes you to a user when giving arguments, you will need to add this to the
Commands
class
def i(arg=None):
"""'i [insert query]' searches for users or takes you to the home page"""
if arg:
return 'https://instagram.com/{0}'.format(arg)
else:
return 'https://instagram.com'
Jack (the user which version I am basing mine) has a better explanation for this so go check it out if you have any doubt about it.