This commit is contained in:
parent
6fa7545c57
commit
756374d5f7
3
bot.py
3
bot.py
@ -17,11 +17,13 @@ statusType="watching"
|
||||
# Commands
|
||||
@tree.command(name="ping", description="Check bot connection")
|
||||
async def ping(ctx):
|
||||
print("Ping")
|
||||
await ctx.response.send_message("Pong!",ephemeral=True)
|
||||
|
||||
@tree.command(name="shortlink", description="Shorten a link")
|
||||
async def shortlink(ctx, link: str, name: str = None):
|
||||
if (ctx.user.id != 892672018917519370):
|
||||
print("User: " + str(ctx.user.id) + " tried to use the link command")
|
||||
await ctx.response.send_message("You don't have permission to use this command",ephemeral=True)
|
||||
else:
|
||||
APIKEY=os.getenv('LINK_API_KEY')
|
||||
@ -41,6 +43,7 @@ async def shortlink(ctx, link: str, name: str = None):
|
||||
@tree.command(name="botstatus", description="Set the bot status")
|
||||
async def botstatus(ctx, message: str, statusmethod: str = None):
|
||||
if (ctx.user.id != 892672018917519370):
|
||||
print("User: " + str(ctx.user.id) + " tried to use the botstatus command")
|
||||
await ctx.response.send_message("You don't have permission to use this command",ephemeral=True)
|
||||
else:
|
||||
global activityMessage
|
||||
|
Loading…
Reference in New Issue
Block a user