staciax / valorant-discord-bot

A discord bot with valorant api.
GNU General Public License v3.0
338 stars 201 forks source link

how to do it with no host #94

Closed PerkZ999 closed 1 year ago

PerkZ999 commented 1 year ago

image

staciax commented 1 year ago

TOKEN not found

marchingon12 commented 1 year ago

if you didnt remove the '#' where TOKEN and OWNER_ID are then those lines will be ignored. Otherwise your TOKEN is wrong.

PerkZ999 commented 1 year ago

i put in the thing for the token

image

not working

image

marchingon12 commented 1 year ago

???

From the logs I can see that you've manually edited the code itself. You can't parse the TOKEN from your .env file if you decide to write your token as a variable for the code to search it, because it doesnt exist in your .env file.

return await super().start(os.getenv('MTA0MDQ4MjkxMjA3Nzg3NzI0OA.GYHgha.Rb0Wff-jANgEMhPaKmqIKRsE-mD_pV5eRWNj-c'), reconnect=True)

Second thing I noticed is what you manualy edited into the code as your 'token' is different to the one in your .env file. I don't know if you've dedcided to reset it or copied the wrong one by mistake or not, please confirm.

  1. Remove your token from the code and write TOKEN back (or best a fresh git clone).

    - MTA0MDQ4MjkxMjA3Nzg3NzI0OA.GYHgha.Rb0Wff-jANgEMhPaKmqIKRsE-mD_pV5eRWNj-c
    + return await super().start(os.getenv('TOKEN'), reconnect=True)
  2. Reset your bot token just in case since youve decided to share it in public. (Discord Dev Portal > Bot > Reset token) image

  3. Then make sure u have the correct token according to your bot copied in your clipboard, then paste it in the .env file, along with your OWNER_ID. Make sure you've uncommented the lines by removing hashes '#'.

  4. Run the bot again.

PerkZ999 commented 1 year ago

THANKS BRUHH