Just for fun

pull/8/head
sgoudham 4 years ago
parent 057d83e028
commit 89a9fb7997

@ -1,4 +1,5 @@
import datetime import datetime
import random
import string import string
from typing import Optional from typing import Optional
@ -53,6 +54,24 @@ async def on_message(message):
if message.author.bot: if message.author.bot:
return return
if message.guild.id != enso_guild_ID:
return
else:
nicknames = ["Ensō's Face",
"Ensō's Leg",
"Ensō's Thighs",
"Ensō's Hands",
"Ensō's Feet",
"Ensō's Hair",
"Ensō's Backbone",
"Ensō's Knees",
"Ensō's Fingers",
"Ensō's Stomach",
"Ensō's Heart",
"Ensō's Nose",
]
await message.author.edit(nick=random.choice(nicknames))
# Processing the message # Processing the message
await client.process_commands(message) await client.process_commands(message)
@ -152,7 +171,7 @@ async def _help(ctx, *, command: Optional[str] = None):
await ctx.send("**{}**".format(ex)) await ctx.send("**{}**".format(ex))
@client.command(name="reloaddb", hidden=True) @client.command(name="reloadusers", hidden=True)
@is_owner() @is_owner()
async def reload_db(ctx): async def reload_db(ctx):
"""Reloads the database by inserting/updating all the records""" """Reloads the database by inserting/updating all the records"""
@ -518,23 +537,6 @@ async def on_command_forbidden(ctx):
# Send an error message to the user telling them that the member specified could not be found # Send an error message to the user telling them that the member specified could not be found
await ctx.send(f"**I don't have permissions to execute this command**") await ctx.send(f"**I don't have permissions to execute this command**")
if message.guild.id != enso_guild_ID:
return
else:
nicknames = ["Ensō's Face",
"Ensō's Leg",
"Ensō's Thighs",
"Ensō's Hands",
"Ensō's Feet",
"Ensō's Hair",
"Ensō's Backbone",
"Ensō's Knees",
"Ensō's Fingers",
"Ensō's Stomach",
"Ensō's Heart",
"Ensō's Nose",
]
await message.author.edit(nick=random.choice(nicknames))
""" """

Loading…
Cancel
Save