Skip to content

Commit 2cd8ef7

Browse files
committed
Fix snippet variables
1 parent 61b77e7 commit 2cd8ef7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,7 @@ async def on_message(self, message):
669669
if message.content.startswith(prefix):
670670
cmd = message.content[len(prefix):].strip()
671671
if cmd in self.snippets:
672-
message.content = f'{prefix}reply {self.snippets[cmd]}'
673-
672+
thread = await self.threads.find(channel=message.channel)
674673
snippet = self.snippets[cmd]
675674
if thread:
676675
snippet = snippet.format(recipient=thread.recipient)

0 commit comments

Comments
 (0)