forked from suhasa010/securejoinbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.env
30 lines (23 loc) · 929 Bytes
/
sample.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#Required*
#Rename this file to .env once everything is filled
#paste the bot token from @BotFather here *
BOT_TOKEN =
#Enter the ID of the private group for which you want to generate invite links here *
GROUP_ID = -10012345678
#Enter the channel ID where the logs about invite link generations should be posted *
NOTIF_CHANNEL_ID = -10012345678
#Enter your redis credentials here *
#Replace localhost with redis url and enter password, if any.
REDIS_DB_HOST = localhost
REDIS_DB_PASSWORD =
REDIS_DB_PORT = 6379
REDIS_DB_NUMBER = 3
#Enter in how many days, hours, minutes, seconds an invite link should expire (optional, by default it expires in a day)
EXPIRE_DAYS = 1
EXPIRE_HOURS = 0
EXPIRE_MINS = 0
EXPIRE_SECS = 0
#Enter the limit for valid number of users per invite link (optional, by default the link is valid for one user)
EXPIRE_USERS = 1
#Require Admin Approval? (optional) (True/False)
ADMIN_APPROVAL = False