Captain Ezio commited on
Commit
7231326
·
1 Parent(s): b90e6fb

added few cmds

Browse files
Files changed (1) hide show
  1. Powers/plugins/fun.py +17 -2
Powers/plugins/fun.py CHANGED
@@ -10,7 +10,7 @@ from Powers.bot_class import Gojo
10
  from Powers.utils import fun_strings
11
  from Powers.utils.custom_filters import command
12
  from Powers.utils.extract_user import extract_user
13
-
14
 
15
 
16
  @Gojo.on_message(command("shout"))
@@ -110,7 +110,20 @@ async def insult(c : Gojo , m: Message):
110
  await reply_text(Insult_omp)
111
  LOGGER.info(f"{m.from_user.id} insulted {user_first_name} in {m.chat.id}")
112
 
113
-
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
  @Gojo.on_message(command("shrug"))
116
  async def fun_shrug(_, m: Message):
@@ -202,6 +215,8 @@ __HELP__ = """× /runs: reply a random string from an array of replies.
202
  × /shrug : get shrug XD.
203
  × /decide : Randomly answers yes/no/maybe
204
  × /toss : Tosses A coin
 
 
205
  × /bluetext : check urself :V
206
  × /roll : Roll a dice.
207
  × /react : Random Reaction
 
10
  from Powers.utils import fun_strings
11
  from Powers.utils.custom_filters import command
12
  from Powers.utils.extract_user import extract_user
13
+ from Powers.utils.fun_strings import YESWNO as YES and NOWYES as NO
14
 
15
 
16
  @Gojo.on_message(command("shout"))
 
110
  await reply_text(Insult_omp)
111
  LOGGER.info(f"{m.from_user.id} insulted {user_first_name} in {m.chat.id}")
112
 
113
+ @Gojo.on_message(command("yes"))
114
+ async def yesw(c : Gojo , m: MEssage):
115
+ reply_text = m.reply_to_message.reply_text if m.reply_to_message else m.reply_text
116
+ await reply_text(YES)
117
+ LOGGER.info(f"{m.from_user.id} said YES or may be NO in {m.chat.id}")
118
+ return
119
+
120
+
121
+ @Gojo.on_message(command("no"))
122
+ async def now(c : Gojo , m: MEssage):
123
+ reply_text = m.reply_to_message.reply_text if m.reply_to_message else m.reply_text
124
+ await reply_text(NO)
125
+ LOGGER.info(f"{m.from_user.id} said NO or may be YES in {m.chat.id}")
126
+ return
127
 
128
  @Gojo.on_message(command("shrug"))
129
  async def fun_shrug(_, m: Message):
 
215
  × /shrug : get shrug XD.
216
  × /decide : Randomly answers yes/no/maybe
217
  × /toss : Tosses A coin
218
+ × /yes : check urself :V
219
+ × /no : check urself :V
220
  × /bluetext : check urself :V
221
  × /roll : Roll a dice.
222
  × /react : Random Reaction