File tree 4 files changed +12
-10
lines changed
4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -159,3 +159,4 @@ cython_debug/
159
159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
160
# .idea/
161
161
test.py
162
+ .vscode /settings.json
Original file line number Diff line number Diff line change 24
24
from .logger import LOGS
25
25
26
26
27
+ async def __clean__ (chat_id : int , force : bool ):
28
+ if force :
29
+ Queue .rm_queue (chat_id , 0 )
30
+ else :
31
+ Queue .clear_queue (chat_id )
32
+ await db .remove_active_vc (chat_id )
33
+
34
+
27
35
class HellMusic (PyTgCalls ):
28
36
def __init__ (self ):
29
37
self .music = PyTgCalls (hellbot .user )
30
38
self .audience = {}
31
39
32
- async def __clean__ (self , chat_id : int , force : bool ):
33
- if force :
34
- Queue .rm_queue (chat_id , 0 )
35
- else :
36
- Queue .clear_queue (chat_id )
37
- await db .remove_active_vc (chat_id )
38
-
39
40
async def autoend (self , chat_id : int , users : list ):
40
41
autoend = await db .get_autoend ()
41
42
if autoend :
@@ -88,7 +89,7 @@ async def resume_vc(self, chat_id: int):
88
89
89
90
async def leave_vc (self , chat_id : int , force : bool = False ):
90
91
try :
91
- await self . __clean__ (chat_id , force )
92
+ await __clean__ (chat_id , force )
92
93
await self .music .leave_group_call (chat_id )
93
94
except :
94
95
pass
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ async def controler_cb(_, cb: CallbackQuery):
120
120
await db .set_loop (cb .message .chat .id , final )
121
121
await cb .answer (f"Loop set to { final } " , show_alert = True )
122
122
return await cb .message .reply_text (
123
- f"__Loop set to { final } __ by: { cb .from_user .mention } \n \Previous loop was { is_loop } "
123
+ f"__Loop set to { final } __ by: { cb .from_user .mention } \n \n Previous loop was { is_loop } "
124
124
)
125
125
elif action == "replay" :
126
126
hell = await cb .message .reply_text ("Processing ..." )
Original file line number Diff line number Diff line change 6
6
7
7
# versions dictionary
8
8
__version__ = {
9
- "Hell Music" : "0.0.9 " ,
9
+ "Hell Music" : "0.1.0 " ,
10
10
"Python" : platform .python_version (),
11
11
"Pyrogram" : pyro_version ,
12
12
"PyTgCalls" : pytgcalls_version ,
You can’t perform that action at this time.
0 commit comments