mirror of
https://github.com/osmarks/autobotrobot
synced 2025-01-31 09:34:44 +00:00
How did this pass code review‽
This commit is contained in:
parent
40b82bd10b
commit
a1df793937
@ -8,7 +8,7 @@ import metrics
|
|||||||
def setup(bot):
|
def setup(bot):
|
||||||
@bot.listen()
|
@bot.listen()
|
||||||
async def on_member_join(member):
|
async def on_member_join(member):
|
||||||
if member.guild.id == util.config["heavserver"]["id"]:
|
if member.guild and member.guild.id == util.config["heavserver"]["id"]:
|
||||||
logging.info("%s (%d) joined heavserver", member.display_name, member.id)
|
logging.info("%s (%d) joined heavserver", member.display_name, member.id)
|
||||||
if member.bot:
|
if member.bot:
|
||||||
await member.add_roles(discord.utils.get(member.guild.roles, id=util.config["heavserver"]["quarantine_role"]))
|
await member.add_roles(discord.utils.get(member.guild.roles, id=util.config["heavserver"]["quarantine_role"]))
|
||||||
|
Loading…
Reference in New Issue
Block a user