From 7c97b1a2b19e75d981540843cec3aad470562e9b Mon Sep 17 00:00:00 2001 From: dece Date: Sun, 12 Dec 2021 18:30:51 +0100 Subject: [PATCH] ambience: use all words from content as target --- edmond/plugins/ambience.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edmond/plugins/ambience.py b/edmond/plugins/ambience.py index f63d065..ae9e3c7 100644 --- a/edmond/plugins/ambience.py +++ b/edmond/plugins/ambience.py @@ -37,8 +37,8 @@ class AmbiencePlugin(Plugin): target = None contents = self.command.content.split() self.bot.log_d(f"{contents}") - if len(contents) == 2 and contents[0] == self.config["target_word"]: - target = contents[1] + if len(contents) >= 2 and contents[0] == self.config["target_word"]: + target = " ".join(contents[1:]) self.bot.log_d(f"{target}") self.bot.say(event.target, self.get_reply(event, target=target)) return True