Browse Source

Update linking.py

master
Purpur 4 years ago
committed by GitHub
parent
commit
733c6470c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      cogs/linking.py

8
cogs/linking.py

@ -16,8 +16,12 @@ class Linking(commands.Cog):
self.bot = bot
async def link_account(self, message):
guild_id = int(os.getenv('guild_id'))
print(str(guild_id))
try:
guild_id
print(str(guild_id) + "exists")
except NameError:
guild_id=int(os.getenv('guild_id')
print(str(guild_id) + "created")
if message.author != self.bot.user and message.guild == None:
channel = message.channel
await channel.send("Processing, please wait...")

Loading…
Cancel
Save