Skip to content

Commit

Permalink
Update joker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastermind-sap authored Jan 25, 2021
1 parent ebd66bd commit bea1299
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion joker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def help(ctx):
server_embed.add_field(name="pm/dm/pvtmessage",value="sends private message to mentioned user",inline=False)
server_embed.add_field(name="clean/clear",value="one with managing messages permission can delete n number of msgs from a channel",inline=False)
server_embed.add_field(name="server",value="get server details",inline=False)
server_embed.add_field(name="spam",value="only admins can spam some text n number of times using this command",inline=False)
server_embed.add_field(name="spam",value="only admins can spam some text n(n<=20) number of times using this command",inline=False)
server_embed.add_field(name="ping",value="display the ping",inline=False)
server_embed.add_field(name="newrole",value="admin can create a new role",inline=False)
server_embed.add_field(name="giverole",value="admin can assign any member a role",inline=False)
Expand Down Expand Up @@ -255,6 +255,9 @@ async def bye(ctx, user : discord.Member =None):
@bot.command()
@commands.has_permissions(administrator=True)
async def spam(ctx, times,*,text):
if int(times)>20:
times=20
await ctx.send(ctx.author.mention+" sorry but spam command is limited to 20")
for i in range(int(times)):
await ctx.send(text)

Expand Down

0 comments on commit bea1299

Please sign in to comment.