mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Added source_address in Audio, fixed typo in Trivia
source_address should fix the "Too many requests" issue with certain hosts
This commit is contained in:
parent
56da31527e
commit
f3833e94ad
@ -36,6 +36,7 @@ else:
|
||||
opus = True
|
||||
|
||||
youtube_dl_options = {
|
||||
'source_address': '0.0.0.0',
|
||||
'format': 'bestaudio/best',
|
||||
'extractaudio': True,
|
||||
'audioformat': "mp3",
|
||||
|
||||
@ -166,7 +166,7 @@ class TriviaSession():
|
||||
if parsed_list != []:
|
||||
return parsed_list
|
||||
else:
|
||||
self.stop_trivia()
|
||||
await self.stop_trivia()
|
||||
return None
|
||||
|
||||
async def new_question(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user