Thanks to visit codestin.com
Credit goes to github.com

Skip to content

yakovenkomax/clockwork-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clockwork Bot

This project is a Telegram bot for learning Dutch vocabulary. It sends a daily message to a specified channel containing:

  • A list of Dutch words with translations and example sentences
  • An image generated by OpenAI's DALL-E model based on the example sentences
  • A list of previous words to repeat

Setup

  1. Create a Telegram Bot using @BotFather;

  2. Create a Telegram Channel and add the bot as an admin. Then, get the channel ID by sending a message to the bot and checking the chat.id field in the response;

  3. Create .env file and add the Telegram channel ID, Telegram bot token, and OpenAI API key.

  4. Run npm install to install dependencies.

Usage

  1. Run npm run start to start the bot;

Commands

Send a message to the bot to trigger actions:

  • /start HH:MM - Generate a message and schedule sending.
  • /stop - Cancel the scheduled message.
  • /regenerate - Regenerate the scheduled message.

About

A Telegram bot for learning foreign words.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •