allow supplying max_messages to the discord bot
This commit is contained in:
parent
213b9ff400
commit
50a5c3d94a
@ -1,6 +1,7 @@
|
|||||||
"""Discord bot Hitomi and its library functions."""
|
"""Discord bot Hitomi and its library functions."""
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
BOT_DESCRIPTION = "A simple Discord bot."
|
BOT_DESCRIPTION = "A simple Discord bot."
|
||||||
|
|
||||||
hitomi = commands.Bot(command_prefix='!', description=BOT_DESCRIPTION)
|
hitomi = commands.Bot(command_prefix='!', description=BOT_DESCRIPTION, max_messages=settings.DISCORD_BOT_MAX_MESSAGES)
|
||||||
|
@ -127,6 +127,8 @@ STATIC_URL = '/static/'
|
|||||||
# default bot settings
|
# default bot settings
|
||||||
|
|
||||||
DISCORD_BOT_TOKEN = 'token'
|
DISCORD_BOT_TOKEN = 'token'
|
||||||
|
|
||||||
|
DISCORD_BOT_MAX_MESSAGES = 5000
|
||||||
LOGGER_BASE_DIR = './logs'
|
LOGGER_BASE_DIR = './logs'
|
||||||
WEATHER_WEATHER_UNDERGROUND_API_KEY = 'key'
|
WEATHER_WEATHER_UNDERGROUND_API_KEY = 'key'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user