diff --git a/bot.js b/bot.js index a3bb019..fba72b6 100644 --- a/bot.js +++ b/bot.js @@ -11,12 +11,9 @@ async function updateBotFromGitHub() { if (!await git.checkIsRepo()) { await git.init().addRemote('origin', 'https://git.shadowhosting.xyz/shadowvr/AI_botter.git').fetch(); } else { - await git.fetch('origin', 'main'); + await git.pull('origin', 'main'); } - // Force update by resetting to the latest commit on the remote main branch - await git.reset(['--hard', 'origin/main']); - console.log('Bot updated from GitHub.'); } catch (error) {