Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run the bot. #2

Open
iTorLink opened this issue Oct 6, 2023 · 1 comment
Open

Cannot run the bot. #2

iTorLink opened this issue Oct 6, 2023 · 1 comment

Comments

@iTorLink
Copy link

iTorLink commented Oct 6, 2023

Hi, I have 2 problems with .env

  1. Token is invalid! It must be 'str' type instead of <class 'NoneType'> type.
  2. ValueError: invalid literal for int() with base 10: 'admin id'
    what should i write here, my tg id?
@lleballex
Copy link
Owner

That's because of bad .env file. This file must be located in the root directory (magiceden-bot/.env). Here is the content of .env:

API_TOKEN=api token of the bot (from https://t.me/BotFather)
ADMIN=admin id (user telegram id)
DEBUG=True or False (is debug mode enabled)

Example of .env file:

API_TOKEN=testapitokenofthebot
ADMIN=49843551
DEBUG=True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants