main
cynic 2 years ago
parent 3466c6ba7a
commit 451144acaf
  1. 14
      main.py

@ -5,7 +5,7 @@ import asyncio
import requests import requests
import json import json
g_client = discord.Client() g_client = discord.Client(intents=discord.Intents.all())
queue = [] queue = []
voice_client = None voice_client = None
@ -56,9 +56,13 @@ async def on_message(message):
return return
if message.content.startswith("*play"): if message.content.startswith("*play"):
try: voice_client = await message.author.voice.channel.connect() print("1")
except: pass try:
print("2", message.author.voice.channel, discord.__version__)
voice_client = await message.author.voice.channel.connect()
print("shiggy", voice_client)
except Exception as e: print("passed on the oppo of a lifetime xister", e)
print("3")
await q_vid(message.content.split(" ")[1]) await q_vid(message.content.split(" ")[1])
await message.channel.send("k") await message.channel.send("k")
@ -99,5 +103,5 @@ async def on_message(message):
await message.channel.send(embed=embed) await message.channel.send(embed=embed)
conf = open("token", "r") conf = open("token", "r")
g_client.run(conf.read(), bot=True) g_client.run(conf.read())
conf.close() conf.close()
Loading…
Cancel
Save