vic1707 / AutoPlay-PokeMeow-Discord

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

Bot is typing backwards #10

Closed pokefan2 closed 3 years ago

pokefan2 commented 3 years ago

I have been trying everything, a direct link to a channel, a link from a browser, but nothing works for me and it keeps saying my url is in wrong/not valid. I am using firefox

vic1707 commented 3 years ago

Can you show me the shape of your command as well as the shape of your link please ? With that small amount of informations it's hard to help 😅.

Did you try by putting it between quotes?

pokefan2 commented 3 years ago

python bot.py -U 'username' -M 'email' -P 'pass' -C 'https://discord.com/channels/84438028703406XXXX/844398523839XXXXXX'

This is what my command is. I put x in place of other numbers

vic1707 commented 3 years ago

can you try with this quotes : " ? Also can you send the error thrown by the script please ?

pokefan2 commented 3 years ago

python bot.py -U 'nickname' -M 'user' -P 'pass!' -C ''https://discord.com/channels/8443802870xxxxxxx/'' It's 16:00:40, working time ! Traceback (most recent call last): File "C:\Users\User1\Desktop\AutoPlay-PokeMeow-Discord-main\bot.py", line 38, in DRIVER = CustomDriver(ARGUMENTS) File "C:\Users\User1\Desktop\AutoPlay-PokeMeow-Discord-main\Classes\CustomDriver.py", line 70, in init self.DiscordLogin(self.CHANNEL) File "C:\Users\User1\Desktop\AutoPlay-PokeMeow-Discord-main\Classes\CustomDriver.py", line 75, in DiscordLogin self.get(CHANNEL) File "C:\Users\User1\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get self.execute(Command.GET, {'url': url}) File "C:\Users\User1\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\User1\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.InvalidArgumentException: Message: Malformed URL: URL constructor: ''https://discord.com/channels/844380287034065008/'' is not a valid URL.

And then this is where the script stops. the " didnt work also.

vic1707 commented 3 years ago

Humm.... first I think the URL is wrong, at least I have one like : https://discord.com/channels/7014772084386XXXXX/7064400266023XXXXX with two times different numbers.

The channel link when pasted in your browser should redirect you directly to the channel (if you're logged in).

pokefan2 commented 3 years ago

I have tried both. One with only the first set of numbers and also like the example you gave me. When Firefox opens up from the script it doesn’t go to discord even

pokefan2 commented 3 years ago

I restarted my computer and typed in the script again and now it is able to go onto my Firefox. But now when the script types commands they're backwards? Like checklist is tsilkcehc; and daily is yliad;

vic1707 commented 3 years ago

Wait What ?! how is that even possible !? Maybe try updating the geckodriver file with the last version : https://github.com/mozilla/geckodriver/releases If that doesn't work I'll have to admit I have no idea...

pokefan2 commented 3 years ago

Capture

this is what happens. I also updated gecko but still nothing.

this is what i've been running in command promt: python bot.py -C "https://discord.com/channels/844380287034XXXXXX/844398523839XXXXXX" -U anotherxd -M XXXX@gmail.com -P XXXXX

Nothing in the files have been edited, just straight from download and unzip.

vic1707 commented 3 years ago

Well, just tried on my machine and it does the same to me too.... No idea why, maybe a discord protection ? Can you try on other browser (in case of a Mozilla bug ?

vic1707 commented 3 years ago

I added a workaround that seems to be working with the last commit 199ab5c . Try it out, should work until I find why it's typing backwards...

pokefan2 commented 3 years ago

Thank you so much for all you do, that works for now.

Aashu-12 commented 3 years ago

the bot was typing bakcwards due to some new update of mozzila when i downdated my mozzila version it started to work good again

vic1707 commented 3 years ago

thanks for the update, i'll leave the option there in case it happens again ^^