This is a Slack bot made in Python for the Python course @HE-ARC, based on Matt Groening's Futurama.
-
help
-
fquote: sends a random quote (hard coded)
-
fgif : sends a random gif (powered by Giphy)
-
fpict : sends a random pict (it can take an argument, but it's not necessary)
@frybot: help
@frybot: fquote
@frybot: fgif
@frybot: fpict [arg]
You can download it directly from here, but the file doesn't contain the Slack token nor the Google API key (config.py).
OR
You can download it from the command prompt (as it is on Pypi and the token has been kept * ) :
> pip install frybot
You have to create a virtual environment like this :
> python -m venv frybot
> cd frybot
> C:\path_to_file\frybot\Scripts\activate.bat
put your newly downloaded bot files here and a this is ok, you can launch the bot with run.bat like this :
> C:\path_to_file\frybot\run.bat
and if you cannot find the run.bat, all you have to do is :
- create a new file you will name 'run.bat' in the frybot directory
- open it with a notepad
- and write this in it :
cd bot
python frybot.py
You can see the Sphinx documentation here :
AND
the presentation's slides here :
This is a school project and the bot is far from being perfect, it sure needs some refactor and further improvement.