diff options
-rw-r--r-- | config.py | 1 | ||||
-rw-r--r-- | main.py | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -6,3 +6,4 @@ config.read('config.ini') discord = config['discord'] token = discord['token'] +status = discord.get('status') @@ -1,9 +1,10 @@ +from discord import Game from discord.ext.commands import Bot, when_mentioned_or -from config import token +from config import token, status from util import load_all_modules -bot = Bot(command_prefix=when_mentioned_or('!')) +bot = Bot(command_prefix=when_mentioned_or('!'), activity=Game(status) if status else None) load_all_modules(bot) |