-
Notifications
You must be signed in to change notification settings - Fork 5
/
gmute.py
70 lines (67 loc) · 2.46 KB
/
gmute.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from ULTRA.plugins.sql_helper.mute_sql import is_muted, mute, unmute
import asyncio
from ULTRA import CMD_HELP
from ULTRA.utils import admin_cmd
#@command(outgoing=True, pattern=r"^.gmute ?(\d+)?")
@borg.on(admin_cmd(pattern=r"gmute ?(\d+)?"))
async def startgmute(event):
private = False
if event.fwd_from:
return
elif event.is_private:
await event.edit("Putting Dick🍆 💦 In Son mouth!!")
await asyncio.sleep(3)
private = True
reply = await event.get_reply_message()
if event.pattern_match.group(1) is not None:
userid = event.pattern_match.group(1)
elif reply is not None:
userid = reply.sender_id
elif private is True:
userid = event.chat_id
else:
return await event.edit("Please reply to a user or add their into the command to gmute them.")
chat_id = event.chat_id
chat = await event.get_chat()
if is_muted(userid, "gmute"):
return await event.edit("This user is already gmuted")
try:
mute(userid, "gmute")
except Exception as e:
await event.edit("Error occured!\nError is " + str(e))
else:
await event.edit("Son Can't speek now.... Filled His Mouth With Cum😉")
#@command(outgoing=True, pattern=r"^.ungmute ?(\d+)?")
@borg.on(admin_cmd(pattern=r"ungmute ?(\d+)?"))
async def endgmute(event):
private = False
if event.fwd_from:
return
elif event.is_private:
await event.edit("Taking Out Dick from Son mouth....\n\n Today Sex Done😁 ")
await asyncio.sleep(3)
private = True
reply = await event.get_reply_message()
if event.pattern_match.group(1) is not None:
userid = event.pattern_match.group(1)
elif reply is not None:
userid = reply.sender_id
elif private is True:
userid = event.chat_id
else:
return await event.edit("Please reply to a user or add their into the command to ungmute them.")
chat_id = event.chat_id
if not is_muted(userid, "gmute"):
return await event.edit("This user is not gmuted")
try:
unmute(userid, "gmute")
except Exception as e:
await event.edit("Error occured!\nError is " + str(e))
else:
await event.edit("Son Feeling Good..... Now speak🍆🍆")
@command(incoming=True)
async def watcher(event):
if is_muted(event.sender_id, "gmute"):
await event.delete()
CMD_HELP.update({
"gmute":"ye plug-in se aap kisi ke bhi muh me deke chup krwa skte h"})