feat(limnoria): add NtrPlaylist IRC plugin
Made-with: Cursor
This commit is contained in:
36
plugins/limnoria/NtrPlaylist/config.py
Normal file
36
plugins/limnoria/NtrPlaylist/config.py
Normal file
@@ -0,0 +1,36 @@
|
||||
from supybot import conf, registry
|
||||
|
||||
|
||||
def configure(advanced):
|
||||
conf.registerPlugin("NtrPlaylist", True)
|
||||
|
||||
|
||||
NtrPlaylist = conf.registerPlugin("NtrPlaylist")
|
||||
|
||||
conf.registerGlobalValue(
|
||||
NtrPlaylist,
|
||||
"apiBaseUrl",
|
||||
registry.String(
|
||||
"http://127.0.0.1:8000",
|
||||
"""Base URL for the NtR SoundCloud Fetcher API (no trailing slash).""",
|
||||
),
|
||||
)
|
||||
|
||||
conf.registerGlobalValue(
|
||||
NtrPlaylist,
|
||||
"adminToken",
|
||||
registry.String(
|
||||
"",
|
||||
"""Bearer token for admin API endpoints.""",
|
||||
private=True,
|
||||
),
|
||||
)
|
||||
|
||||
conf.registerGlobalValue(
|
||||
NtrPlaylist,
|
||||
"adminNicks",
|
||||
registry.SpaceSeparatedListOfStrings(
|
||||
[],
|
||||
"""IRC nicknames allowed to run admin commands (space-separated).""",
|
||||
),
|
||||
)
|
||||
Reference in New Issue
Block a user