Skip to content

Commit

Permalink
Fixed huntbot essence collector
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyou-Izumi committed Sep 5, 2023
1 parent 88236d3 commit da4c907
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.2",
"version": "2.2.3",
"description": "Ain't the best OwO Tool Farm, but worth a try (why not?)",
"type": "module",
"engines": {
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]
const essence = (lastFields[0].name.match(/Animal Essence - `(\d+)`/i) ?? lastFields[1].name.match(/Animal Essence - `(\d+)`/i))?.[1].replaceAll(",", "")
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 da4c907

Please sign in to comment.