Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
update revolt api and websocket url
Browse files Browse the repository at this point in the history
  • Loading branch information
meppu committed Aug 2, 2023
1 parent 171bbd9 commit 02d4016
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ With the new update, Revard now has the capability to render an SVG card for you
The endpoint for the card is available at `/card/:id`. For example:

- `https://revard.meppu.boo/card/01F6YN5JWMHJFKPDZVYB6434HX`

![card](https://revard.meppu.boo/card/01F6YN5JWMHJFKPDZVYB6434HX)

### Card Options
Expand Down Expand Up @@ -165,8 +165,8 @@ Before running the bot, you must set the following environment variables:

Additionally, if you are using this bot for another Revolt host, you need to set these special environment variables:

- `REVOLT_WEBSOCKET`: Revolt WebSocket URL. The default is "wss://ws.revolt.chat".
- `REVOLT_API`: Revolt API URL. The default is "https://api.revolt.chat".
- `REVOLT_WEBSOCKET`: Revolt WebSocket URL. The default is "wss://app.revolt.chat/events".
- `REVOLT_API`: Revolt API URL. The default is "https://app.revolt.chat/api".
- `AUTUMN_URL`: Autumn (Revolt CDN) URL. The default is "https://autumn.revolt.chat".

### Docker
Expand Down
4 changes: 2 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Config

config :revard,
bot_token: System.get_env("REVOLT_BOT_TOKEN"),
revolt_websocket: System.get_env("REVOLT_WEBSOCKET", "wss://ws.revolt.chat"),
revolt_api: System.get_env("REVOLT_API", "https://api.revolt.chat"),
revolt_websocket: System.get_env("REVOLT_WEBSOCKET", "wss://app.revolt.chat/events"),
revolt_api: System.get_env("REVOLT_API", "https://app.revolt.chat/api"),
autumn_url: System.get_env("AUTUMN_URL", "https://autumn.revolt.chat"),
server_id: System.get_env("REVOLT_SERVER_ID"),
mongo_url: System.get_env("MONGO_URL"),
Expand Down

0 comments on commit 02d4016

Please sign in to comment.