Hello world,
I am new here as well as new to python. I have a script that sends webhook messages to Discord. If I go to files, click my script, and select run, the script runs successfully;
However even if I have the script in a for loop, after sending messages to Discord, the script will crash. The script always crashes. I've decided to upgrade my account and try the "task always on feature" hoping this will reboot the script when it crashes, as I understand that's a feature.. I simply type the command: python3 /home/user/script.py
"Always on task" takes a while to start up which I've read is normal. Than the task is finally in a 'running state'. However unlike running the task from the files tab, the script never sends messages to Discord. As if the script is not running at all; but Always on task says it is running. If I check the log file the only thing present is 1 line saying: "task preparing to start".
the script is supposed to be printing messages to console as well as sending webhooks to Discord and fails to do either of these things.
Am I not using "Always on task" properly? Do I first run "Always on task" and then run my file from files tab at the same time? Also if I go to dashboard, there is no console running unless I run from files tab.