Provide a base react function and error out
This commit is contained in:
parent
06794ce5cb
commit
eb87de7de5
@ -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
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user