diff --git a/discordbot.py b/discordbot.py index d4fbb07e..c64aca75 100644 --- a/discordbot.py +++ b/discordbot.py @@ -54,6 +54,7 @@ loop = asyncio.get_event_loop() # Init the config reader config = configparser.ConfigParser() config.read("config.ini") +config = dict(config) # Radio messages radio_messages = ["https://www.youtube.com/watch?v=3-yeK1Ck4yk", @@ -560,7 +561,7 @@ class RoyalDiscordBot(discord.Client): now_playing = self.video_queue[0] try: audio_source = now_playing.create_audio_source() - except FileNotDownloadedError: + except errors.FileNotDownloadedError: continue logger.info(f"Started playing {repr(now_playing)}.") voice_client.play(audio_source) diff --git a/template_config.ini b/template_config.ini index 8d7a40ff..730a6379 100644 --- a/template_config.ini +++ b/template_config.ini @@ -16,6 +16,7 @@ server_id = main_channel = afk_timer = 10 radio_messages_every = 5 +activityreport_sample_time = 600 [Telegram] bot_token = @@ -37,6 +38,3 @@ client_id = client_secret = username = password = - -[Events] -halloween = 0 \ No newline at end of file