diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-14 20:05:51 +0100 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-14 20:05:51 +0100 |
commit | 55c6967967c91a3259e9af67ba61dcfdaaff5f9e (patch) | |
tree | aa5462f6cbd4aec193410e25a9ada22a452a282e | |
parent | 8930fb265cd2df4750e3a351b8da911c2d68d55f (diff) | |
download | evalbot-55c6967967c91a3259e9af67ba61dcfdaaff5f9e.tar.gz evalbot-55c6967967c91a3259e9af67ba61dcfdaaff5f9e.tar.bz2 evalbot-55c6967967c91a3259e9af67ba61dcfdaaff5f9e.zip |
added status option
-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) |