Skip to content

Commit 83b26dc

Browse files
committed
Add subcommands section resolves #72
1 parent 7c3360c commit 83b26dc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bot.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ async def get_latest_updates(self, limit=3):
254254

255255
return latest_commits
256256

257-
258257
@property
259258
def uptime(self):
260259
now = datetime.datetime.utcnow()
@@ -340,6 +339,7 @@ async def github(self, ctx):
340339
color=discord.Color.red(),
341340
description=f'Not logged in, do `{prefix}github login` to login with GitHub.'
342341
)
342+
em.add_field(name='Subcommands', value=f'`{prefix}github login` Login with github\n`{prefix}github logout` Logout of current github account if any.')
343343

344344
if not data['error']:
345345
user = data['user']
@@ -392,9 +392,6 @@ async def _logout(self, ctx):
392392
em.description = 'You are not logged in already.'
393393

394394
await ctx.send(embed=em)
395-
396-
397-
398395

399396
@commands.command()
400397
async def update(self, ctx):

0 commit comments

Comments
 (0)