This is a chatbot to answer queries of freshers joining IIT Mandi!
Currently, the bot supports queries of two forms - voice messages and text messages on telegram. For both of these, the bot will send a text message as a response to the query asked by the user.
First, clone this repo by running -
git clone https://www.github.com/NippunSharma/ChatterBox
cd ChatterBox
Next, install the external dependency ffmpeg
.
On Ubuntu, you can execute the following -
sudo apt update
sudo apt install ffmpeg
On Windows, you can do the following -
- Download the latest version of
ffmpeg
from here. - Extract the folder to
C:\Program Files\ffmpeg
. (IMPORTANT : If you want to extract it elsewhere, you will have to manually change the path offfmpeg
in Line 67 oftelegram_bot.py
).
Once that is done, you have to create a virtual environment and activate it.
python -m venv bot
source ./bot/bin/activate
Now, you have to run setup.sh
. This will install the packages from requirements.txt
and then download packages for nltk
.
chmod +x setup.sh
./setup.sh
Create a .env
file with the following content -
TELEGRAM_API_KEY=<your_api_key>
Setup is now done! To start chatting with the bot, run python chatbot.py
and start messaging @ChatterBoxxBot on Telegram.
Have a look at the Usage Guide for usage details and various commands.