vic1707 / AutoPlay-PokeMeow-Discord

A bot that plays PokeMeow for you
15 stars 19 forks source link

"Discord sending bar" took too much time to apear #40

Open gegeeeee opened 2 years ago

gegeeeee commented 2 years ago

Describe the bug "Discord sending bar" took too much time to apear after login and get to the channel, nothing happened and the error code in screenshot showed up.

i tried both using firefox and Chrome.

my input

python bot.py -U username -M email -P password -C "channel" Thanks in advance :)

Screenshots image

Desktop (please complete the following information):

vic1707 commented 2 years ago

Related to #38

vic1707 commented 2 years ago

It's a discord update that broke the selenium parsing

gegeeeee commented 2 years ago

ahh okay, thank you.

should i wait in issue #38 and close this issue?

gegeeeee commented 2 years ago

hi, i found the xpath for the discord message box but now the bot only loop ;checklist. do you have any idea about this? thanks

vic1707 commented 2 years ago

I guess all the XPATHs are wrong now 🤔 What XPATH did you found for the message bar?

gegeeeee commented 2 years ago

SEND_MSG_BAR_XPATH: str = "//div[@class='markup-eYLPri editor-H2NA06 slateTextArea-27tjG0 fontSize16Padding-XoMpjI']"

i disabled ;swap, ;hunt etc and straight to ;item and catching pokes.. and now the bot is working but cant restock balls for example if need to buy 5 greatballs,, the bot typed 5 2 ;shop buy

instead of ;shop buy 2 5

still cant figure this out yet :) cheers

vic1707 commented 2 years ago

If it can't do hunt or any other checklist I bet it won't do the catching, As for the shop buy if I recall correctly there is somewhere a REVERSE variable that invert the string the bot is typing (to prevent a discord protection) maybe this thing is causing problems

gegeeeee commented 2 years ago

nope, the bot is working fine catching mons just when i dont have any balls left it stopped working because of the reverse thing ill try reading some more references and update thanks :)

vic1707 commented 2 years ago

Humm, probably because the shop isn't in an embed but a classic message

Once you have something that works please feel free to make a PR 😉

slender2kz commented 2 years ago

nope, the bot is working fine catching mons

just when i dont have any balls left it stopped working because of the reverse thing

ill try reading some more references and update thanks :)

have a discord i can direct message you on? kind of struggling with the setup and it seems you've got it down. Don't know if this is a good way of reaching you but github doesn't have any private messaging features, and all of this is kind of gibberish to me. thanks :)