This commit is contained in:
Entarno54 2025-05-11 16:13:51 +07:00
parent 662250cbb5
commit ef25a43234
3 changed files with 15 additions and 7 deletions

9
.idea/dictionaries/project.xml generated Normal file
View File

@ -0,0 +1,9 @@
<component name="ProjectDictionaryState">
<dictionary name="project">
<words>
<w>raaahhh</w>
<w>squog</w>
<w>squogify</w>
</words>
</dictionary>
</component>

View File

@ -6,8 +6,6 @@ import threading
import time
from main import client
SquogFinalName: str = None
SquogPlaying = {
}
@ -23,7 +21,7 @@ SquogVideo = {
"quality": "low"
}
SquogCurrentConnection: nextcord.VoiceClient = None
SquogCurrentConnection = None
SquogDownload = yt_dlp.YoutubeDL(SquogVideo)
@ -108,6 +106,7 @@ class Voice(commands.Cog):
return await ctx.reply("I'm not playing music.")
ctx.guild.voice_client.stop()
SquogPlaying[ctx.guild.id] = False
return None
@client.event
async def on_voice_state_update(member: nextcord.Member, before: nextcord.VoiceState, after: nextcord.VoiceState):

View File

@ -29,10 +29,10 @@ async def find(list: list, param: str, value: any):
return found
async def flush():
SquogDataFile = open("./userinfo/userinfo.json", "w")
SquogDataFile.write(json.dumps(SquogData))
SquogDataFile.flush()
SquogDataFile.close()
LocalSquogDataFile = open("./userinfo/userinfo.json", "w")
LocalSquogDataFile.write(json.dumps(SquogData))
LocalSquogDataFile.flush()
LocalSquogDataFile.close()
class AI(commands.Cog):
def __init__(self, bot: commands.Bot):