Fixed register command and error user issue
parent
93fba48b15
commit
7c29e6e9b0
|
@ -114,6 +114,9 @@ class GeoffreyBot(commands.Bot):
|
||||||
for user_id in self.error_users:
|
for user_id in self.error_users:
|
||||||
user = self.get_user(user_id)
|
user = self.get_user(user_id)
|
||||||
|
|
||||||
|
if user is None:
|
||||||
|
continue
|
||||||
|
|
||||||
if msg is list:
|
if msg is list:
|
||||||
await self.send_list(user, msg)
|
await self.send_list(user, msg)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -540,10 +540,12 @@ class GeoffreyCommands(commands.Cog):
|
||||||
"PlayerinDBError": "you are already registered with Geoffrey you ding dong."
|
"PlayerinDBError": "you are already registered with Geoffrey you ding dong."
|
||||||
}
|
}
|
||||||
|
|
||||||
await run_command(self.base_url, self.api_token, "POST", "register", errors=errors,
|
await run_command(ctx, self.base_url, self.api_token, "POST", "register", errors=errors,
|
||||||
player_name=ctx.message.author.display_name,
|
player_name=ctx.message.author.display_name,
|
||||||
discord_uuid=ctx.message.author.id)
|
discord_uuid=ctx.message.author.id)
|
||||||
await ctx.send("{}, you have been added to the database. Do {}help to see what this bot can do.")
|
await ctx.send("{}, you have been added to the database. Do {}help to see what this bot can do.",
|
||||||
|
ctx.message.author.mention,
|
||||||
|
self.bot.prefix)
|
||||||
|
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
async def remove_resident(self, ctx, resident_name, *args):
|
async def remove_resident(self, ctx, resident_name, *args):
|
||||||
|
|
Loading…
Reference in New Issue