This repository has been archived by the owner on Oct 14, 2019. It is now read-only.
/
.env.example
153 lines (121 loc) · 6.2 KB
/
.env.example
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# __ _ #
# _ __ ___ ___ _ __ ___ ___ ___ ___ _ __ / _(_) __ _ #
# | '_ ` _ \ / _ \ '_ ` _ \ / _ \ / __/ _ \| '_ \| |_| |/ _` | #
# | | | | | | __/ | | | | | __/ | (_| (_) | | | | _| | (_| | #
# |_| |_| |_|\___|_| |_| |_|\___| \___\___/|_| |_|_| |_|\__, | #
# |___/ #
# _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ #
# |_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____| #
###############################################################################
# Configure whether or not the test bot will actually try to post to Reddit.
# If this is 0, the bot will print out replies instead of posting them.
#
# For the official deployment, use: 1
###############################################################################
BOT_POST_TO_REDDIT=0
###############################################################################
# Configure which subreddit the bot should watch. This is also the subreddit
# the bot will post to, if BOT_POST_TO_REDDIT is 1.
#
# For the official deployment, use: MemeEconomy
###############################################################################
BOT_SUBREDDIT=MemeInvestor_test
###############################################################################
# Configure sticky behavior. If your bot account has mod privileges on the
# above subreddit, set this to 1 so the bot can sticky its comments.
#
# For the official deployment, use: 1
###############################################################################
BOT_IS_MODERATOR=0
###############################################################################
# Configure insider investment prevention. You can make it easier to test the
# !invest command by setting this value to 0.
#
# For the official deployment, use: 1
###############################################################################
BOT_PREVENT_INSIDERS=0
###############################################################################
# Configure if you want to charge people for posting new submissions. Please
# be aware that this is a controversial update. Use with caution.
#
# For the official deployment, use: 1
###############################################################################
BOT_SUBMISSION_FEE=0
###############################################################################
# If BOT_SUBMISSION_FEE is true, you can choose the percentage of account
# balance that users will be charged to post new submissions
#
# For the official deployment, use: 6
###############################################################################
BOT_SUBMISSION_FEE_PERCENT=6
###############################################################################
# If BOT_SUBMISSION_FEE is true, you can choose the minimum amount that a user
# should be changed when posting a new submission
#
# For the official deployment, use: 250
###############################################################################
BOT_SUBMISSION_MIN_FEE=250
###############################################################################
# Configure the amount of time before investments mature. You can reduce this
# to make it easier to test the !invest command.
#
# For the official deployment, use: 14400
###############################################################################
BOT_INVESTMENT_DURATION=14400
###############################################################################
# If bot needs to go offline, turn this to 1. It will just tell the bot to not
# process any of the commands and reply with a standard maintenance reply.
#
# For the official deployment, use: 0
###############################################################################
BOT_MAINTENANCE=0
###############################################################################
# The balance that all newly created user accounts start with.
#
# For the official deployment, use: 1000
###############################################################################
BOT_STARTING_BALANCE=1000
###############################################################################
# The amount of time between updating the leaderboard in the sidebar.
#
# For the official deployment, use: 1200
###############################################################################
BOT_LEADERBOARD_INTERVAL=1200
###############################################################################
# Configure Reddit accounts to treat as "admins." These accounts can use the
# !grant command to give investors badges. Comma-separated list.
###############################################################################
BOT_ADMIN_REDDIT_ACCOUNTS=
###############################################################################
# Configure Reddit access. See the guide on
# praw.readthedocs.io/en/latest/getting_started/quick_start.html
# for details on generating your own bot credentials.
#
# For the official deployment, use the creds for /u/MemeInvestor_bot
###############################################################################
BOT_CLIENT_ID=
BOT_CLIENT_SECRET=
BOT_USER_AGENT=
BOT_USERNAME=
BOT_PASSWORD=
###############################################################################
# Configure the hostname Caddy uses for the website.
#
# For the official deployment, use: memes.market
###############################################################################
CADDY_WEB_ADDRESS=localhost
###############################################################################
# Configure MySQL database access. You can leave this as-is. The database is
# not accessible from the public internet.
###############################################################################
MYSQL_USER=mysql
MYSQL_PASSWORD=strongpass!word
MYSQL_HOST=mysql
MYSQL_PORT=3306
MYSQL_DATABASE=mysql
MYSQL_RANDOM_ROOT_PASSWORD=yes
###############################################################################
# Test variable to determine whether the bot is in a test environment. Do NOT
# change the value as it will be overwritten by ./test.sh
###############################################################################
TEST=0