modifications to existing commands
added latency measurement to ping command, added typing event to ai command
This commit is contained in:
parent
5eab1393da
commit
c5f5c17a37
|
@ -9,7 +9,7 @@ class Basic(commands.Cog):
|
|||
|
||||
@commands.command()
|
||||
async def ping(self, ctx):
|
||||
await ctx.send("pong!")
|
||||
await ctx.send(f"Pong! **{round(self.client.latency*1000, 1)}ms**")
|
||||
|
||||
@commands.command(aliases=["cp"], brief="Change the guild-wide bot prefix", usage="<prefix>")
|
||||
@commands.guild_only()
|
||||
|
|
|
@ -14,6 +14,7 @@ class Lydia(commands.Cog):
|
|||
|
||||
@commands.command(aliases=["lydia"], brief="Have a chat with Lydia", usage="<chat>")
|
||||
async def ai(self, ctx, *, quest):
|
||||
async with ctx.channel.typing():
|
||||
self.cur.execute(f'SELECT * FROM sessions WHERE user_id="{ctx.author.id}"')
|
||||
query = self.cur.fetchone()
|
||||
|
||||
|
|
Loading…
Reference in New Issue