Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
2c06622
1
Parent(s):
180f53f
Update admin.py
Browse files- Powers/plugins/admin.py +0 -4
Powers/plugins/admin.py
CHANGED
|
@@ -215,8 +215,6 @@ async def fullpromote_usr(c: Gojo, m: Message):
|
|
| 215 |
title = m.text.split()[1]
|
| 216 |
if title and len(title) > 16:
|
| 217 |
title = title[0:16] # trim title to 16 characters
|
| 218 |
-
elif not title:
|
| 219 |
-
title = "Gojo"
|
| 220 |
|
| 221 |
try:
|
| 222 |
await c.set_administrator_title(m.chat.id, user_id, title)
|
|
@@ -329,8 +327,6 @@ async def promote_usr(c: Gojo, m: Message):
|
|
| 329 |
title = m.text.split()[1]
|
| 330 |
if title and len(title) > 16:
|
| 331 |
title = title[0:16] # trim title to 16 characters
|
| 332 |
-
if not title:
|
| 333 |
-
title = "Itadori"
|
| 334 |
|
| 335 |
try:
|
| 336 |
await c.set_administrator_title(m.chat.id, user_id, title)
|
|
|
|
| 215 |
title = m.text.split()[1]
|
| 216 |
if title and len(title) > 16:
|
| 217 |
title = title[0:16] # trim title to 16 characters
|
|
|
|
|
|
|
| 218 |
|
| 219 |
try:
|
| 220 |
await c.set_administrator_title(m.chat.id, user_id, title)
|
|
|
|
| 327 |
title = m.text.split()[1]
|
| 328 |
if title and len(title) > 16:
|
| 329 |
title = title[0:16] # trim title to 16 characters
|
|
|
|
|
|
|
| 330 |
|
| 331 |
try:
|
| 332 |
await c.set_administrator_title(m.chat.id, user_id, title)
|