ambience: use all words from content as target
This commit is contained in:
parent
2af36ef429
commit
f97e2c51e4
|
@ -36,10 +36,8 @@ class AmbiencePlugin(Plugin):
|
||||||
return False
|
return False
|
||||||
target = None
|
target = None
|
||||||
contents = self.command.content.split()
|
contents = self.command.content.split()
|
||||||
self.bot.log_d(f"{contents}")
|
if len(contents) >= 2 and contents[0] == self.config["target_word"]:
|
||||||
if len(contents) == 2 and contents[0] == self.config["target_word"]:
|
target = " ".join(contents[1:])
|
||||||
target = contents[1]
|
|
||||||
self.bot.log_d(f"{target}")
|
|
||||||
self.bot.say(event.target, self.get_reply(event, target=target))
|
self.bot.say(event.target, self.get_reply(event, target=target))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue