1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Update config.ini

This commit is contained in:
Steffo 2019-01-03 14:17:44 +01:00
parent bb4d116aac
commit 3227d52ab6
2 changed files with 25 additions and 26 deletions

View file

@ -424,13 +424,13 @@ class RoyalDiscordBot(discord.Client):
# Defined in the YoutubeDLVideo class
# Max videos to predownload
try:
self.max_videos_to_predownload = int(config["Video"]["cache_size"])
self.max_videos_to_predownload = int(config["Discord"]["video_cache_size"])
except (KeyError, ValueError):
logger.warning("Max videos to predownload is not set, setting it to infinity.")
self.max_videos_to_predownload = None
# Max time to ready a video
try:
self.max_video_ready_time = int(config["Video"]["max_ready_time"])
self.max_video_ready_time = int(config["Discord"]["max_ready_time"])
except (KeyError, ValueError):
logger.warning("Max time to ready a video is not set, setting it to infinity. ")
self.max_video_ready_time = math.inf

View file

@ -2,18 +2,6 @@
# Database URI in the SQLAlchemy format; a PostgreSQL database is suggested, but others _may_ work too
database_uri = postgres://
[Steam]
# Steam Developer API key, can be obtained at https://steamcommunity.com/dev/apikey
api_key =
[League of Legends]
# Riot Games Developer API key, can be obtained at https://developer.riotgames.com/, requires a registered project
riot_api_key =
[Osu!]
# osu! API key, can be obtained at https://osu.ppy.sh/p/api
ppy_api_key =
[Discord]
# Discord bot token, obtained at https://discordapp.com/developers/applications/
bot_token =
@ -25,16 +13,10 @@ main_channel =
afk_timer = 30
# Time in between two activity reports (viewable at https://ryg.steffo.eu/activity)
activityreport_sample_time = 600
[Telegram]
# Telegram bot token, obtainable at https://t.me/BotFather
bot_token =
# Telegram main group id, where errors should be reported
main_group =
[Video]
# Enable song text easter eggs?
song_text_easter_eggs_enabled = True
# Maximum videos in queue to predownload
cache_size = 5
video_cache_size = 5
# Maximum time a video may take to become ready (download time) before being removed from the queue
max_ready_time = 30
# Enable radio messages?
@ -42,9 +24,11 @@ radio_messages_enabled = False
# Number of videos between two radio messages
radio_messages_every = 5
[Sentry]
# Sentry error-reporting token obtainable at https://sentry.io
token =
[Telegram]
# Telegram bot token, obtainable at https://t.me/BotFather
bot_token =
# Telegram main group id, where errors should be reported
main_group =
[Flask]
# Secret key, used to encrypt cookies
@ -60,3 +44,18 @@ username =
# Bot password
password =
[Steam]
# Steam Developer API key, can be obtained at https://steamcommunity.com/dev/apikey
api_key =
[League of Legends]
# Riot Games Developer API key, can be obtained at https://developer.riotgames.com/, requires a registered project
riot_api_key =
[Osu!]
# osu! API key, can be obtained at https://osu.ppy.sh/p/api
ppy_api_key =
[Sentry]
# Sentry error-reporting token obtainable at https://sentry.io
token =