This guide will help you set up and run the English Vocabulary Chatbot on your local machine.
Make sure you have the following components installed:
- Python 3.8 or higher
- MySQL server
- Git (optional, for cloning the repository)
Clone this repository to your machine using the following Git command:
git clone https://github.com/DmytriiMarko/EnglishVocabularyChatbot.git
Or download the ZIP archive of this repository and extract it on your machine.
Create a MySQL database. Edit the configuration file cfg.ini
to set up the database connection. Specify the connection details that correspond to your MySQL server.
[Database]
host = DB_HOST
user = DB_USER
password = DB_PASSWORD
database = DB_NAME
Open the cfg.ini
file and configure the necessary API keys for your project.
[Telegram]
token = YOUR_BOT_TOKEN
[Utilities]
translate_key = MICROSOFT_TRANSLATE_API_KEY
mono_token = MONOBANK_TOKEN
mono_jar = MONOBANK_JAR
telegraph_api = TELEGRAPH_API
Make sure you have entered valid API keys. Check the documentation of the services you are using to obtain the required API keys.
Install the required dependencies using pip
:
pip install -r requirements.txt
Run the bot using the command:
python run.py
Your bot should be accessible on your messenger. Start learning English with the English Vocabulary Chatbot!
Please note that you should provide your own database details and project author information in this guide. Also, ensure you have all necessary permissions and keys for your bot to work correctly.