ambience: use all words from content as target
This commit is contained in:
parent
2af36ef429
commit
7c97b1a2b1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue