diff --git a/plugins/helped.py b/plugins/helped.py index 78a00887..a69e1512 100644 --- a/plugins/helped.py +++ b/plugins/helped.py @@ -21,10 +21,14 @@ async def helped(ctx, *args): was_message_found = True else: - if args[0].startswith('<@') and args[0].endswith('>'): + if len(args) == 1 and args[0].startswith('<@') and args[0].endswith('>'): commended_user = ctx.guild.get_member(int(args[0].strip('<@!>'))) else: - commended_user = ctx.guild.get_member_named(args[0]) + commended_user_username = '' + for arg in args: + commended_user_username += arg + ' ' + commended_user_username = commended_user_username.strip() + commended_user = ctx.guild.get_member_named(commended_user_username) async for message in ctx.channel.history(limit=10): message.content diff --git a/plugins/reddit_verification.py b/plugins/reddit_verification.py index c18820c2..d2fd8c6b 100644 --- a/plugins/reddit_verification.py +++ b/plugins/reddit_verification.py @@ -125,12 +125,15 @@ async def redditcheck(ctx, *args): discord_username = str(ctx.author) else: - if args[0].startswith('<@') and args[0].endswith('>'): + if len(args) == 1 and args[0].startswith('<@') and args[0].endswith('>'): # If user was mentioned convert his ID to a username and then check if he is a member of the server raw_discord_username = str(await client.get_user_info(int(args[0].strip('<@!>')))) else: # Otherwise autofill user's tag (number) and check if he is a member of the server - raw_discord_username = args[0] + raw_discord_username = '' + for arg in args: + raw_discord_username += arg + ' ' + raw_discord_username = raw_discord_username.strip() discord_username = ctx.message.guild.get_member_named(raw_discord_username)