From 69906aa4749256d760cbe2d1b55bce338077419b Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 17 Jan 2018 10:26:52 -0600 Subject: [PATCH] add configuration for the bot command prefix --- bot/__init__.py | 3 ++- hitomi/settings.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/__init__.py b/bot/__init__.py index 118690e..6a52448 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -14,4 +14,5 @@ class Hitomi(commands.Bot): self.on_message_handlers = [] -hitomi = Hitomi(command_prefix='!', description=BOT_DESCRIPTION, max_messages=settings.DISCORD_BOT_MAX_MESSAGES) +hitomi = Hitomi(command_prefix=settings.DISCORD_BOT_COMMAND_PREFIX, description=BOT_DESCRIPTION, + max_messages=settings.DISCORD_BOT_MAX_MESSAGES) diff --git a/hitomi/settings.py b/hitomi/settings.py index d292383..b9feaa4 100644 --- a/hitomi/settings.py +++ b/hitomi/settings.py @@ -131,6 +131,7 @@ STATIC_URL = '/static/' DISCORD_BOT_TOKEN = 'token' +DISCORD_BOX_COMMAND_PREFIX = '!' DISCORD_BOT_MAX_MESSAGES = 5000 LOGGER_BASE_DIR = './logs' WEATHER_WEATHER_UNDERGROUND_API_KEY = 'key'