forked from gooberinc/goober
Add files via upload
This commit is contained in:
parent
36d5e1d8eb
commit
d24f6ce157
1 changed files with 18 additions and 0 deletions
18
whoami.py
Normal file
18
whoami.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class whoami(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@commands.command()
|
||||
async def whoami(self, ctx):
|
||||
user_id = ctx.author.id
|
||||
username = ctx.author.name
|
||||
await ctx.send(
|
||||
f"Your User ID is: {user_id}\n"
|
||||
f"Your username is: {username}\n"
|
||||
f"Your nickname in this server is: <@{user_id}>"
|
||||
)
|
||||
async def setup(bot):
|
||||
await bot.add_cog(whoami(bot))
|
Loading…
Add table
Add a link
Reference in a new issue