Skip to content

Commit

Permalink
Improve typing in system cog
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Apr 26, 2023
1 parent 7ba3a6c commit eb179e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dictator/cogs/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ def __init__(self, dictator):
self.dictator = dictator

@commands.command(brief='Check the bot\'s latency.', help='Check the bot\'s latency or whether it\'s responding at all.')
async def ping(self, ctx):
async def ping(self, ctx: Context) -> None:
if random.randint(1, 100) == 1:
await ctx.send(f'Stop that, it hurts ;(')
else:
await ctx.send(f'Pong! That took me {round(self.dictator.latency * 1000)}ms!')

@commands.command(brief='Replies with Dictators\'s current version.', help='Check the bot\'s version.')
async def version(self, ctx):
async def version(self, ctx: Context) -> None:
with open('version.txt', 'r') as file:
await ctx.send(file.read())

Expand Down

0 comments on commit eb179e2

Please sign in to comment.