Fixes
This commit is contained in:
parent
662250cbb5
commit
ef25a43234
9
.idea/dictionaries/project.xml
generated
Normal file
9
.idea/dictionaries/project.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="ProjectDictionaryState">
|
||||
<dictionary name="project">
|
||||
<words>
|
||||
<w>raaahhh</w>
|
||||
<w>squog</w>
|
||||
<w>squogify</w>
|
||||
</words>
|
||||
</dictionary>
|
||||
</component>
|
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user