We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39fda3a commit bb3a7eeCopy full SHA for bb3a7ee
examples/discord_bot.py
@@ -37,11 +37,11 @@ async def graph(ctx):
37
output_buffer = BytesIO() # By using BytesIO we don't have to save the file in our system.
38
chat_sample.save(output_buffer, "png")
39
output_buffer.seek(0)
40
- await ctx.send(file=discord.File(fp=output_buffer, filename="chat_sample.png")) # Change the file name accordingly.
+ await ctx.send(file=discord.File(fp=output_buffer, filename="chart_sample.png")) # Change the file name accordingly.
41
42
43
@graph.before_invoke
44
async def before_test_invoke(ctx):
45
await ctx.trigger_typing() # Take time to render and send graph so triggering typing to reflect bot action.
46
47
-bot.run('token')
+bot.run('token')
0 commit comments