mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update code.py
This commit is contained in:
@@ -208,7 +208,7 @@ async def on_message(message):
|
||||
prompt = ""
|
||||
for msg in messages:
|
||||
if msg.author.bot:
|
||||
prompt += f"Donald Bot \"Botator\": {msg.content}\n"
|
||||
prompt += f"Botator: {msg.content}\n"
|
||||
else:
|
||||
prompt += f"{msg.author.display_name}: {msg.content}\n"
|
||||
#get the prompt_prefix from the database
|
||||
@@ -250,7 +250,7 @@ async def transcript(ctx):
|
||||
await ctx.defer()
|
||||
for msg in messages:
|
||||
if msg.author.bot:
|
||||
transcript += f"Donald Bot \"Botator\": {msg.content}\n"
|
||||
transcript += f"Botator: {msg.content}\n"
|
||||
else:
|
||||
transcript += f"{msg.author.display_name}: {msg.content}\n"
|
||||
#save the transcript in a txt file called transcript.txt. If the file already exists, delete it and create a new one
|
||||
|
||||
Reference in New Issue
Block a user