1
0

fix: wrong template

This commit is contained in:
オスカー、 2023-11-24 16:05:57 +09:00 committed by GitHub
parent ef3734e300
commit 5dcb2d2bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)