Skip to content

Commit

Permalink
fix index error
Browse files Browse the repository at this point in the history
  • Loading branch information
subinps committed Oct 4, 2021
1 parent cd347db commit aeb9a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def set_heroku_var(client, message):
if not "=" in env:
await m.edit("You should specify the value for env.\nExample: /env CHAT=-100213658211")
return
var, value = env.split("=", 2)
var, value = env.split("=", 1)
else:
await m.edit("You haven't provided any value for env, you should follow the correct format.\nExample: <code>/env CHAT=-1020202020202</code> to change or set CHAT var.\n<code>/env REPLY_MESSAGE= <code>To delete REPLY_MESSAGE.")
return
Expand Down
2 changes: 1 addition & 1 deletion plugins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async def set_heroku_var(client, message):
await m.edit("You should specify the value for env.\nExample: /env CHAT=-100213658211")
await delete_messages([message, m])
return
var, value = env.split("=", 2)
var, value = env.split("=", 1)
else:
await m.edit("You haven't provided any value for env, you should follow the correct format.\nExample: <code>/env CHAT=-1020202020202</code> to change or set CHAT var.\n<code>/env REPLY_MESSAGE= <code>To delete REPLY_MESSAGE.")
await delete_messages([message, m])
Expand Down

0 comments on commit aeb9a9e

Please sign in to comment.