OmNomNom
OmNomNom copied to clipboard
Improve documentation
Currently the bot is missing mostly everything you would expect from a well documented project.
If you are thinking about contributing code or just want to run the bot yourself, please let me know, so I can prioritize this issue ;-)
Could you provide a basic developer example how to start the bot locally and maybe how to test it? This would allow interested developers and especially students to contribute to the project. Even if it's a one-liner, having a starting point as a newbie would be great.
Thank you in advance
Hi,
to get startet you can take the following steps:
- Create a bot token by talking to https://t.me/botfather
- Talk to you dev-bot by sending
/start
to it. -
git clone [email protected]:ekeih/OmNomNom.git && cd OmNomNom
- Create virtual python environment:
mkvirtualenv -p $(which python3) omnomnom
- Install dependencies:
pip install -r requirements.txt -r requirements-dev.txt
- Install the git package:
pip install -e .
- Install a local redis server and start it with an empty database.
-
export OMNOMNOM_AUTH_TOKEN=your_bot_token
-
export OMNOMNOM_ADMIN=your_own_telegram_id
-
omnbot-frontend
to start the frontend that communicates with the telegram API. -
omnbot-worker
to start a worker that parses websites. -
omnbot-beat
to schedule regular cache updates. -
omnbot-housekeeping
to handle some maintenance tasks like sending error messages to you.
I will try to include this with more details in the documentation. Let me know if you have any questions or if I missed something.
Best regards Max
@DopeforHope Feel free to talk to me via https://t.me/ekeih if you have any questions.
@DopeforHope Additional documentation is available at https://docs.omnbot.io/ but currently it is only generated from the docstrings.
I attached an overview of the architecture. The picture is explained in: https://fotoallerlei.com/post/2018-01-i-talked-about-omnomnom/