From 970cbd80cedcb215c9fcded648684d27cf88cb39 Mon Sep 17 00:00:00 2001 From: Declan Chidlow Date: Wed, 19 Feb 2025 17:11:27 +0800 Subject: [PATCH] Update default API endpoint --- .env.example | 4 ++-- bot/src/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index dfcfab0..66ed372 100644 --- a/.env.example +++ b/.env.example @@ -11,14 +11,14 @@ DB_PASS= # Base URL of the Revolt API to connect to. -# Defaults to https://revolt.chat/api +# Defaults to https://api.revolt.chat/0.8 REVOLT_API_URL= # Your bot account's token. BOT_TOKEN= # The default prefix, can be overridden by server owners. -# Leave empty to keep default ("/") +# Defaults to / BOT_PREFIX= # List of messages to display in the bot's status, separated diff --git a/bot/src/index.ts b/bot/src/index.ts index af5f001..62f7082 100644 --- a/bot/src/index.ts +++ b/bot/src/index.ts @@ -12,7 +12,7 @@ let db = MongoDB(); let client = new AutomodClient( { autoReconnect: true, - baseURL: process.env["REVOLT_API_URL"] || "https://revolt.chat/api", + baseURL: process.env["REVOLT_API_URL"] || "https://api.revolt.chat/0.8", }, db, ); -- knotmirror 0.0.1