1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 22:27:28 +00:00

Add config to register owner commands in one guild

This commit is contained in:
Myned 2022-03-03 23:54:38 -06:00
parent 01b20b5ad0
commit e9a284fa99
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8
3 changed files with 3 additions and 1 deletions

View file

@ -37,6 +37,7 @@ Run to create `config.toml`\
The file will automatically generate if it does not exist The file will automatically generate if it does not exist
``` ```
guilds = [] # guild IDs to register commands, empty for global guilds = [] # guild IDs to register commands, empty for global
master = 0 # guild ID to register owner commands
client = 0 # bot application ID client = 0 # bot application ID
token = "" # bot token token = "" # bot token
activity = "" # bot status activity = "" # bot status

View file

@ -5,7 +5,7 @@ import lightbulb
import config as c import config as c
plugin = lightbulb.Plugin("master") plugin = lightbulb.Plugin("master", default_enabled_guilds=c.config["master"])
@plugin.command @plugin.command

View file

@ -6,6 +6,7 @@ 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
master = 0 # guild ID to register owner commands
client = 0 # bot application ID client = 0 # bot application ID
token = "" # bot token token = "" # bot token
activity = "" # bot status activity = "" # bot status