1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Add activity to config.py

This commit is contained in:
Myned 2022-02-21 13:39:31 -06:00
parent 189dc23e82
commit 8d9d5df204
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
import toml import toml
import hikari
ACTIVITY = hikari.ActivityType.LISTENING
ERROR = '```❗ An internal error has occurred. This has been reported to my master. 🐺```' ERROR = '```❗ An internal error has occurred. This has been reported to my master. 🐺```'
CONFIG = '''\ CONFIG = '''\
guilds = [] # guild IDs to register commands, empty for global guilds = [] # guild IDs to register commands, empty for global

2
run.py
View file

@ -31,4 +31,4 @@ async def on_error(event):
miru.load(bot) miru.load(bot)
bot.load_extensions_from('tools', 'commands') 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))