From f97e2c51e49f2dcbff2a9b5198838227e5f6bf9a 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/edmond/plugins/ambience.py b/edmond/plugins/ambience.py index f63d065..cafceda 100644 --- a/edmond/plugins/ambience.py +++ b/edmond/plugins/ambience.py @@ -36,10 +36,8 @@ class AmbiencePlugin(Plugin): return False 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] - self.bot.log_d(f"{target}") + if len(contents) >= 2 and contents[0] == self.config["target_word"]: + target = " ".join(contents[1:]) self.bot.say(event.target, self.get_reply(event, target=target)) return True