iamgojoof6eyes commited on
Commit
b1653b8
·
1 Parent(s): cd83bdd

Minor updates

Browse files
Files changed (2) hide show
  1. Powers/utils/chat_type.py +13 -13
  2. Powers/utils/extras.py +3 -2
Powers/utils/chat_type.py CHANGED
@@ -7,29 +7,29 @@ from pyrogram.types import Message
7
 
8
  async def chattype(m: Message):
9
  # To get chat type with message
10
- if m.chat:
11
- if m.chat.type == ChatType.CHANNEL:
12
- ct = "channel"
13
 
14
- if m.chat.type == ChatType.PRIVATE:
15
- ct = "private"
16
 
17
- if m.chat.type == ChatType.GROUP:
18
- ct="group"
19
 
20
- if m.chat.type == ChatType.SUPERGROUP:
21
- ct = "supergroup"
22
 
23
- if m.chat.type in ChatType.BOT:
24
- ct ="bot"
25
 
26
 
27
- return ct
28
 
29
  async def c_type(chat_id):
30
  # To get chat type with chat id
31
 
32
- c = Gojo.get_chat(chat_id)
33
 
34
  if c.type == ChatType.BOT:
35
  ct = "bot"
 
7
 
8
  async def chattype(m: Message):
9
  # To get chat type with message
10
+
11
+ if m.chat.type == ChatType.CHANNEL:
12
+ ct = "channel"
13
 
14
+ if m.chat.type == ChatType.PRIVATE:
15
+ ct = "private"
16
 
17
+ if m.chat.type == ChatType.GROUP:
18
+ ct="group"
19
 
20
+ if m.chat.type == ChatType.SUPERGROUP:
21
+ ct = "supergroup"
22
 
23
+ if m.chat.type in ChatType.BOT:
24
+ ct ="bot"
25
 
26
 
27
+ return ct
28
 
29
  async def c_type(chat_id):
30
  # To get chat type with chat id
31
 
32
+ c = await Gojo.get_chat(chat_id)
33
 
34
  if c.type == ChatType.BOT:
35
  ct = "bot"
Powers/utils/extras.py CHANGED
@@ -29,7 +29,7 @@ RUN_STRINGS = (
29
 
30
  SLAP_GOJO_TEMPLATES = (
31
  "Slap me one more time and I'll mute you.",
32
- "Don't again dare to slap me asshole.",
33
  )
34
 
35
  SLAP_TEMPLATES = (
@@ -506,6 +506,7 @@ REACTIONS = (
506
  "(ノ≧∀≦)ノ ‥…━━━★",
507
  "╰( ͡° ͜ʖ ͡° )つ──☆*:・゚",
508
  "(∩ᄑ_ᄑ)⊃━☆゚*・。*・:≡( ε:)",
 
509
  )
510
 
511
  TOSS = (
@@ -532,7 +533,7 @@ INSULT_STRINGS = [
532
  "`I would ask you how old you are but I know you can't count that high.`",
533
  "`As an outsider, what do you think of the human race?`",
534
  "`Ordinarily people live and learn. You just live.`",
535
- "`Keep talking, someday you'll say something intelligent!.......(I doubt it though)`",
536
  "`Everyone has the right to be stupid but you are abusing the privilege.`",
537
  "`I'm sorry I hurt your feelings when I called you stupid. I thought you already knew that.`",
538
  "`You should try tasting cyanide.`",
 
29
 
30
  SLAP_GOJO_TEMPLATES = (
31
  "Slap me one more time and I'll mute you.",
32
+ "Don't again dare to slap me ||A-S-S-H-0-L-E||.",
33
  )
34
 
35
  SLAP_TEMPLATES = (
 
506
  "(ノ≧∀≦)ノ ‥…━━━★",
507
  "╰( ͡° ͜ʖ ͡° )つ──☆*:・゚",
508
  "(∩ᄑ_ᄑ)⊃━☆゚*・。*・:≡( ε:)",
509
+ "OwO",
510
  )
511
 
512
  TOSS = (
 
533
  "`I would ask you how old you are but I know you can't count that high.`",
534
  "`As an outsider, what do you think of the human race?`",
535
  "`Ordinarily people live and learn. You just live.`",
536
+ "`Keep talking, someday you'll say something intelligent!`.......||I doubt it though||",
537
  "`Everyone has the right to be stupid but you are abusing the privilege.`",
538
  "`I'm sorry I hurt your feelings when I called you stupid. I thought you already knew that.`",
539
  "`You should try tasting cyanide.`",