XtramCZ / auto-advertise-py

Discord selfbot written in python for advertising in specified channels
2 stars 2 forks source link

invalid token #23

Open RukaOff opened 2 months ago

RukaOff commented 2 months ago

Hello, I disabled 2FA and refreshed my page but it still displays that: > Token is invalid! {"message": "401: Unauthorized", "code": 0}

RukaOff commented 2 months ago

Ok, it work but now there is this:

Changing status to online... Traceback (most recent call last): File "c:\Users\rukao\Desktop\Auto Pub\main.py", line 184, in asyncio.run(start()) File "C:\Python312\Lib\asyncio\runners.py", line 194, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "c:\Users\rukao\Desktop\Auto Pub\main.py", line 181, in start await sendMessages() File "c:\Users\rukao\Desktop\Auto Pub\main.py", line 132, in sendMessages message = open("message.txt", "r").read() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 4: character maps to

XtramCZ commented 2 months ago

There might be encoding issues in your message

Try changing the line 132 from message = open("message.txt", "r").read() to message = open("message.txt", "r", encoding="utf-8").read()

RukaOff commented 2 months ago

There is Changing status to online, Going offline until 11:55! It should work now ty

RukaOff commented 2 months ago

What if we close VSCOde, will the code continue to run?

XtramCZ commented 1 month ago

No, you need a server for that