Skip to content

Commit

Permalink
chore: Changed examples and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkergzlkkr committed Apr 1, 2021
1 parent 5e09bb3 commit a4f5ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def setup(bot):
to_send = f"found bot {bot['username']} using this github {bot['github']} and vote_count is {bot['stats']['voteCount']}"
await ctx.send(to_send)

@dclist.command(name="user")
async def get_dclist_user(self, ctx, user_id):
user = await self.dclistapi.getUserById(user_id)
@dclist.command(name="me")
async def get_dclist_user(self, ctx):
user = await self.dclistapi.getUserById(ctx.author.id)
to_send = f"found user {user['username']} using this website {user['website']} and discriminator is {user['discriminator']}"
await ctx.send(to_send)

Expand Down
6 changes: 3 additions & 3 deletions examples/dclistcog.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ async def get_dclist_bot(self, ctx, bot_id):
to_send = f"found bot {bot['username']} using this github {bot['github']} and vote_count is {bot['stats']['voteCount']}"
await ctx.send(to_send)

@dclist.command(name="user")
async def get_dclist_user(self, ctx, user_id):
user = await self.dclistapi.getUserById(user_id)
@dclist.command(name="me")
async def get_dclist_user(self, ctx):
user = await self.dclistapi.getUserById(ctx.author.id)
to_send = f"found user {user['username']} using this website {user['website']} and discriminator is {user['discriminator']}"
await ctx.send(to_send)

Expand Down

0 comments on commit a4f5ea6

Please sign in to comment.