post()
takes a string, posts it to the desired chat service, and returns True
if the operation succeeded, else False
.ask()
does the same as post()
, but after sending the message, it waits until someone approves or rejects the operation from within the chat service (e.g., by sending "approve" / "reject" to the bot as response). ask()
then only returns True
if the operation succeeded and was approved, else False
.BaseAlerter
.FLAVOR
class variable in your class (e.g., FLAVOR="discord"
)post()
and ask()
methods for your alerter.