#🔒 what can i do

68 messages · Page 1 of 1 (latest)

pine mica
#

.env file exists: True
TOKEN: None
OWNER_ID: None
Error: DISCORD_TOKEN environment variable not found.

hushed lotusBOT
#

@pine mica

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

pine mica
#

i am devoloping a discord bot

#

and i cant find the solution of it

#

i posted it in right format also

#

still not working

hollow socket
pine mica
#

can anyone pls help me by giving me a vid

pine mica
#

didint work

hollow socket
#

reset it

#

because you just exposed it

#

so now it's compromised

#

and then after that, show me the contents of tipcc.py

pine mica
hollow socket
pine mica
#

DONE

hollow socket
pine mica
#

@hollow socketHERE

hollow socket
pine mica
#

hm

#

now tell how to solve it 😭

hollow socket
#

me personally, i'd just use a JSON file and call it a day

pine mica
#

me also

hollow socket
#

also just to note, you said "owner ID" then put a username

long cape
#

you didn't save your .env file

pine mica
#

i saved

hollow socket
#

oh yeah

long cape
#

no, there's a circle in its tab. that tells me it's not saved.

hollow socket
#

there's a 1 in the corner which means you didnt save your files

pine mica
#

oh

#

how to save ;I

hollow socket
#

ctrl+S?

#

how else did you save your files

pine mica
#

oh

#

File "C:\Users\Admin\AppData\Local\Programs\Python\Python313\Lib\site-packages\discord\http.py", line 828, in static_login
data = await self.request(Route('GET', '/users/@me'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python313\Lib\site-packages\discord\http.py", line 762, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

#

showing this

long cape
#

you mentioned that you reset your token. did you paste in the new one?

#

after you reset your token, the old one won't work anymore.

pine mica
#

oh i forgot

hollow socket
long cape
#

oh

hollow socket
#

!paste - show your whole code @pine mica

hushed lotusBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

pine mica
#

yo thanks

#

its working now

#

thankyou both

pine mica
#

why code

hollow socket
#

verifying there's no issues

#

nothing that could cause problems in the future

pine mica
#

and

#

can u tell for how many time the bot will be on

hollow socket
#

yes

#

send code first

acoustic needle
# pine mica

you can change load_dotenv() to assert load_dotenv() to see if the environment variables are being loaded

#

oops

#

i didnt see the rest of the thread

#

mb

pine mica
#

no problem

hushed lotusBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.