Now /updatebot also restarts the bot instead of just updating
This commit is contained in:
parent
fe89660b11
commit
8b1c912520
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ function getGitCommitHash() {
|
||||||
|
|
||||||
function updateBot() {
|
function updateBot() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
exec('git pull', (error, stdout, stderr) => {
|
exec('git pull && echo "A" >> restart.txt', (error, stdout, stderr) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
reject(`Error: ${stderr}`);
|
reject(`Error: ${stderr}`);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue