Skip to content

bee-joo/bird-wiki-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bird-wiki-bot

This bot can send random Wiki article about birds. You can subscribe for a daily bird :)
https://t.me/bird_wiki_bot

Features

  • Random link - Wiki has some categories about birds, so first bot pick random category, then Wiki sends random page in this category
  • Daily subscription - Redis stores data as keys of hours and values of set with subscribers' chat ids. Every day at hours set in app properties bot executes sending messages using Spring scheduler
  • User can choose hour (now are 8:00, 12:00, 18:00, 22:00), unsubscribe or change time

Stack

How to run

  1. Set up bot using BotFather
  2. Set up Redis database
  3. Change application.yml for bot token and database config
  4. mvnw clean package -DskipTests && java -jar [jar_name].jar --spring.config.location=file:///[location of application.yml]