Read the full tutorial in my Medium article here.
You can check the bot in here, type /word
command to get a word and an audio file.
You can install all the libraries using this command.
pip install -r requirements.txt
Before we can use the bot, make sure you run the database.py
first so that we have the dictionary.csv
and the audio files. Make sure you already set the environment variable GOOGLE_APPLICATION_CREDENTIALS
to your credential path.
python database.py
Make sure to change YOUR_BOT_TOKEN
in main.py
to your bot's token before running the command below.
python main.py