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