WEEE-Open / weeelab-telegram-bot

Telegram bot for querying the weeelab log and some additional cool stuff.
GNU General Public License v3.0
8 stars 4 forks source link

Add /iwanttogotolab (or similar but less ridiculous) #62

Open lvps opened 4 years ago

lvps commented 4 years ago

Add a command that:

  1. Stores the user in a similar file to tolab (or even the same file)
  2. When someone adds a /tolab, notifies users that have sent this command
  3. When someone actually goes to lab, notifies users that have sent this command

Rationale: people don't want to go alone, usually, so if someone adds a /tolab they may want to join. Without constantly polling the bot.

Point 2 depends on #43, point 3 also requires something that polls the log file, or watches for changes (there should be a system call or API of some kind to do that, at least for ext4), possibly not in the main thread.