Skip to content

Commit

Permalink
add about command and add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shahriaarrr committed Feb 19, 2021
1 parent c7b0cbe commit ad86ba7
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ async def ban(ctx, member : discord.Member, *, reason = None ):
await member.ban(reason = reason)
await ctx.send(f"Banned {member.mention}")


#say Hi
@client.command()
async def salam(ctx):
async def hi(ctx):
mention = ctx.author.mention
await ctx.send("salam %s" % (mention))
await ctx.send("Hi %s🙋‍♂️" % (mention))


@client.command()
Expand All @@ -58,15 +58,15 @@ async def taas(ctx):
x = randint(1, 6)
await ctx.send("Your number is: %i" % (x))


#you can set your name and pass((just a game))
@client.command()
async def cmd(ctx, * ,values):
values = values.split()
password = values[0]
name = values[1]
await ctx.send("password: "+password+"\n"+"name: "+name)


#set your bot's status
@client.command()
#If you want to use a command only for admins, you must type the following command before defining the function
@commands.has_permissions(manage_messages = True)
Expand All @@ -85,7 +85,7 @@ async def setstatus(ctx, status_type):
await client.change_presence(status = discord.Status.online)
await ctx.send("status change to --> online")


#set your bot's activity
@client.command()
@commands.has_permissions(manage_messages = True)
async def setactivity(ctx, activity_type, * ,activity_text):
Expand Down Expand Up @@ -170,6 +170,28 @@ async def clear(ctx, amount = 100):
await ctx.send("Chat Cleared")


@client.command()
async def about(ctx):
aboutme = '''
Hi, I'm Shahriar🙋‍♂️
🤖(bot.py)'s father
💻Computer engineering student
👨‍💻Python Developer
✒Sometimes the author
🔗All links related to me: https://zil.ink/shahriaarrr12
'''
m1 = discord.Embed(
title = "programmer of this project",
description = aboutme,
color = 0x51F349,
)
await ctx.send(embed = m1)


#run your bot
client.run(CONFING.TOKEN)

0 comments on commit ad86ba7

Please sign in to comment.