Hello! This is the code used by @therockbot, through Telegram's Bot API. You can easily run your own @therockbot! Read this small tutorial.
What you need:
- Python, Pip and Git.
- Clone this repository.
pip install -r requirements.txt
.- A Bot API Token.
cp settings.ini.sample settings.ini
, editsettings.ini
with the bot's token.- Run
cd db/
and thenpython createdb.py
.
Running the bot: simplest way is with forever
. Install forever
through npm
and then run forever -e err.log -o out.log start -c python bot.py
.