Audio Status warning enabled
This commit is contained in:
parent
eb6fa57653
commit
7fc081de87
@ -29,7 +29,7 @@ class AudioTrivia(Trivia):
|
|||||||
|
|
||||||
self.audioconf.register_guild(
|
self.audioconf.register_guild(
|
||||||
delay=30.0,
|
delay=30.0,
|
||||||
repeat=True
|
repeat=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
@commands.group()
|
@commands.group()
|
||||||
@ -90,6 +90,11 @@ class AudioTrivia(Trivia):
|
|||||||
await ctx.send("There is already an ongoing trivia session in this channel.")
|
await ctx.send("There is already an ongoing trivia session in this channel.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
status = await self.audio.config.status()
|
||||||
|
|
||||||
|
if status:
|
||||||
|
await ctx.send("I recommend disabling audio status with `{}audioset status`".format(ctx.prefix))
|
||||||
|
|
||||||
if not self.audio._player_check(ctx):
|
if not self.audio._player_check(ctx):
|
||||||
try:
|
try:
|
||||||
if not ctx.author.voice.channel.permissions_for(ctx.me).connect or self.audio._userlimit(
|
if not ctx.author.voice.channel.permissions_for(ctx.me).connect or self.audio._userlimit(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user