Skip to content

boskiv/wg-parking-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wg-parking-bot

Telegram bot to rotate parking keys between members

Logic

  • Register member (/register)
  • Handle absence (/absence)
  • Handle last month winners (/info)
  • Rotate keys between uniq members (/shuffle) (only admin can do it manually)
  • Schedule rotation monthly

Admin logic

  • Handle admin commands ENV['ADMIN_LIST']
  • Manage keys count (/keys)
  • Reset state (/reset)

Todo

  • Fair uniq logic (weight based for example)
  • Simple algorithm distribution stats

Flow

Last day of month bot run a task to decide a winners. Make a winners table and print it into channel. (It can be private message or public channel) If participant want to skip a round he must send /absence command to bot.

About

wg-parking-bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages