remoteDiscordShell
remoteDiscordShell copied to clipboard
Executing python scripts not working
I am trying to execute a python script via this tool. I am in the directory of the script's location but when I try and execute the script with 'python3 app.py -myarg' I get the following message in discord: Error: Command not found But when using the same command via ssh everything is working fine. Any ideas on how to fix this issue? Cheers
I am trying to execute a python script via this tool. I am in the directory of the script's location but when I try and execute the script with 'python3 app.py -myarg' I get the following message in discord: Error: Command not found But when using the same command via ssh everything is working fine. Any ideas on how to fix this issue? Cheers
I have tried to call a script like yours and it worked. The problem might come from the script itself (might it be using some commands that makes pyDiscordShell throwing the error message?).
What you could do is creating simple script to be called from discord (i.e. one with only a print instruction). Call it from discord and check whether it throws an error message.
Also, you can edit the error message line and change it to error = f"Error: Command not found. {e}"
, this will show the exception message, providing more information about the issue.