Spaces:
Paused
Paused
Hêllẞøy
commited on
Commit
·
b2e9960
1
Parent(s):
9078d2c
Update start.py
Browse files- Powers/plugins/start.py +6 -13
Powers/plugins/start.py
CHANGED
|
@@ -145,12 +145,10 @@ Join my [News Channel](http://t.me/gojo_updates) to get information on all the l
|
|
| 145 |
|
| 146 |
@Gojo.on_callback_query(filters.regex("^commands$"))
|
| 147 |
async def commands_menu(_, q: CallbackQuery):
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
],
|
| 153 |
-
)
|
| 154 |
try:
|
| 155 |
cpt = f"""
|
| 156 |
Hey **[{q.from_user.first_name}](http://t.me/{q.from_user.username})**! My name is Gojo✨.
|
|
@@ -220,12 +218,7 @@ async def help_menu(_, m: Message):
|
|
| 220 |
else:
|
| 221 |
|
| 222 |
if m.chat.type == ChatType.PRIVATE:
|
| 223 |
-
keyboard = ikb(
|
| 224 |
-
[
|
| 225 |
-
await gen_cmds_kb(m),
|
| 226 |
-
[("« Back", "start_back")],
|
| 227 |
-
],
|
| 228 |
-
)
|
| 229 |
msg = f"""
|
| 230 |
Hey **[{m.from_user.first_name}](http://t.me/{m.from_user.username})**!My name is Gojo✨.
|
| 231 |
I'm here to help you manage your groups!
|
|
@@ -247,7 +240,7 @@ Commands available:
|
|
| 247 |
return
|
| 248 |
|
| 249 |
|
| 250 |
-
@Gojo.on_callback_query(filters.regex("^
|
| 251 |
async def get_module_info(_, q: CallbackQuery):
|
| 252 |
module = q.data.split(".", 1)[1]
|
| 253 |
|
|
|
|
| 145 |
|
| 146 |
@Gojo.on_callback_query(filters.regex("^commands$"))
|
| 147 |
async def commands_menu(_, q: CallbackQuery):
|
| 148 |
+
cmds = sorted(list(HELP_COMMANDS.keys()))
|
| 149 |
+
kb = [cmd.lower() for cmd in cmds]
|
| 150 |
+
ou = [kb[i : i + 3] for i in range(0, len(kb), 3)]
|
| 151 |
+
keyboard = ikb(ou, True)
|
|
|
|
|
|
|
| 152 |
try:
|
| 153 |
cpt = f"""
|
| 154 |
Hey **[{q.from_user.first_name}](http://t.me/{q.from_user.username})**! My name is Gojo✨.
|
|
|
|
| 218 |
else:
|
| 219 |
|
| 220 |
if m.chat.type == ChatType.PRIVATE:
|
| 221 |
+
keyboard = ikb(ou, True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
msg = f"""
|
| 223 |
Hey **[{m.from_user.first_name}](http://t.me/{m.from_user.username})**!My name is Gojo✨.
|
| 224 |
I'm here to help you manage your groups!
|
|
|
|
| 240 |
return
|
| 241 |
|
| 242 |
|
| 243 |
+
@Gojo.on_callback_query(filters.regex("^plugins."))
|
| 244 |
async def get_module_info(_, q: CallbackQuery):
|
| 245 |
module = q.data.split(".", 1)[1]
|
| 246 |
|