config for apikey, basic readme

This commit is contained in:
Pratyush Desai 2022-12-21 15:24:37 +05:30
parent deaf57caf9
commit 6ae3446347
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD
3 changed files with 22 additions and 8 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
venv/
.vscode

View File

@ -1 +1,16 @@
# Limnoria Playlists plugin
Provides the ability for a user to save media links as a playlist with custom categories.
## Installation
* This requires the latest Limnoria release
## Targetted Features:
* Association to the bot account for cross network communications
* Optional argument (with a default) that can be used to name a category
* Second argument being a link (currently only Youtube is the goal)
* Ability to generate playlist links from your saved music.
* Import/Export Playlist file.

View File

@ -16,18 +16,15 @@ except:
def configure(advanced):
# This will be called by supybot to configure this module. advanced is
# a bool that specifies whether the user identified themself as an advanced
# user or not. You should effect your configuration by manipulating the
# registry as appropriate.
from supybot.questions import expect, anything, something, yn
conf.registerPlugin('Playlists', True)
Playlists = conf.registerPlugin('Playlists')
# This is where your configuration variables (if any) should go. For example:
# conf.registerGlobalValue(Playlists, 'someConfigVariableName',
# registry.Boolean(False, _("""Help for someConfigVariableName.""")))
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
conf.registerGlobalValue(
Playlists,
"youtubeDeveloperKey",
registry.String("", _("""Google YT Data V3 API key. Required."""), private=True),
)