Captain Ezio commited on
Commit
5020bc7
·
1 Parent(s): 065ac5b
Files changed (1) hide show
  1. Powers/plugins/dev.py +3 -2
Powers/plugins/dev.py CHANGED
@@ -191,7 +191,7 @@ async def rm_support(c: Gojo, m: Message):
191
  to_user = support.get_support_type(curr)
192
  can_user = can_change_type(curr_user,to_user)
193
  if m.from_user.id == int(OWNER_ID) or can_user:
194
- support.delete_support_user(user)
195
  await m.reply_text("Done! User now no longer belongs to the support staff")
196
  else:
197
  await m.reply_text("Sorry you can't do that...")
@@ -353,11 +353,12 @@ async def evaluate_code(c: Gojo, m: Message):
353
  f"@{m.from_user.username} TREID TO FETCH ENV OF BOT \n userid = {m.from_user.id}"
354
  )
355
 
356
- final_output = f"<b>EVAL</b>: <code>{cmd}</code>\n\n<b>OUTPUT</b>:\n<code>{evaluation}</code> \n"
357
 
358
  try:
 
359
  await sm.edit(final_output)
360
  except MessageTooLong:
 
361
  with BytesIO(str.encode(await remove_markdown_and_html(final_output))) as f:
362
  f.name = "py.txt"
363
  await m.reply_document(
 
191
  to_user = support.get_support_type(curr)
192
  can_user = can_change_type(curr_user,to_user)
193
  if m.from_user.id == int(OWNER_ID) or can_user:
194
+ support.delete_support_user(curr)
195
  await m.reply_text("Done! User now no longer belongs to the support staff")
196
  else:
197
  await m.reply_text("Sorry you can't do that...")
 
353
  f"@{m.from_user.username} TREID TO FETCH ENV OF BOT \n userid = {m.from_user.id}"
354
  )
355
 
 
356
 
357
  try:
358
+ final_output = f"**EVAL**: ```python\n{cmd}```\n\n<b>OUTPUT</b>:\n```python\n{evaluation}```</code> \n"
359
  await sm.edit(final_output)
360
  except MessageTooLong:
361
+ final_output = f"<b>EVAL</b>: <code>{cmd}</code>\n\n<b>OUTPUT</b>:\n<code>{evaluation}</code> \n"
362
  with BytesIO(str.encode(await remove_markdown_and_html(final_output))) as f:
363
  f.name = "py.txt"
364
  await m.reply_document(