discord py say something

Solutions on MaxInterview for discord py say something by the best coders in the world

showing results for - "discord py say something"
Alejandra
23 Jan 2018
1#Discord.py rewrite
2#python 3+
3@bot.command(name='say_hi', help='Run this command when your lonely!')
4async def sayhi(ctx):
5	#This code will say "Hi, @username!"
6	#this uses an 'f' befoe a string so I can input the username
7	#ctx has many propertys, including .send .author and .content (there are more)
8    await ctx.send(f"Hi, {ctx.author.mention}!")
9
Leana
04 Jun 2019
1(Discord.py async)
2
3await ctx.send("Say something here")