MehulKhanna / PokeGrinder

An Auto-Grinding Bot for PokéMeow with Slash Commands! With a free Captcha Solver!
MIT License
12 stars 7 forks source link

Error when starting the bot #60

Closed jojogamerCt closed 3 months ago

jojogamerCt commented 4 months ago

hello, basically when i start the bot i get the error "cannot import name 'SlashCommand' from 'discord'" and i have installed all the packages, can you help me please?

lufy20106 commented 4 months ago

pip install git+https://github.com/dolfies/discord.py-self

jojogamerCt commented 4 months ago

pip install git+https://github.com/dolfies/discord.py-self

it works and doesnt show the error anymore, but for some reason when i type "py main.py" like 3-4 seconds passes and it doesnt do anything Screenshot 2024-03-14 144736

lufy20106 commented 4 months ago

hm wired

MehulKhanna commented 4 months ago

pip install git+https://github.com/dolfies/discord.py-self

it works and doesnt show the error anymore, but for some reason when i type "py main.py" like 3-4 seconds passes and it doesnt do anything Screenshot 2024-03-14 144736

python main.py?

lufy20106 commented 4 months ago

@MehulKhanna this?

lufy20106 commented 4 months ago

idk try it

jojogamerCt commented 4 months ago

idk try it

nah it doesnt work, thats strange tbh

lufy20106 commented 4 months ago

it the same lel

jojogamerCt commented 4 months ago

lol ik

lufy20106 commented 4 months ago

hmm letme see config

jojogamerCt commented 4 months ago

okay

jojogamerCt commented 4 months ago
{
  "CaptchaRetries": 3,
  "ClearConsole": true,
  "CaptchaSolver": true,
  "SuspicionAvoidance": 250,
  "Cooldowns": {
    "RetryCooldown": 1,
    "HuntingCooldown": 8.4,
    "FishingCooldown": 22.4
  },
  "": {
    "HuntingChannel": 0,
    "FishingChannel": 0,
    "ExceptionBalls": {
      "Crystal Onix": "mb"
    },
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Shiny Event": "mb",
      "Shiny Full-odds": "prb"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "gb",
      "Rare": "ub",
      "Super Rare": "ub",
      "Legendary": "db",
      "Shiny": "mb",
      "Golden": "mb"
    },
    "AutoBuy": {
      "pb": 100,
      "gb": 50,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  },
  "": {
    "HuntingChannel": 0,
    "FishingChannel": 0,
    "ExceptionBalls": {
      "Crystal Onix": "mb"
    },
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Shiny Event": "mb",
      "Shiny Full-odds": "prb"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "gb",
      "Rare": "ub",
      "Super Rare": "ub",
      "Legendary": "db",
      "Shiny": "mb",
      "Golden": "mb"
    },
    "AutoBuy": {
      "pb": 50,
      "gb": 25,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  }
}
lufy20106 commented 4 months ago

where u put da token

jojogamerCt commented 4 months ago

the github project said i have to increase cooldown for hunting, fishing and retry maybe thats that?

jojogamerCt commented 4 months ago

where u put da token

wait i didnt see anything where to put the token

lufy20106 commented 4 months ago

nah

jojogamerCt commented 4 months ago

i though i had to put it inside the bot

lufy20106 commented 4 months ago

  "CaptchaRetries": 3,
  "ClearConsole": true,
  "CaptchaSolver": true,
  "SuspicionAvoidance": 250,
  "Cooldowns": {
    "RetryCooldown": 1,
    "HuntingCooldown": 8.4,
    "FishingCooldown": 22.4
  },
  "token1": {
    "HuntingChannel": 0,
    "FishingChannel": 0,
    "ExceptionBalls": {
      "Crystal Onix": "mb"
    },
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Shiny Event": "mb",
      "Shiny Full-odds": "prb"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "gb",
      "Rare": "ub",
      "Super Rare": "ub",
      "Legendary": "db",
      "Shiny": "mb",
      "Golden": "mb"
    },
    "AutoBuy": {
      "pb": 100,
      "gb": 50,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  },
  "token2": {
    "HuntingChannel": 0,
    "FishingChannel": 0,
    "ExceptionBalls": {
      "Crystal Onix": "mb"
    },
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Shiny Event": "mb",
      "Shiny Full-odds": "prb"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "gb",
      "Rare": "ub",
      "Super Rare": "ub",
      "Legendary": "db",
      "Shiny": "mb",
      "Golden": "mb"
    },
    "AutoBuy": {
      "pb": 50,
      "gb": 25,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  }
}
jojogamerCt commented 4 months ago

oh lemme try

lufy20106 commented 4 months ago

good now?

jojogamerCt commented 4 months ago

it now shows this error

File "C:\Users\giuse\Desktop\PokeGrinder-master\PokeGrinder-master\main.py", line 18, in <module>
    config = json.load(open("config.json"))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\giuse\AppData\Local\Programs\Python\Python312\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "C:\Users\giuse\AppData\Local\Programs\Python\Python312\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\giuse\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 19 (char 18)
jojogamerCt commented 4 months ago

its different this time

lufy20106 commented 4 months ago

send me config again (censor da token)

jojogamerCt commented 4 months ago
  "CaptchaRetries": 3,
  "ClearConsole": true,
  "CaptchaSolver": true,
  "SuspicionAvoidance": 250,
  "Cooldowns": {
    "RetryCooldown": 1,
    "HuntingCooldown": 8.4,
    "FishingCooldown": 22.4
  },
  "": {
    "HuntingChannel": 1217824925365043210,
    "FishingChannel": 1217824925365043210,
    "ExceptionBalls": {
      "Crystal Onix": "mb"
    },
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Shiny Event": "mb",
      "Shiny Full-odds": "prb"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "gb",
      "Rare": "ub",
      "Super Rare": "ub",
      "Legendary": "db",
      "Shiny": "mb",
      "Golden": "mb"
    },
    "AutoBuy": {
      "pb": 100,
      "gb": 50,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  },
  "token2": {
    "HuntingChannel": 0,
    "FishingChannel": 0,
    "ExceptionBalls": {
      "Crystal Onix": "mb"
    },
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Shiny Event": "mb",
      "Shiny Full-odds": "prb"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "gb",
      "Rare": "ub",
      "Super Rare": "ub",
      "Legendary": "db",
      "Shiny": "mb",
      "Golden": "mb"
    },
    "AutoBuy": {
      "pb": 50,
      "gb": 25,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  }
}
jojogamerCt commented 4 months ago

the error only appears when there's the token in that space

jojogamerCt commented 4 months ago

i even tried without the channel ids

lufy20106 commented 4 months ago

if u only use 1 token just ignore down and leave it blank

jojogamerCt commented 4 months ago

your bot works right? did you setup anything else other than the token?

lufy20106 commented 4 months ago

yea i change something but just token work fine

jojogamerCt commented 4 months ago

lemme try something hold on

jojogamerCt commented 4 months ago

nah doesnt work, can you please send me your configs? ofc delete your token

lufy20106 commented 4 months ago
{
  "CaptchaRetries": 5,
  "ClearConsole": false,
  "CaptchaSolver": true,
  "LoggingInterval": 10,
  "SuspicionAvoidance": 630,
  "Cooldowns": {
    "RetryCooldown": 3,
    "HuntingCooldown": 8.8,
    "FishingCooldown": 22.8
  },
    "MTIxMDU2NDA3NTQxNTY2Njc0MXDh_3o.3OrcGUBxtsEjZeZcghvWRnx6Hu-OJuV3RjMD40": {
    "HuntingChannel": 1199642153333309470,
    "FishingChannel": 0,
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "ub",
      "Shiny": "ub",
      "Shiny Event": "ub",
      "Shiny Full-odds": "ub"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "gb",
      "Rare": "ub",
      "Super Rare": "ub",
      "Legendary": "ub",
      "Shiny": "ub",
      "Golden": "ub"
    },
    "AutoBuy": {
      "pb": 20,
      "gb": 10,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  },
  "MTIxMDU3NzgyNjM3NDQ4Mzk5OQ.GE_JM2.OY6OwadMti-IOioNGDDqBZpfLv7hUwfylLNI": {
    "HuntingChannel": 1199641008573517844,
    "FishingChannel": 0,
    "Balls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Shiny Event": "mb",
      "Shiny Full-odds": "mb"
    },
    "FishBalls": {
      "Common": "pb",
      "Uncommon": "pb",
      "Rare": "gb",
      "Super Rare": "ub",
      "Legendary": "mb",
      "Shiny": "mb",
      "Golden": "mb"
    },
    "AutoBuy": {
      "pb": 20,
      "gb": 10,
      "ub": 5,
      "mb": 1
    },
    "AutoReleaseDuplicates": 100
  }
}

dont worries this is old config and fake token

jojogamerCt commented 4 months ago

tysm

jojogamerCt commented 4 months ago

ok man i got an idea, let me download your folder with your bot on it, ofc delete the token as always

jojogamerCt commented 4 months ago

it doesnt work so getting ur folder may be an idea actually

jojogamerCt commented 4 months ago

use mediafire or mega

lufy20106 commented 4 months ago

i dont use on folder anymore im using colab

jojogamerCt commented 4 months ago

oh how do you use colab? i tried before but i didnt see the terminal for the bot, do we actually need just to run the cell with the token on it?

lufy20106 commented 4 months ago

u need to run the set command

jojogamerCt commented 4 months ago

alr lemme try

lufy20106 commented 4 months ago

alr lemme try

also u can use mine colab version here after edit configs u can save it to drive for next time

jojogamerCt commented 4 months ago

ty