Skip to content

Commit 076bf7f

Browse files
authored
Merge pull request #59 from IngeniousCoder/patch-1
Fix #21
2 parents d5bfd90 + df03105 commit 076bf7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ async def on_connect(self):
118118
@property
119119
def guild_id(self):
120120
from_heroku = os.environ.get('GUILD_ID')
121-
return int(from_heroku) if from_heroku else GUILD_ID
121+
if GUILD_ID != 0:
122+
return GUILD_ID
123+
else:
124+
return int(from_heroku)
122125

123126
async def on_ready(self):
124127
'''Bot startup, sets uptime.'''

0 commit comments

Comments
 (0)