From 8d9d5df20407a691acf35101cb41f5f0212a4ee3 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 21 Feb 2022 13:39:31 -0600 Subject: [PATCH] Add activity to config.py --- config.py | 2 ++ run.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 72b0ee7..537ef51 100644 --- a/config.py +++ b/config.py @@ -1,5 +1,7 @@ import toml +import hikari +ACTIVITY = hikari.ActivityType.LISTENING ERROR = '```❗ An internal error has occurred. This has been reported to my master. 🐺```' CONFIG = '''\ guilds = [] # guild IDs to register commands, empty for global diff --git a/run.py b/run.py index 807c932..1afea8c 100644 --- a/run.py +++ b/run.py @@ -31,4 +31,4 @@ async def on_error(event): miru.load(bot) bot.load_extensions_from('tools', 'commands') -bot.run(activity=hikari.Activity(name=c.config['activity'], type=hikari.ActivityType.LISTENING)) +bot.run(activity=hikari.Activity(name=c.config['activity'], type=c.ACTIVITY))