Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify #101

Merged
merged 5 commits into from
Aug 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc
  • Loading branch information
krofna committed Aug 11, 2019
commit 9d68c9352849dc3cc46d6d0538a6d2df3eb3b2d6
3 changes: 2 additions & 1 deletion tle/cogs/handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ async def _set(self, ctx, member, user):
raise HandleCogError(f'Role for rank `{user.rank.title}` not present in the server')
await self.update_member_rank_role(member, roles[0])

@handle.command(brief='Identify yourself')
@handle.command(brief='Identify yourself', usage='[handle]')
async def identify(self, ctx, handle: str):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstring and usage?

"""Link a codeforces account to discord account by submitting a compile error to a random problem"""
users = await cf.user.info(handles=[handle])
if not users:
await ctx.send('`{handle}` not found on codeforces')
Expand Down