Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
096ee5f
1
Parent(s):
1fa1a47
Minor fixes and improvement
Browse files- Powers/plugins/admin.py +1 -1
- Powers/plugins/approve.py +1 -1
- Powers/plugins/bans.py +1 -1
- Powers/plugins/blacklist.py +1 -1
- Powers/plugins/dev.py +19 -1
- Powers/plugins/filters.py +7 -3
- Powers/plugins/formatting.py +1 -1
- Powers/plugins/fun.py +1 -1
- Powers/plugins/greetings.py +1 -1
- Powers/plugins/info.py +1 -1
- Powers/plugins/locks.py +1 -1
- Powers/plugins/muting.py +1 -1
- Powers/plugins/notes.py +1 -1
- Powers/plugins/pin.py +1 -1
- Powers/plugins/purge.py +1 -1
- Powers/plugins/report.py +1 -1
- Powers/plugins/rules.py +1 -1
- Powers/plugins/start.py +2 -1
- Powers/plugins/utils.py +1 -1
- Powers/plugins/warns.py +1 -1
- Powers/utils/caching.py +0 -1
Powers/plugins/admin.py
CHANGED
@@ -553,7 +553,7 @@ __alt_name__ = [
|
|
553 |
]
|
554 |
|
555 |
__HELP__ = """
|
556 |
-
|
557 |
|
558 |
**User Commands:**
|
559 |
• /adminlist: List all the admins in the Group.
|
|
|
553 |
]
|
554 |
|
555 |
__HELP__ = """
|
556 |
+
**Admin**
|
557 |
|
558 |
**User Commands:**
|
559 |
• /adminlist: List all the admins in the Group.
|
Powers/plugins/approve.py
CHANGED
@@ -235,7 +235,7 @@ __alt_name__ = ["approved"]
|
|
235 |
|
236 |
|
237 |
__HELP__ = """
|
238 |
-
|
239 |
|
240 |
**Admin commands:**
|
241 |
• /approval: Check a user's approval status in this chat.
|
|
|
235 |
|
236 |
|
237 |
__HELP__ = """
|
238 |
+
**Apporve**
|
239 |
|
240 |
**Admin commands:**
|
241 |
• /approval: Check a user's approval status in this chat.
|
Powers/plugins/bans.py
CHANGED
@@ -936,7 +936,7 @@ __alt_name__ = [
|
|
936 |
]
|
937 |
|
938 |
__HELP__ = """
|
939 |
-
|
940 |
|
941 |
**Admin only:**
|
942 |
• /kick: Kick the user replied or tagged.
|
|
|
936 |
]
|
937 |
|
938 |
__HELP__ = """
|
939 |
+
**Bans**
|
940 |
|
941 |
**Admin only:**
|
942 |
• /kick: Kick the user replied or tagged.
|
Powers/plugins/blacklist.py
CHANGED
@@ -209,7 +209,7 @@ __PLUGIN__ = "blacklist"
|
|
209 |
__alt_name__ = ["blacklists", "blaction"]
|
210 |
|
211 |
__HELP__ = """
|
212 |
-
|
213 |
|
214 |
**NOTE:** blacklists do not affect group admins.
|
215 |
• /blacklist: View the current blacklisted words.
|
|
|
209 |
__alt_name__ = ["blacklists", "blaction"]
|
210 |
|
211 |
__HELP__ = """
|
212 |
+
**Blacklist**
|
213 |
|
214 |
**NOTE:** blacklists do not affect group admins.
|
215 |
• /blacklist: View the current blacklisted words.
|
Powers/plugins/dev.py
CHANGED
@@ -290,4 +290,22 @@ async def chat_broadcast(c: Gojo, m: Message):
|
|
290 |
|
291 |
_DISABLE_CMDS_ = ["ping"]
|
292 |
|
293 |
-
__HELP__ = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
|
291 |
_DISABLE_CMDS_ = ["ping"]
|
292 |
|
293 |
+
__HELP__ = """
|
294 |
+
**DEV and SUDOERS commands**
|
295 |
+
|
296 |
+
**Dev's commands:**
|
297 |
+
• /logs : Return the logs of bot.
|
298 |
+
• /neofetch : Fetch neo.
|
299 |
+
• /eval : Evaluate the given python code.
|
300 |
+
• /exec : Execute the given code.
|
301 |
+
• /chatlist : Return the list of chats present in database
|
302 |
+
• /uptime : Return the uptime of the bot.
|
303 |
+
• /leavechat : Bot will leave the provided chat.
|
304 |
+
• /chatbroadcast : Broadcast the messge to chats.
|
305 |
+
|
306 |
+
**Sudoer's command:**
|
307 |
+
• /ping : return the ping of the bot.
|
308 |
+
|
309 |
+
**Example:**
|
310 |
+
/ping
|
311 |
+
"""
|
Powers/plugins/filters.py
CHANGED
@@ -298,7 +298,7 @@ _DISABLE_CMDS_ = ["filters"]
|
|
298 |
__alt_name__ = ["filters", "autoreply"]
|
299 |
|
300 |
__HELP__ = """
|
301 |
-
|
302 |
|
303 |
• /filters: List all active filters saved in the chat.
|
304 |
|
@@ -316,8 +316,12 @@ Aliases for filters can be too set, just put '|' between the filternames you wan
|
|
316 |
Using the you can make a single filter work on 2 filternames without manually adding another one.
|
317 |
|
318 |
• /stop `<filter keyword>`: Stop that filter.
|
319 |
-
|
320 |
-
**
|
|
|
|
|
|
|
|
|
321 |
|
322 |
**Chat creator only:**
|
323 |
• /removeallfilters: Remove all chat filters at once.
|
|
|
298 |
__alt_name__ = ["filters", "autoreply"]
|
299 |
|
300 |
__HELP__ = """
|
301 |
+
**Filters**
|
302 |
|
303 |
• /filters: List all active filters saved in the chat.
|
304 |
|
|
|
316 |
Using the you can make a single filter work on 2 filternames without manually adding another one.
|
317 |
|
318 |
• /stop `<filter keyword>`: Stop that filter.
|
319 |
+
|
320 |
+
**Note:**
|
321 |
+
For filters with aliases, if you stop one alias, the filter will stop working on other aliases too.
|
322 |
+
|
323 |
+
**For Example:**
|
324 |
+
If you stop the "filtername1" from above example, the bot will not respond to "filtername2".
|
325 |
|
326 |
**Chat creator only:**
|
327 |
• /removeallfilters: Remove all chat filters at once.
|
Powers/plugins/formatting.py
CHANGED
@@ -135,6 +135,6 @@ __buttons__ = [
|
|
135 |
]
|
136 |
|
137 |
__HELP__ = """
|
138 |
-
|
139 |
|
140 |
Gojo supports a large number of formatting options to make your messages more expressive. Take a look by clicking the buttons below!"""
|
|
|
135 |
]
|
136 |
|
137 |
__HELP__ = """
|
138 |
+
**Formatting**
|
139 |
|
140 |
Gojo supports a large number of formatting options to make your messages more expressive. Take a look by clicking the buttons below!"""
|
Powers/plugins/fun.py
CHANGED
@@ -219,7 +219,7 @@ _DISABLE_CMDS_ = [
|
|
219 |
]
|
220 |
|
221 |
__HELP__ = """
|
222 |
-
|
223 |
|
224 |
• /runs: reply a random string from an array of replies.
|
225 |
• /slap: slap a user, or get slapped if not a reply.
|
|
|
219 |
]
|
220 |
|
221 |
__HELP__ = """
|
222 |
+
**Fun**
|
223 |
|
224 |
• /runs: reply a random string from an array of replies.
|
225 |
• /slap: slap a user, or get slapped if not a reply.
|
Powers/plugins/greetings.py
CHANGED
@@ -483,7 +483,7 @@ __PLUGIN__ = "greetings"
|
|
483 |
__alt_name__ = ["welcome", "goodbye", "cleanservice"]
|
484 |
|
485 |
__HELP__ = """
|
486 |
-
|
487 |
|
488 |
Customize your group's welcome / goodbye messages that can be personalised in multiple ways.
|
489 |
|
|
|
483 |
__alt_name__ = ["welcome", "goodbye", "cleanservice"]
|
484 |
|
485 |
__HELP__ = """
|
486 |
+
**Greetings**
|
487 |
|
488 |
Customize your group's welcome / goodbye messages that can be personalised in multiple ways.
|
489 |
|
Powers/plugins/info.py
CHANGED
@@ -275,7 +275,7 @@ __alt_name__ = [
|
|
275 |
]
|
276 |
|
277 |
__HELP__ = """
|
278 |
-
|
279 |
|
280 |
• /info - To get info about the user
|
281 |
• /chinfo - To get info about the chat
|
|
|
275 |
]
|
276 |
|
277 |
__HELP__ = """
|
278 |
+
**Information**
|
279 |
|
280 |
• /info - To get info about the user
|
281 |
• /chinfo - To get info about the chat
|
Powers/plugins/locks.py
CHANGED
@@ -330,7 +330,7 @@ __PLUGIN__ = "locks"
|
|
330 |
__alt_name__ = ["grouplock", "lock", "grouplocks"]
|
331 |
|
332 |
__HELP__ = """
|
333 |
-
|
334 |
|
335 |
Use this to lock group permissions.
|
336 |
Allows you to lock and unlock permission types in the chat.
|
|
|
330 |
__alt_name__ = ["grouplock", "lock", "grouplocks"]
|
331 |
|
332 |
__HELP__ = """
|
333 |
+
**Locks**
|
334 |
|
335 |
Use this to lock group permissions.
|
336 |
Allows you to lock and unlock permission types in the chat.
|
Powers/plugins/muting.py
CHANGED
@@ -620,7 +620,7 @@ __alt_name__ = [
|
|
620 |
]
|
621 |
|
622 |
__HELP__ = """
|
623 |
-
|
624 |
|
625 |
**Admin only:**
|
626 |
• /mute: Mute the user replied to or mentioned.
|
|
|
620 |
]
|
621 |
|
622 |
__HELP__ = """
|
623 |
+
**Muting**
|
624 |
|
625 |
**Admin only:**
|
626 |
• /mute: Mute the user replied to or mentioned.
|
Powers/plugins/notes.py
CHANGED
@@ -425,7 +425,7 @@ _DISABLE_CMDS_ = ["notes"]
|
|
425 |
__alt_name__ = ["groupnotes", "snips", "notes"]
|
426 |
|
427 |
__HELP__ = """
|
428 |
-
|
429 |
|
430 |
Save a note, get that, even you can delete that note.
|
431 |
This note only avaiable for your whole group!
|
|
|
425 |
__alt_name__ = ["groupnotes", "snips", "notes"]
|
426 |
|
427 |
__HELP__ = """
|
428 |
+
**Notes**
|
429 |
|
430 |
Save a note, get that, even you can delete that note.
|
431 |
This note only avaiable for your whole group!
|
Powers/plugins/pin.py
CHANGED
@@ -232,7 +232,7 @@ __PLUGIN__ = "pins"
|
|
232 |
__alt_name__ = ["pin", "unpin"]
|
233 |
|
234 |
__HELP__ = """
|
235 |
-
|
236 |
|
237 |
Here you find find all help related to groups pins and how to manage them via me.
|
238 |
|
|
|
232 |
__alt_name__ = ["pin", "unpin"]
|
233 |
|
234 |
__HELP__ = """
|
235 |
+
**Pin**
|
236 |
|
237 |
Here you find find all help related to groups pins and how to manage them via me.
|
238 |
|
Powers/plugins/purge.py
CHANGED
@@ -120,7 +120,7 @@ __PLUGIN__ = "purges"
|
|
120 |
__alt_name__ = ["purge", "del", "spurge"]
|
121 |
|
122 |
__HELP__ = """
|
123 |
-
|
124 |
|
125 |
• /purge: Deletes messages upto replied message.
|
126 |
• /spurge: Deletes messages upto replied message without a success message.
|
|
|
120 |
__alt_name__ = ["purge", "del", "spurge"]
|
121 |
|
122 |
__HELP__ = """
|
123 |
+
**Purge**
|
124 |
|
125 |
• /purge: Deletes messages upto replied message.
|
126 |
• /spurge: Deletes messages upto replied message without a success message.
|
Powers/plugins/report.py
CHANGED
@@ -205,7 +205,7 @@ __PLUGIN__ = "reporting"
|
|
205 |
__alt_name__ = ["reports", "report"]
|
206 |
|
207 |
__HELP__ = """
|
208 |
-
|
209 |
|
210 |
• /report `<reason>`: reply to a message to report it to admins.
|
211 |
× @admin: reply to a message to report it to admins.
|
|
|
205 |
__alt_name__ = ["reports", "report"]
|
206 |
|
207 |
__HELP__ = """
|
208 |
+
**Report**
|
209 |
|
210 |
• /report `<reason>`: reply to a message to report it to admins.
|
211 |
× @admin: reply to a message to report it to admins.
|
Powers/plugins/rules.py
CHANGED
@@ -151,7 +151,7 @@ __PLUGIN__ = "rules"
|
|
151 |
__alt_name__ = ["rule"]
|
152 |
|
153 |
__HELP__ = """
|
154 |
-
|
155 |
|
156 |
Set rules for you chat so that members know what to do and what not to do in your group!
|
157 |
|
|
|
151 |
__alt_name__ = ["rule"]
|
152 |
|
153 |
__HELP__ = """
|
154 |
+
**Rules**
|
155 |
|
156 |
Set rules for you chat so that members know what to do and what not to do in your group!
|
157 |
|
Powers/plugins/start.py
CHANGED
@@ -190,7 +190,8 @@ async def help_menu(_, m: Message):
|
|
190 |
)
|
191 |
chat_type = await chattype(m)
|
192 |
if chat_type == "private":
|
193 |
-
|
|
|
194 |
await m.reply_photo(
|
195 |
photo=choice(StartPic),
|
196 |
caption=help_msg,
|
|
|
190 |
)
|
191 |
chat_type = await chattype(m)
|
192 |
if chat_type == "private":
|
193 |
+
if len(help_msg) >= 1026:
|
194 |
+
await m.reply_text(help_msg, parse_mode=enums.ParseMode.MARKDOWN, quote=True)
|
195 |
await m.reply_photo(
|
196 |
photo=choice(StartPic),
|
197 |
caption=help_msg,
|
Powers/plugins/utils.py
CHANGED
@@ -344,7 +344,7 @@ _DISABLE_CMDS_ = ["paste", "wiki", "id", "gifid", "tr", "github", "git"]
|
|
344 |
__alt_name__ = ["util", "misc", "tools"]
|
345 |
|
346 |
__HELP__ = """
|
347 |
-
|
348 |
|
349 |
Some utils provided by bot to make your tasks easy!
|
350 |
|
|
|
344 |
__alt_name__ = ["util", "misc", "tools"]
|
345 |
|
346 |
__HELP__ = """
|
347 |
+
**Utils**
|
348 |
|
349 |
Some utils provided by bot to make your tasks easy!
|
350 |
|
Powers/plugins/warns.py
CHANGED
@@ -365,7 +365,7 @@ __PLUGIN__ = "warnings"
|
|
365 |
__alt_name__ = ["warn", "warning", "warns"]
|
366 |
|
367 |
__HELP__ = """
|
368 |
-
|
369 |
|
370 |
|
371 |
**Admin commands:**
|
|
|
365 |
__alt_name__ = ["warn", "warning", "warns"]
|
366 |
|
367 |
__HELP__ = """
|
368 |
+
**Warns**
|
369 |
|
370 |
|
371 |
**Admin commands:**
|
Powers/utils/caching.py
CHANGED
@@ -38,7 +38,6 @@ async def admin_cache_reload(m: Message or CallbackQuery, status=None) -> List[i
|
|
38 |
(
|
39 |
z.user.id,
|
40 |
(("@" + z.user.username) if z.user.username else z.user.first_name),
|
41 |
-
z.is_anonymous,
|
42 |
)
|
43 |
async for z in m.chat.get_members(
|
44 |
filter=enums.ChatMembersFilter.ADMINISTRATORS
|
|
|
38 |
(
|
39 |
z.user.id,
|
40 |
(("@" + z.user.username) if z.user.username else z.user.first_name),
|
|
|
41 |
)
|
42 |
async for z in m.chat.get_members(
|
43 |
filter=enums.ChatMembersFilter.ADMINISTRATORS
|