ambience: use all words from content as target

This commit is contained in:
dece 2021-12-12 18:30:51 +01:00
parent 2af36ef429
commit 982566ee00

View file

@ -38,7 +38,7 @@ class AmbiencePlugin(Plugin):
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]
target = " ".join(contents[1:])
self.bot.log_d(f"{target}")
self.bot.say(event.target, self.get_reply(event, target=target))
return True