finished queue system, overwrites discord kill process to loop

This commit is contained in:
2023-05-26 16:49:45 +01:00
parent 8bc45786b1
commit 10907570a2
5 changed files with 174 additions and 71 deletions

View File

@@ -1,5 +1,3 @@
import discord
from discord.ext import commands
from discord.ext.commands.context import Context
from discord.ext.commands.converter import CommandError
@@ -45,3 +43,8 @@ async def leave_vc(ctx: Context):
# Disconnect
await ctx.voice_client.disconnect(force=False)
# Check if command was entered in a server
async def in_server(ctx: Context):
return ctx.guild != None