-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.py
48 lines (36 loc) · 1.07 KB
/
helper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 13 19:16:49 2023
@author: samuii
"""
# class botGuild():
# def __init__(self,guild_id):
# self.guild_id = guild_id
# self.guildOptions = guildOptions()
import os
SongsTempDir="./SongsTempDir/"
class guildOptions():
def __init__(self):
self.is_playing = False
self.is_paused = False
self.skip = False
self.loop = False
self.current_song = None
self.music_queue = []
self.vc = None
self.YDL_OPTIONS =\
{
'format':'bestaudio[acodec=opus]',
'outtmpl':os.path.join(SongsTempDir,'%(id)s.opus'),
'format-sort':'acodec:',
'noplaylist':'True',
"no_warnings": True,
"retries":5,
"quiet": True,
}
self.FFMPEG_OPTIONS =\
{
'before_options': '',
'options': '-vn'
}