Purpur
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
cogs/linking.py
|
@ -16,8 +16,12 @@ class Linking(commands.Cog): |
|
|
self.bot = bot |
|
|
self.bot = bot |
|
|
|
|
|
|
|
|
async def link_account(self, message): |
|
|
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: |
|
|
if message.author != self.bot.user and message.guild == None: |
|
|
channel = message.channel |
|
|
channel = message.channel |
|
|
await channel.send("Processing, please wait...") |
|
|
await channel.send("Processing, please wait...") |
|
|