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