mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 04:51:09 -05:00
add twitchLogo config for twitch_logo in template
This commit is contained in:
parent
bacb03f42e
commit
960076c839
@ -71,10 +71,14 @@ conf.registerChannelValue(SpiffyTitles, 'defaultTitleTemplate',
|
||||
#Twitch API Key
|
||||
conf.registerGlobalValue(SpiffyTitles, 'twitchAPI',
|
||||
registry.String('', _("""Twitch API Client_ID""")))
|
||||
|
||||
|
||||
# Twitch Logo
|
||||
conf.registerChannelValue(SpiffyTitles, 'twitchLogo',
|
||||
registry.String("\x030,6💬twitch", _("""Logo used with {{twitch_logo}} in template""")))
|
||||
|
||||
# Twitch template
|
||||
conf.registerChannelValue(SpiffyTitles, 'twitchTemplate',
|
||||
registry.String("^ {{display_name}} {%if live%}:: {{title}} :: (LIVE) {%if game_name%}[{{game_name}}] {%endif%}:: Started: {{started_at}} :: Stream Viewers: {{stream_viewers}} {%endif%}{%if description%}:: {{description}} {%endif%}:: Total Viewers: {{total_viewers}}", _("""Twitch title template""")))
|
||||
registry.String("^ {{twitch_logo}} {{display_name}} {%if live%}:: {{title}} :: (LIVE) {%if game_name%}[{{game_name}}] {%endif%}:: Started: {{started_at}} :: Stream Viewers: {{stream_viewers}} {%endif%}{%if description%}:: {{description}} {%endif%}:: Total Viewers: {{total_viewers}}", _("""Twitch title template""")))
|
||||
|
||||
#OMDB API Key
|
||||
conf.registerGlobalValue(SpiffyTitles, 'omdbAPI',
|
||||
@ -219,3 +223,4 @@ conf.registerChannelValue(SpiffyTitles.reddit, 'userTemplate',
|
||||
|
||||
conf.registerChannelValue(SpiffyTitles.reddit, 'maxChars',
|
||||
registry.Integer(400, _("""Length of response (title/extract will be cut to fit).""")))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user