Ask coding questions

← Back to all posts
What is def read_token():
ArpitChauhan2

Can anybody tell me about What is def read_token(): And what can I write or do here

Voters
ArpitChauhan2
Comments
hotnewtop
Coder100

It's used to create a function. You indented too much, so unindent like this:

however, you can keep your secrets safe with the new environment variables: https://docs.replit.com/programming-ide/storing-sensitive-information-environment-variables

ArpitChauhan2

MrVoo

It's a Python function being created, can you give context?

ArpitChauhan2

@MrVoo I'm making a bot

MrVoo

@ArpitChauhan2 Don't store your bot token in a text file, use secrets (the padlock button)