feat: Allow users to specify a cookie when querying youtube.

See #263.
This commit is contained in:
Terry Geng
2021-04-23 23:01:20 +08:00
parent b7232b8bae
commit 61748c199a
3 changed files with 11 additions and 1 deletions

View File

@ -116,6 +116,13 @@ port = 64738
# - leave empty (do nothing)
#when_nobody_in_channel =
# 'youtube_query_cookie': Sometimes youtube will block the request of our bot and
# request the bot to complete a captcha to verify the request is not made by a
# bot.
# This problem can be resolved if the bot bears a valid cookie.
# If the bot complains "unable to query youtube", you may try to add your cookie here.
#youtube_query_cookie = {'CONSENT': 'paste your CONSENT cookie value here'}
# [webinterface] stores settings related to the web interface.
[webinterface]
# 'enable': Set 'enabled' to True if you'd like to use the web interface to manage