afkmaksmf
This commit is contained in:
parent
30a4aff12e
commit
b0efcd69b7
|
@ -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
|
||||||
|
|
|
@ -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.");
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue