From 55c6967967c91a3259e9af67ba61dcfdaaff5f9e Mon Sep 17 00:00:00 2001 From: romangraef Date: Wed, 14 Nov 2018 20:05:51 +0100 Subject: added status option --- config.py | 1 + main.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 08b3193..dead3a2 100644 --- a/config.py +++ b/config.py @@ -6,3 +6,4 @@ config.read('config.ini') discord = config['discord'] token = discord['token'] +status = discord.get('status') diff --git a/main.py b/main.py index caf02e6..8d4b0cd 100644 --- a/main.py +++ b/main.py @@ -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) -- cgit