Add support for alternate instances
This commit is contained in:
parent
2df936f0bb
commit
3e5cf70f9e
3 changed files with 4 additions and 3 deletions
|
@ -11,8 +11,8 @@
|
||||||
DB_PASS=
|
DB_PASS=
|
||||||
|
|
||||||
# Base URL of the Revolt API to connect to.
|
# Base URL of the Revolt API to connect to.
|
||||||
# Defaults to https://api.revolt.chat
|
# Defaults to https://revolt.chat/api
|
||||||
API_URL=
|
REVOLT_API_URL=
|
||||||
|
|
||||||
# Your bot account's token.
|
# Your bot account's token.
|
||||||
BOT_TOKEN=
|
BOT_TOKEN=
|
||||||
|
|
|
@ -16,6 +16,7 @@ logger.info('Initializing client');
|
||||||
let db = MongoDB();
|
let db = MongoDB();
|
||||||
let client = new AutomodClient({
|
let client = new AutomodClient({
|
||||||
autoReconnect: true,
|
autoReconnect: true,
|
||||||
|
baseURL: process.env['REVOLT_API_URL'] || "https://revolt.chat/api",
|
||||||
}, db);
|
}, db);
|
||||||
login(client);
|
login(client);
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ services:
|
||||||
- BOT_METRICS_MSG_PING_CHANNEL
|
- BOT_METRICS_MSG_PING_CHANNEL
|
||||||
- BOT_STATUS
|
- BOT_STATUS
|
||||||
- BOT_STATUS_INTERVAL
|
- BOT_STATUS_INTERVAL
|
||||||
- API_URL
|
- REVOLT_API_URL
|
||||||
# Uncomment if you enabled Prometheus metrics
|
# Uncomment if you enabled Prometheus metrics
|
||||||
#ports:
|
#ports:
|
||||||
# - 127.0.0.1:${BOT_METRICS_PORT}:${BOT_METRICS_PORT}
|
# - 127.0.0.1:${BOT_METRICS_PORT}:${BOT_METRICS_PORT}
|
||||||
|
|
Loading…
Reference in a new issue