mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54: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
|
# Init the config reader
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read("config.ini")
|
config.read("config.ini")
|
||||||
|
config = dict(config)
|
||||||
|
|
||||||
# Radio messages
|
# Radio messages
|
||||||
radio_messages = ["https://www.youtube.com/watch?v=3-yeK1Ck4yk",
|
radio_messages = ["https://www.youtube.com/watch?v=3-yeK1Ck4yk",
|
||||||
|
@ -560,7 +561,7 @@ class RoyalDiscordBot(discord.Client):
|
||||||
now_playing = self.video_queue[0]
|
now_playing = self.video_queue[0]
|
||||||
try:
|
try:
|
||||||
audio_source = now_playing.create_audio_source()
|
audio_source = now_playing.create_audio_source()
|
||||||
except FileNotDownloadedError:
|
except errors.FileNotDownloadedError:
|
||||||
continue
|
continue
|
||||||
logger.info(f"Started playing {repr(now_playing)}.")
|
logger.info(f"Started playing {repr(now_playing)}.")
|
||||||
voice_client.play(audio_source)
|
voice_client.play(audio_source)
|
||||||
|
|
|
@ -16,6 +16,7 @@ server_id =
|
||||||
main_channel =
|
main_channel =
|
||||||
afk_timer = 10
|
afk_timer = 10
|
||||||
radio_messages_every = 5
|
radio_messages_every = 5
|
||||||
|
activityreport_sample_time = 600
|
||||||
|
|
||||||
[Telegram]
|
[Telegram]
|
||||||
bot_token =
|
bot_token =
|
||||||
|
@ -37,6 +38,3 @@ client_id =
|
||||||
client_secret =
|
client_secret =
|
||||||
username =
|
username =
|
||||||
password =
|
password =
|
||||||
|
|
||||||
[Events]
|
|
||||||
halloween = 0
|
|
Loading…
Reference in a new issue