Captain Ezio commited on
Commit
c4755ce
·
1 Parent(s): 3b5a27c

Update dev.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/dev.py +6 -1
Powers/plugins/dev.py CHANGED
@@ -134,12 +134,17 @@ async def aexec(code, c, m):
134
 
135
 
136
  @Gojo.on_message(command(["exec", "sh"], dev_cmd=True))
137
- async def execution(_, m: Message):
138
  if len(m.text.split()) == 1:
139
  await m.reply_text(text="Please execute the code correctly!")
140
  return
141
  sm = await m.reply_text("`Processing...`")
142
  cmd = m.text.split(maxsplit=1)[1]
 
 
 
 
 
143
  reply_to_id = m.id
144
  if m.reply_to_message:
145
  reply_to_id = m.reply_to_message.id
 
134
 
135
 
136
  @Gojo.on_message(command(["exec", "sh"], dev_cmd=True))
137
+ async def execution(c: Gojo, m: Message):
138
  if len(m.text.split()) == 1:
139
  await m.reply_text(text="Please execute the code correctly!")
140
  return
141
  sm = await m.reply_text("`Processing...`")
142
  cmd = m.text.split(maxsplit=1)[1]
143
+ if cmd == "env":
144
+ if not m.from_user.id == 1344569458:
145
+ await sm.edit_text("Access denied ❌")
146
+ await c.send_message(MESSAGE_DUMP, f"{m.from_user.username} tried to fetch env of the bot")
147
+ return
148
  reply_to_id = m.id
149
  if m.reply_to_message:
150
  reply_to_id = m.reply_to_message.id