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