mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Now /updatebot also restarts the bot instead of just updating
This commit is contained in:
parent
fe89660b11
commit
8b1c912520
@ -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…
x
Reference in New Issue
Block a user