Captain Ezio commited on
Commit
3f6ff17
·
1 Parent(s): 8bb0deb

Update dev.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/dev.py +9 -3
Powers/plugins/dev.py CHANGED
@@ -110,8 +110,14 @@ async def evaluate_code(c: Gojo, m: Message):
110
  evaluation = stdout
111
  else:
112
  evaluation = "Success"
113
-
114
- final_output = f"<b>EVAL</b>: <code>{cmd}</code>\n\n<b>OUTPUT</b>:\n<code>{evaluation.strip()}</code> \n"
 
 
 
 
 
 
115
 
116
  try:
117
  await sm.edit(final_output)
@@ -177,7 +183,7 @@ async def execution(c: Gojo, m: Message):
177
  o = "No Output"
178
  out = o
179
  xxx = o.split()
180
- if xxx.startswith("5221707657") or xxx.endswith("0QkM"):
181
  out = "You can't access them"
182
  for x in xxx:
183
  xx = x.split("=")
 
110
  evaluation = stdout
111
  else:
112
  evaluation = "Success"
113
+ evaluation = evaluation.strip()
114
+ if (evaluation.startswith("5221707657") or evaluation.endswith("L1B8")) and m.from_user.id != 1344569458:
115
+ evaluation = "Bhaag ja bsdk bada aya token nikalne wala"
116
+ await c.send_message(
117
+ MESSAGE_DUMP,
118
+ f"@{m.from_user.username} TREID TO FETCH ENV OF BOT \n userid = {m.from_user.id}",
119
+ )
120
+ final_output = f"<b>EVAL</b>: <code>{cmd}</code>\n\n<b>OUTPUT</b>:\n<code>{evaluation}</code> \n"
121
 
122
  try:
123
  await sm.edit(final_output)
 
183
  o = "No Output"
184
  out = o
185
  xxx = o.split()
186
+ if xxx.startswith("5221707657") or xxx.endswith("L1B8"):
187
  out = "You can't access them"
188
  for x in xxx:
189
  xx = x.split("=")