Merge pull request #2 from Technicolor-creamsicle/DEV

Dev
This commit is contained in:
Alex 2020-04-05 08:42:25 -04:00 committed by GitHub
commit 0cb148551e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 7 deletions

View File

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

View File

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

View File

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