Skip to content

Commit bb3a7ee

Browse files
authored
Update discord_bot.py
1 parent 39fda3a commit bb3a7ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/discord_bot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ async def graph(ctx):
3737
output_buffer = BytesIO() # By using BytesIO we don't have to save the file in our system.
3838
chat_sample.save(output_buffer, "png")
3939
output_buffer.seek(0)
40-
await ctx.send(file=discord.File(fp=output_buffer, filename="chat_sample.png")) # Change the file name accordingly.
40+
await ctx.send(file=discord.File(fp=output_buffer, filename="chart_sample.png")) # Change the file name accordingly.
4141

4242

4343
@graph.before_invoke
4444
async def before_test_invoke(ctx):
4545
await ctx.trigger_typing() # Take time to render and send graph so triggering typing to reflect bot action.
4646

47-
bot.run('token')
47+
bot.run('token')

0 commit comments

Comments
 (0)