Awesome
Bot to query spanish definitions using RAE
Using the bot as a client
You can inspect a live version of the code in the telegram bot @dleraebot.
Setting up a local instance
Clone the repository
$ git clone https://github.com/studentenherz/dleraebot.git
Install required dependencies
$ pip install -r requirements.txt
Create your configuration file
Make a copy of the file:
credentials.py.sample
And name it:
credentials.py
Edit your bot token in the file. If you don't have one, you can get it using @BotFather in Telegram.
Running the bot
$ python main.py
in order to save the logs to a file named bot.log
and keep seing them on screen run
$ python main.py 2>&1 | tee -a bot.log