hopfenspace / MateBot

Micro service providing an API for MateBot clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement the /pay command and its callback query

CrsiX opened this issue · comments

commented

As this is an issue with some kind of progress involved, I open this issue with the following tasks:

  • Implement the /pay command
  • Define the callback query handler class
  • Implement the action for APPROVE
  • Implement the action for DISAPPROVE
  • Implement the action for FORWARD
  • Update the bot's message after every action, in all chats (!)
  • Enable external users to create payment requests (without vote permissions, without inline keyboard)
  • Send the message of the payment of external users to the internal group automatically
  • Restrict vote permissions to internal users with vote permissions only
  • Tell other users that they need more permissions if they try to vote and don't have them (use an alert notification)
  • Add a check if the pay is still active before performing actions on it
  • Make sure that changes of the bot's message are not possible after the pay has been approved/disapproved
  • Add user notifications where everything was processed correctly
  • Add user alerts where something went wrong
  • Add the feature to handle /pay show
  • Add the feature to handle /pay stop
  • Check the docstrings for all classes and methods that have something to do with the command
  • Ensure that everything is working fine, then close this issue and treat the feature as ready for production
commented

I assume that most of the stuff is pretty safe to use in production now, meaning that I will close this issue later on. However, all those features are open to beta-testing of course.