From 0e674ec8ecd7090706b64be8bee4994907830ac2 Mon Sep 17 00:00:00 2001 From: Scragly <29337040+scragly@users.noreply.github.com> Date: Sun, 21 Apr 2019 06:28:19 +1000 Subject: Add seasonalbot-chat and python-discussion channels. --- bot/constants.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index b19d494b..6d10cf8f 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -46,8 +46,10 @@ class Channels(NamedTuple): off_topic_2 = 463035268514185226 python = 267624335836053506 reddit = 458224812528238616 + seasonalbot_chat = int(environ.get('CHANNEL_SEASONALBOT_CHAT', 542272993192050698)) staff_lounge = 464905259261755392 verification = 352442727016693763 + python_discussion = 267624335836053506 class Client(NamedTuple): -- cgit v1.2.3 From 20120e189818987e2a3827b0550c28a2fa90d632 Mon Sep 17 00:00:00 2001 From: Scragly <29337040+scragly@users.noreply.github.com> Date: Sun, 21 Apr 2019 06:49:47 +1000 Subject: Change devlog to seasonalbot-log channel. --- bot/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 6d10cf8f..7011bd8c 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -29,7 +29,7 @@ class Channels(NamedTuple): bot = 267659945086812160 checkpoint_test = 422077681434099723 devalerts = 460181980097675264 - devlog = int(environ.get('CHANNEL_DEVLOG', 409308876241108992)) + devlog = int(environ.get('CHANNEL_DEVLOG', 548438471685963776)) devtest = 414574275865870337 help_0 = 303906576991780866 help_1 = 303906556754395136 -- cgit v1.2.3 From 42ebba0622dd63da735c916f4d4eca39c020c45a Mon Sep 17 00:00:00 2001 From: Scragly <29337040+scragly@users.noreply.github.com> Date: Sun, 21 Apr 2019 08:47:29 +1000 Subject: Allow prefix env, move db location. --- bot/constants.py | 2 +- bot/resources/easter/egg_hunt.sqlite | Bin 16384 -> 0 bytes bot/resources/persist/egg_hunt.sqlite | Bin 0 -> 16384 bytes bot/seasons/easter/egg_hunt/cog.py | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 bot/resources/easter/egg_hunt.sqlite create mode 100644 bot/resources/persist/egg_hunt.sqlite (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 7011bd8c..a62166af 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -54,7 +54,7 @@ class Channels(NamedTuple): class Client(NamedTuple): guild = int(environ.get('SEASONALBOT_GUILD', 267624335836053506)) - prefix = "." + prefix = environ.get("PREFIX", ".") token = environ.get('SEASONALBOT_TOKEN') debug = environ.get('SEASONALBOT_DEBUG', '').lower() == 'true' season_override = environ.get('SEASON_OVERRIDE') diff --git a/bot/resources/easter/egg_hunt.sqlite b/bot/resources/easter/egg_hunt.sqlite deleted file mode 100644 index 6a7ae32d..00000000 Binary files a/bot/resources/easter/egg_hunt.sqlite and /dev/null differ diff --git a/bot/resources/persist/egg_hunt.sqlite b/bot/resources/persist/egg_hunt.sqlite new file mode 100644 index 00000000..6a7ae32d Binary files /dev/null and b/bot/resources/persist/egg_hunt.sqlite differ diff --git a/bot/seasons/easter/egg_hunt/cog.py b/bot/seasons/easter/egg_hunt/cog.py index a4cf823d..e963f22b 100644 --- a/bot/seasons/easter/egg_hunt/cog.py +++ b/bot/seasons/easter/egg_hunt/cog.py @@ -15,7 +15,7 @@ from .constants import Colours, EggHuntSettings, Emoji, Roles log = logging.getLogger(__name__) -DB_PATH = Path("bot", "resources", "easter", "egg_hunt.sqlite") +DB_PATH = Path("bot", "resources", "persist", "egg_hunt.sqlite") TEAM_MAP = { Roles.white: Emoji.egg_white, -- cgit v1.2.3