Skip to content

Commit b62e1e3

Browse files
authored
Merge pull request #29 from astr0n8t/fix-user
feat: use actual username instead of id
2 parents b08d2a1 + 4a43cde commit b62e1e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ async def """ + cmd.name + """(ctx"""
7272
for i in range(cmd.args):
7373
cmd_string += (cmd.arg_names[i] if i in cmd.arg_names else str("arg" + str(i))) + ", "
7474
if cmd.user_arg:
75-
cmd_string += "user=ctx.author.id)"
75+
cmd_string += "user=ctx.author.name)"
7676
else:
7777
cmd_string = cmd_string[:-2] + ")"
7878
elif cmd.args == 0 and cmd.user_arg:
7979
cmd_string += """):
80-
data = '""" + cmd.data + "'.format(user=ctx.author.id)"
80+
data = '""" + cmd.data + "'.format(user=ctx.author.name)"
8181
else:
8282
cmd_string += """):
8383
data = '""" + cmd.data + "'"

0 commit comments

Comments
 (0)