Skip to content

nypava/word-of-the-day

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word of the day

Word of the day is a simple automated script that posts new words from Merriam-Webster to a channel. Demo channel: @wordoftheday_s

Deployment

Installing dependencies

Python dependencies

pip install -r requirements.txt

ImageMagick

Debian: apt install imagemagick Arch: pacman -S imagemagick

Font

Install noto sans font

Setup

Create .env file with the following variable:

bot_token = "" # Bot token from @botfather
channel_id = "" # Channel ID or username of the channel where the messages will be posted
mongo_token = "" # MongoDB database key from [mongodb](https://mongodb.com)
gemini_key = "" # Gemini key from https://aistudio.google.com/app/apikey

After changing the .env file, run the script:

python3 bot.py

Note: Don't forget to add the bot to your channel and give it admin privileges.

Releases

No releases published

Packages

No packages published

Languages