Provide a base react function and error out

This commit is contained in:
Luke Murphy 2021-01-10 19:29:34 +01:00
parent 06794ce5cb
commit eb87de7de5
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# xbotlib x.x.x (UNRELEASED)
- Error out if you don't provide a `react` implementation
# xbotlib 0.2.0 (2021-01-10)
- Refine API for direct/chat responses

View File

@ -143,3 +143,7 @@ class Bot(ClientXMPP):
kwargs["mtype"] = "groupchat"
self.send_message(**kwargs)
def react(self, message):
message = "You need to write your own `react` implementation"
raise NotImplementedError(message)