From e51ca46bdb126b3badb2e9008cd8d1ecfff1ebae Mon Sep 17 00:00:00 2001 From: dece Date: Mon, 12 Oct 2020 19:09:42 +0200 Subject: [PATCH] notes: confirm note has been taken --- config.json.example | 1 + edmond/plugins/notes.py | 1 + 2 files changed, 2 insertions(+) diff --git a/config.json.example b/config.json.example index 3d6ebd3..546b3c6 100644 --- a/config.json.example +++ b/config.json.example @@ -41,6 +41,7 @@ "notes": { "commands": ["note down"], "content_regex": "for (?P\\S+) (?P.+)", + "confirmation": "Ok.", "deliver_format": "{dest}, {sender} tells you: {message}" }, "random": { diff --git a/edmond/plugins/notes.py b/edmond/plugins/notes.py index df1c0b0..b5f1b02 100644 --- a/edmond/plugins/notes.py +++ b/edmond/plugins/notes.py @@ -55,3 +55,4 @@ class NotesPlugin(Plugin): "message": message } self.append_storage_list_value("notes", note) + self.bot.say(event.target, self.config["confirmation"])