Word of the day is a simple automated script that posts new words from Merriam-Webster to a channel. Demo channel: @wordoftheday_s
pip install -r requirements.txt
Change the following variables in the .env file:
- bot_token - Bot token from @botfather
- channel_id - Channel ID or username of the channel where the messages will be posted
- bot_username - Main bot username (not the one that sends the post)
- mongo_key - MongoDB database key from mongodb
After changing the .env file, run the script:
python3 app.py
Note: Don't forget to add the bot to your channel and give it admin privileges
-
How to contribute
- Fork the repository.
- Create a new branch for your changes.
- Make your changes and commit them to your branch.
- Push your branch to GitHub.
- Open a pull request against the main branch.
-
Coding style
- Just try to be more consistent with the current project's coding style.