mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 13:02:38 +00:00
Add config to register owner commands in one guild
This commit is contained in:
parent
01b20b5ad0
commit
e9a284fa99
3 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ Run to create `config.toml`\
|
|||
The file will automatically generate if it does not exist
|
||||
```
|
||||
guilds = [] # guild IDs to register commands, empty for global
|
||||
master = 0 # guild ID to register owner commands
|
||||
client = 0 # bot application ID
|
||||
token = "" # bot token
|
||||
activity = "" # bot status
|
||||
|
|
|
@ -5,7 +5,7 @@ import lightbulb
|
|||
import config as c
|
||||
|
||||
|
||||
plugin = lightbulb.Plugin("master")
|
||||
plugin = lightbulb.Plugin("master", default_enabled_guilds=c.config["master"])
|
||||
|
||||
|
||||
@plugin.command
|
||||
|
|
|
@ -6,6 +6,7 @@ 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
|
||||
master = 0 # guild ID to register owner commands
|
||||
client = 0 # bot application ID
|
||||
token = "" # bot token
|
||||
activity = "" # bot status
|
||||
|
|
Loading…
Reference in a new issue