diff options
| author | 2019-01-04 21:08:29 +0100 | |
|---|---|---|
| committer | 2019-01-04 21:08:29 +0100 | |
| commit | c6fa3f0bf30fc6ac6a7dd1db966183d787f29b9a (patch) | |
| tree | a716ec0dee6c284c26e96518dc9c4ff95e7564ed | |
| parent | Handle member leave in sync cog. (diff) | |
Use guild ID from configuration file.
| -rw-r--r-- | bot/cogs/sync/cog.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/cogs/sync/cog.py b/bot/cogs/sync/cog.py index 4556bae83..ab591ebf8 100644 --- a/bot/cogs/sync/cog.py +++ b/bot/cogs/sync/cog.py @@ -6,7 +6,8 @@ from discord import Guild, Member, Role from discord.ext import commands from discord.ext.commands import Bot -from . import syncers +from bot import constants +from bot.cogs.sync import syncers log = logging.getLogger(__name__) @@ -17,7 +18,7 @@ class Sync: # The server to synchronize events on. # Note that setting this wrongly will result in things getting deleted # that possibly shouldn't be. - SYNC_SERVER_ID = 267624335836053506 + SYNC_SERVER_ID = constants.Guild.id # An iterable of callables that are called when the bot is ready. ON_READY_SYNCERS: Iterable[Callable[[Bot, Guild], None]] = ( @@ -98,7 +99,7 @@ class Sync: if e.status != 404: raise - got_error = True # gorgeous + got_error = True # yikes if got_error: # If we got `404`, the user is new. Create them. |