Skip to content

Commit

Permalink
Patch fix huntbot essence
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyou-Izumi committed Mar 18, 2024
1 parent 0beb860 commit 5af43c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ process.on("SIGINT", async () => {
if(!global.config.autoResume && !global.config.captchaAPI) process.emit("SIGINT");
global.captchaDetected = true;
await consoleNotify();
if(global.config.captchaAPI == 0) return log("WAITING FOR THE CAPTCHA TO BE RESOLVED TO RESTART...", "i")
if(global.config.captchaAPI == 0) {
await selfbotNotify(message)
return log("WAITING FOR THE CAPTCHA TO BE RESOLVED TO RESTART...", "i")
}

try {
if(message.attachments.first()) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-owo-selfbot",
"version": "2.2.6",
"version": "2.2.7",
"description": "Ain't the best OwO Tool Farm, but worth a try (why not?)",
"type": "module",
"exports": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/SelfbotWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const aHuntbot = async () => {
if(global.config.upgradeTrait) {
const trait = embed.fields[global.config.upgradeTrait].value
const arr = trait.match(/\[(\d+)\/(\d+)\]`/)
const essence = (lastFields[0].name.match(/Animal Essence - `(\d+)`/i) ?? lastFields[1].name.match(/Animal Essence - `(\d+)`/i))?.[1].replaceAll(",", "")
const essence = (lastFields[0].name.match(/Animal Essence - `(\d+)`/i) ?? lastFields[1].name.match(/Animal Essence - `(\d+)`/i))?.[1].replace(/,/g, "")
if(!arr) {
global.config.upgradeTrait = undefined
return log("Trait Max Level Reached, Auto Upgrade Trait has been Disabled", "i")
Expand Down

0 comments on commit 5af43c5

Please sign in to comment.