Spaces:
Running
Running
Captain Ezio
commited on
Commit
·
f2a80e1
1
Parent(s):
917eba4
Update flood.py
Browse files- Powers/plugins/flood.py +2 -2
Powers/plugins/flood.py
CHANGED
@@ -89,7 +89,7 @@ limit_kb = InlineKeyboardMarkup(
|
|
89 |
]
|
90 |
)
|
91 |
|
92 |
-
@Gojo.on_message(command(['floodaction','actionflood']))
|
93 |
async def flood_action(c: Gojo, m: Message):
|
94 |
if m.chat.type == CT.PRIVATE:
|
95 |
await m.reply_text("Use this command in group")
|
@@ -245,4 +245,4 @@ async def flood_watcher(c: Gojo, m: Message):
|
|
245 |
z = {c_id : set()}
|
246 |
dic.update(z)
|
247 |
dic[c_id].add(u_id)
|
248 |
-
# to be continued
|
|
|
89 |
]
|
90 |
)
|
91 |
|
92 |
+
@Gojo.on_message(command(['floodaction','actionflood']) & admin_filter)
|
93 |
async def flood_action(c: Gojo, m: Message):
|
94 |
if m.chat.type == CT.PRIVATE:
|
95 |
await m.reply_text("Use this command in group")
|
|
|
245 |
z = {c_id : set()}
|
246 |
dic.update(z)
|
247 |
dic[c_id].add(u_id)
|
248 |
+
# to be continued
|