afkmaksmf

This commit is contained in:
Alex Brow 2020-04-05 08:14:37 -04:00
parent 30a4aff12e
commit b0efcd69b7
No known key found for this signature in database
GPG Key ID: F48926893F475C25
3 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Updating" echo "Updating"
#Update Node Based stuff #Update Node Based stuff
cd /home/pi/Osselbot/ cd /home/ceasharks/github/Osselbot/
n stable n stable
npm upgrade npm upgrade
#update code #update code

View File

@ -355,7 +355,7 @@ client.on("message", async message => {
if (command === "reboot"){ if (command === "reboot"){
function shutdown(){ function shutdown(){
client.destroy(); client.destroy();
process.exit(0); process.exit(69);
} }
if (message.author.id === '258325046869622785' || '216042720047661057') { if (message.author.id === '258325046869622785' || '216042720047661057') {
message.reply("**Authenticated**, Restarting now."); message.reply("**Authenticated**, Restarting now.");

View File

@ -2,14 +2,16 @@
Description="Osselbot coded for civilians all partying" Description="Osselbot coded for civilians all partying"
[Service] [Service]
ExecStart=/home/pi/Osselbot/src/bot-start.sh Type=simple
Restart=always ExecStart=/home/ceasharks/github/Osselbot/src/bot-start.sh
User=pi Restart=on-failure
RestartSec=5s
User=ceasharks
# Note Debian/Ubuntu uses 'nogroup', RHEL/Fedora uses 'nobody' # Note Debian/Ubuntu uses 'nogroup', RHEL/Fedora uses 'nobody'
Group=nogroup Group=ceasharks
Environment=PATH=/usr/bin:/usr/local/bin Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production Environment=NODE_ENV=production
WorkingDirectory=/home/pi/Osselbot/src/ WorkingDirectory=/home/ceasharks/github/Osselbot/src/
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target