remove all job done
This commit is contained in:
parent
13312e3c90
commit
74dda53644
1 changed files with 0 additions and 7 deletions
|
@ -1,9 +1,7 @@
|
|||
import discord
|
||||
from subprocess import Popen, DEVNULL
|
||||
from wavelink import Client as wClient
|
||||
from discord.ext import commands
|
||||
from utils.core import load
|
||||
from time import sleep
|
||||
|
||||
def setup(client):
|
||||
client.add_cog(Music(client))
|
||||
|
@ -13,14 +11,9 @@ class Music(commands.Cog):
|
|||
def __init__(self, client):
|
||||
self.client = client
|
||||
self.keys = load(["REGION_DISCORD"])
|
||||
print("Démarrage du serveur Lavalink...", end = " ")
|
||||
Popen(['java', '-jar', 'Lavalink.jar'], stdout = DEVNULL)
|
||||
print("Lavalink prêt")
|
||||
|
||||
if not hasattr(client, 'wavelink'):
|
||||
self.client.wavelink = wClient(bot = self.client)
|
||||
|
||||
sleep(15)
|
||||
|
||||
self.client.loop.create_task(self.start_nodes())
|
||||
|
||||
|
|
Reference in a new issue