Skip to content

Commit 262cd52

Browse files
committed
Depreciate CONFIG_PATH
1 parent 3462d73 commit 262cd52

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ EXPOSE 8123
4242
# Port used for application command and control
4343
EXPOSE 5000
4444

45-
ENV CONFIG_PATH="/app/config" \
46-
LOG_PATH="/app/logs"
45+
ENV LOG_PATH="/app/logs"
4746
VOLUME ["/app/config", "/app/logs"]
4847

4948
# Run the compiled binary.

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ Heroku hosting steps are are not yet updated for v3.0+ of AutoMuteUs, and as suc
153153
This is used to provide the linking URI to the capture, via the Direct Message the bot sends you when typing `.au new`.
154154
**You must specify `http://` or `https://` accordingly, and specify the port if non-8123. For example, `https://your-app.herokuapp.com:443`**
155155
- `SERVICE_PORT`: Port used for graceful shutdowns and stats via HTTP GET. Defaults to 5000
156-
- `CONFIG_PATH`: Alternate filesystem path for guild and user config files. Defaults to `./`
157156
- `LOG_PATH`: Filesystem path for log files. Defaults to `./`
158157
- `CAPTURE_TIMEOUT`: How many seconds of no capture events received before the Bot will terminate the associated game/connection. Defaults to 36000 seconds.
159158
- `REDIS_PASSWORD`: Your Redis database password, if necessary.

amongusdiscord.xml

-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,5 @@ unRAID template by Argash</Description>
8181
<Config Name="DISCORD_BOT_TOKEN" Target="DISCORD_BOT_TOKEN" Default="" Mode="" Description="The Bot Token used by the bot to authenticate with Discord." Type="Variable" Display="always" Required="true" Mask="true"></Config>
8282
<Config Name="EXT_PORT" Target="" Default="" Mode="tcp" Description="The port to use for the capture url. Must be a valid port number, or " Type="Port" Display="always" Required="false" Mask="false">8123</Config>
8383
<Config Name="SERVER_URL" Target="SERVER_URL" Default="" Mode="" Description="The externally-accessible URL for this instance of the discord bot. For example, http://test.com. This is used to provide the linking URI to the capture, via the Direct Message the bot sends you when typing .au new (in conjunction with the PORT above). You must specify http:// or https:// accordingly as part of the URL" Type="Variable" Display="always" Required="false" Mask="false"></Config>
84-
<Config Name="CONFIG_PATH" Target="/config" Default="" Mode="rw,slave" Description="Container Path: /config" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/amongusdiscord/</Config>
8584
<Config Name="DISCORD_BOT_TOKEN_2" Target="DISCORD_BOT_TOKEN_2" Default="" Mode="" Description=" (Optional) A second Bot Token to be used to distribute the mute/deafen requests to Discord. If you play in larger groups of 8+ people, this is recommended to not be rate-limited (delayed) by Discord when rounds change!" Type="Variable" Display="always" Required="false" Mask="false"/>
8685
</Container>

main.go

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ func discordMainWrapper() error {
142142
}
143143
log.Printf("Using capture timeout of %d seconds\n", captureTimeout)
144144

145+
if os.Getenv("CONFIG_PATH") != "" {
146+
log.Print("[Depreciation] Variable `CONFIG_PATH` is depreciated, you can remove it from your `.env`")
147+
}
148+
145149
var redisClient discord.RedisInterface
146150
var storageInterface storage.StorageInterface
147151

0 commit comments

Comments
 (0)