sethcottle / fenrirbot Goto Github PK
View Code? Open in Web Editor NEWSimple Discord bot for Fenrir.
Home Page: https://fenrirguild.com
License: MIT License
Simple Discord bot for Fenrir.
Home Page: https://fenrirguild.com
License: MIT License
The script is automatically ending itself every 2 to 3 hours, taking the bot offline. I haven't explored the issue at all, I immediately created a Cron job using:
* 1 * * * nohup python3 -u ~/fenrirbot/bot.py &
What's this Cron job do?
This executes nohup python3 -u ~/fenrirbot/bot.py &
every hour to prevent the bot from going offline. This is my temporary work around until I take the time to look into the issue because programming, yeeyyyy.
Why are you including nohup
?
I'm using Termius to remotely access my Raspberry Pi, this will ignore the hangup signal so the script doesn't terminate once I close my SSH connection.
What's the &
for?
Runs the script in the background so you can still access the terminal.
Kill the task
Since I'm running the task as a background task, you can use $ ps aux | grep python3
to find the PID and then run $ sudo kill -9 TASK_PID
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.