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

Trying to start bot #21

Closed
SmokeyOdin opened this issue Apr 16, 2023 · 5 comments
Closed

Trying to start bot #21

SmokeyOdin opened this issue Apr 16, 2023 · 5 comments

Comments

@SmokeyOdin
Copy link

SmokeyOdin commented Apr 16, 2023

[ INFO/2023-04-16 13:52:48,492] root: Starting...

[ERROR/2023-04-16 13:52:48,494] root: Environment vars are missing! Kindly recheck.

[ INFO/2023-04-16 13:52:48,494] root: Bot is quiting...

copied .env and filled in info and get that message each time

@xditya
Copy link
Owner

xditya commented Apr 16, 2023

please share your .env file after hiding the values

@SmokeyOdin
Copy link
Author

I've tried two types:

#    This file is part of the ChannelAutoForwarder distribution (https://github.com/xditya/ChannelAutoForwarder).
#    Copyright (c) 2021 Adiya
#    
#    This program is free software: you can redistribute it and/or modify  
#    it under the terms of the GNU General Public License as published by  
#    the Free Software Foundation, version 3.
# 
#    This program is distributed in the hope that it will be useful, but 
#    WITHOUT ANY WARRANTY; without even the implied warranty of 
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
#    General Public License for more details.
# 
#    License can be found in < https://github.com/xditya/ChannelAutoForwarder/blob/main/License> .

# Do not copy the license into the .env file
# Do not use quotes (") in the values.

APP_ID=
API_HASH=
BOT_TOKEN=
FROM_CHANNEL=
TO_CHANNEL=

and:

APP_ID=
API_HASH=
BOT_TOKEN=
FROM_CHANNEL=
TO_CHANNEL=

either of them work

@xditya
Copy link
Owner

xditya commented Apr 19, 2023

Did you fill it up with values?

@SmokeyOdin
Copy link
Author

Yeah I did

@xditya
Copy link
Owner

xditya commented Apr 24, 2023

Everything seems fine. Please recheck if your file name is .env and it is in the root of the cloned repository.

@xditya xditya closed this as completed Jul 9, 2023
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