mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix bug
This commit is contained in:
parent
a5f0df2597
commit
1e8d64059d
2 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue