Skip to content

Commit 47dbb65

Browse files
committed
updates
1 parent 1088e00 commit 47dbb65

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,4 @@ cython_debug/
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161161
test.py
162+
.vscode/settings.json

Music/core/calls.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@
2424
from .logger import LOGS
2525

2626

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+
2735
class HellMusic(PyTgCalls):
2836
def __init__(self):
2937
self.music = PyTgCalls(hellbot.user)
3038
self.audience = {}
3139

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-
3940
async def autoend(self, chat_id: int, users: list):
4041
autoend = await db.get_autoend()
4142
if autoend:
@@ -88,7 +89,7 @@ async def resume_vc(self, chat_id: int):
8889

8990
async def leave_vc(self, chat_id: int, force: bool = False):
9091
try:
91-
await self.__clean__(chat_id, force)
92+
await __clean__(chat_id, force)
9293
await self.music.leave_group_call(chat_id)
9394
except:
9495
pass

Music/plugins/callbacks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def controler_cb(_, cb: CallbackQuery):
120120
await db.set_loop(cb.message.chat.id, final)
121121
await cb.answer(f"Loop set to {final}", show_alert=True)
122122
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\nPrevious loop was {is_loop}"
124124
)
125125
elif action == "replay":
126126
hell = await cb.message.reply_text("Processing ...")

Music/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# versions dictionary
88
__version__ = {
9-
"Hell Music": "0.0.9",
9+
"Hell Music": "0.1.0",
1010
"Python": platform.python_version(),
1111
"Pyrogram": pyro_version,
1212
"PyTgCalls": pytgcalls_version,

0 commit comments

Comments
 (0)