small bug and start of config
This commit is contained in:
parent
d876c0a6c3
commit
25f0766982
@ -60,4 +60,4 @@ class AudioSession(TriviaSession):
|
|||||||
|
|
||||||
async def end_game(self):
|
async def end_game(self):
|
||||||
await super().end_game()
|
await super().end_game()
|
||||||
await self.ctx.invoke(self.player.disconnect)
|
await self.player.disconnect()
|
||||||
|
@ -7,7 +7,7 @@ import yaml
|
|||||||
from redbot.cogs.audio import Audio
|
from redbot.cogs.audio import Audio
|
||||||
from redbot.cogs.trivia import LOG
|
from redbot.cogs.trivia import LOG
|
||||||
from redbot.cogs.trivia.trivia import InvalidListError, Trivia
|
from redbot.cogs.trivia.trivia import InvalidListError, Trivia
|
||||||
from redbot.core import commands
|
from redbot.core import commands, Config
|
||||||
from redbot.core.bot import Red
|
from redbot.core.bot import Red
|
||||||
from redbot.core.data_manager import cog_data_path
|
from redbot.core.data_manager import cog_data_path
|
||||||
from redbot.core.utils import box
|
from redbot.core.utils import box
|
||||||
@ -25,6 +25,12 @@ class AudioTrivia(Trivia):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.audio = None
|
self.audio = None
|
||||||
|
self.audioconf = Config.get_conf(self, identifier=651171001051118411410511810597, force_registration=True)
|
||||||
|
|
||||||
|
self.audioconf.register_guild(
|
||||||
|
delay=30.0,
|
||||||
|
repeat=True
|
||||||
|
) # Todo: Repeat songs shorter than the delay (csgo sound effects for example)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user