Updated index.js
This commit is contained in:
parent
a09a393001
commit
32d210ad09
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
@ -1,5 +1,4 @@
|
||||||
|
|
||||||
|
|
||||||
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');
|
||||||
|
@ -82,7 +81,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/shadow/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