fix: wrong template
This commit is contained in:
parent
ef3734e300
commit
5dcb2d2bf3
@ -14,7 +14,7 @@ class Post(commands.Cog):
|
|||||||
line = self.bot.get_random_line()
|
line = self.bot.get_random_line()
|
||||||
while line in self.posted:
|
while line in self.posted:
|
||||||
line = self.bot.get_random_line()
|
line = self.bot.get_random_line()
|
||||||
template = self.bot.config.reply
|
template = self.bot.config.note
|
||||||
result = template.replace("{text}", line.text).replace("{from}", line.where).replace("{number}", line.number)
|
result = template.replace("{text}", line.text).replace("{from}", line.where).replace("{number}", line.number)
|
||||||
await self.bot.client.note.action.send(content=result, visibility=self.visibility)
|
await self.bot.client.note.action.send(content=result, visibility=self.visibility)
|
||||||
self.posted.append(line)
|
self.posted.append(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user