From 1cea8cc7d220255b9ba9c710f8144f33d8d86a13 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Sat, 20 Dec 2025 21:24:56 +0200 Subject: [PATCH] added deck.chat modules --- deck/chat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deck/chat.py b/deck/chat.py index 976992a..be24bc8 100644 --- a/deck/chat.py +++ b/deck/chat.py @@ -23,7 +23,9 @@ class DeckChat: def command(self, command, handler): """ Register a new handler inside the chat instance. - The handler accepts a single parameter, which is the state object. + The handler accepts two parameters: a message and a state object, + and returns the response and the new state object. + Non-command handler is registered under the 'default' command. """ cmd = command.strip().lower() if cmd.startswith(self.command_prefix):