Adding leave guild

pull/8/head
sgoudham 4 years ago
parent 74d2c0799c
commit d73bd355cf

@ -155,10 +155,18 @@ async def on_ready():
@client.command(name="ping", aliases=["Ping"]) @client.command(name="ping", aliases=["Ping"])
async def _ping(ctx): async def _ping(ctx):
"""Sends the latency of the bot (ms)""" """Latency of the Bot (ms)"""
await ctx.send(f'Pong! `{round(client.latency * 1000)}ms`') await ctx.send(f'Pong! `{round(client.latency * 1000)}ms`')
@client.command(name="leave", aliases=["Leave"])
@is_owner()
async def leave(ctx):
"""Leaves the guild"""
await ctx.send("Leaving the guild... Bye Bye uvu")
await leave()
@client.command(name='help') @client.command(name='help')
async def _help(ctx, *, command: str = None): async def _help(ctx, *, command: str = None):
"""Shows help about a command or the bot""" """Shows help about a command or the bot"""

Loading…
Cancel
Save