Updated index.js
This commit is contained in:
parent
32d210ad09
commit
998c7b0f46
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
const Discord = require('discord.js');
|
const Discord = require('discord.js');
|
||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
|
@ -81,7 +80,7 @@ async function updateBotFromGitHub() {
|
||||||
console.log('Checking for updates from GitHub...');
|
console.log('Checking for updates from GitHub...');
|
||||||
|
|
||||||
if (!await git.checkIsRepo()) {
|
if (!await git.checkIsRepo()) {
|
||||||
await git.init().addRemote('origin', 'https://git.shadowhosting.xyz/ShadowVR/AI_botter.git').fetch();
|
await git.init().addRemote('origin', 'https://git.shadowhosting.xyz/shadowvr/AI_botter.git').fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
await git.pull('origin', 'main');
|
await git.pull('origin', 'main');
|
||||||
|
|
Loading…
Reference in a new issue