Added Reddit oauth

Added client_id and client_secret
This commit is contained in:
klapvogn 2024-08-10 19:00:39 +02:00 committed by GitHub
parent ac3b4b5976
commit 1fc876e94f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -370,6 +370,24 @@ conf.registerChannelValue(
registry.Boolean(True, _("""Whether to add additional info about Reddit links.""")),
)
# Reddit oauth
conf.registerGlobalValue(
SpiffyTitles.reddit,
"clientid",
registry.String(
"", _("""Reddit oauth client_key - required for Reddit handler."""), private=True
),
)
conf.registerGlobalValue(
SpiffyTitles.reddit,
"clientsecret",
registry.String(
"", _("""Reddit oauth client_secret - required for Reddit handler."""), private=True
),
)
# End
# Reddit templates
conf.registerChannelValue(
SpiffyTitles.reddit,
@ -675,7 +693,6 @@ conf.registerChannelValue(
),
)
# coub configs
conf.registerGroup(SpiffyTitles, "coub")