-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f86b942
commit b5eaf9b
Showing
17 changed files
with
86 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from kreacher.dicts.dicts import QUEUE | ||
from tlg_bot.dicts.dicts import QUEUE | ||
|
||
active = [] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
from asyncio import sleep | ||
from telethon import events | ||
from kreacher import kreacher | ||
from kreacher.dicts.dicts import VOICE_CHATS | ||
from tlg_bot import kreacher | ||
from tlg_bot.dicts.dicts import VOICE_CHATS | ||
|
||
|
||
@kreacher.on(events.NewMessage(pattern="[!?/]actives")) | ||
async def actives(event): | ||
msg = await event.reply( | ||
"<i>Getting active Voice Chats... \n\nPlease hold, master</i>", | ||
parse_mode="HTML", | ||
"__Getting active Voice Chats... \n\nPlease hold, master__", | ||
) | ||
await sleep(3) | ||
served_chats = len(VOICE_CHATS) | ||
if served_chats > 0: | ||
return await msg.edit( | ||
f"<i>Active Voice Chats: </i><b>{served_chats}</b>", | ||
parse_mode="HTML", | ||
f"__Active Voice Chats:__ **{served_chats}**", | ||
) | ||
|
||
return await msg.edit("<i>No active Voice Chats</i>", parse_mode="HTML") | ||
return await msg.edit("__No active Voice Chats__") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.