-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration example
jxsl13 edited this page Jun 16, 2020
·
4 revisions
The .env should be located in the current folder that you are in when starting the discord bot.
./TeeworldsEconDiscordModerationBot
./.env
./tools/./TeeworldsEconDiscordModerationBot
./.env
DISCORD_TOKEN=Nj.........
DISCORD_ADMIN="jxsl13#1234"
DISCORD_MODERATORS="user#1234 user2#1234"
# same password for all servers (if you want different passwords,
# you need to define one for each address separated by a space)
ECON_ADDRESSES=localhost:9303 localhost:9304 localhost:9305 localhost:9306
ECON_PASSWORDS="1234567890PASSWORD"
#ECON_PASSWORDS="pwWithoutSpace1 pwWithoutSpace2 pwWithoutSpace3"
DISCORD_MODERATOR_ROLE="Server Moderator"
DISCORD_MODERATOR_COMMANDS="status vote say mute unmute mutes voteban unvoteban unvoteban_client votebans ban unban bans set_team"
# checkout the readme.md for how to get these
F3_EMOJI=f3:529812237959823399
F4_EMOJI=f4:529812251461287946
BAN_EMOJI=ban:529812261460508687
UNBAN_EMOJI=sendhelp:529812377441402881
BANID_REPLACEMENT_COMMAND="voteban {ID} 1800"
BANIP_REPLACEMENT_COMMAND="ban {IP} 30 violation of rules"
NICKNAME_TRACKING=ENABLE
# 168h = 7 days, 336h = 14 days
NICKNAME_EXPIRATION=168h
# default redis configuration after installing Redis
REDIS_ADDRESS=localhost:6379
REDIS_PASSWORD=
# shared econ configuration
ec_password "1234567890PASSWORD"
ec_bantime 0
ec_auth_timeout 60
ec_output_level 2
# per server configuration
sv_port 8303
ec_port 9303
# ... other zCatch server configuration stuff ...