Skip to content

Commit 57b092a

Browse files
Merge pull request #128 from oh64/main
use the right urls
2 parents 5128eda + f8c9b53 commit 57b092a

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ to multiple {{ project.name }}-compatible instances with rich theming and plugin
3030
## Support
3131

3232
For any kind of support regarding {{ project.name }}, feel free to ask questions in our [discord.com guild](https://discord.gg/Ms5Ev7S6bF)
33-
or our [official {{ project.name }} instance](https://api.old.server.{{ project.domain }}).
33+
or our [official {{ project.name }} instance](https://api.rory.server.{{ project.domain }}).
3434

3535
For bug reporting and feature requests please create an [issue]({{ repositories.base_url }}/{{ repositories.server }}/issues/new/choose) on Github.

docs/setup/bots/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ when connected to a {{ project.name }} instance instead.
88

99
Below are some popular libraries for connecting bots to a {{ project.name }} instance.
1010

11-
Make sure to replace `api.{{ project.domain }}` and `cdn.{{ project.domain }}`
11+
Make sure to replace `api.rory.server.{{ project.domain }}` and `cdn.rory.server.{{ project.domain }}`
1212
with the appropriate URLs of the instance you want to connect to.
1313

1414
You can get them from a client or from the [well-known](../server/wellknown) instance endpoint.
@@ -23,8 +23,8 @@ const { Client } = require("discord.js");
2323

2424
const client = new Client({
2525
rest: {
26-
api: "https://api.{{ project.domain }}/api",
27-
cdn: "https://cdn.{{ project.domain }}",
26+
api: "https://api.rory.server.{{ project.domain }}/api",
27+
cdn: "https://cdn.rory.server.{{ project.domain }}",
2828
version: "9"
2929
},
3030
ws: {
@@ -45,7 +45,7 @@ const bot = new Eris("your token here", {
4545
"guildMessages"
4646
],
4747
rest: {
48-
domain: "api.old.server.spacebar.chat",
48+
domain: "rory.server.{{ project.domain }}",
4949
baseURL: "/api/v9"
5050
},
5151
ws: {
@@ -64,7 +64,7 @@ bot.connect();
6464
```py
6565
import discord
6666

67-
discord.http.Route.BASE = "https://api.{{ project.domain }}/api"
67+
discord.http.Route.BASE = "https://rory.server.{{ project.domain }}/api"
6868
client = discord.Client()
6969

7070
client.run("your token here")
@@ -73,14 +73,14 @@ client.run("your token here")
7373
### JDA
7474

7575
1. Create a RestConfig instance: `RestConfig restConfig = new RestConfig();`
76-
2. Use RestConfig#setBaseUrl to tell JDA what your Rest URI is: `restConfig.setBaseUrl("https://api.{{ project.domain }}/api/v9");`
76+
2. Use RestConfig#setBaseUrl to tell JDA what your Rest URI is: `restConfig.setBaseUrl("https://rory.server.{{ project.domain }}/api/v9");`
7777
3. Create another class, and extend ConcurrentSessionController, e.g. `public class SpacebarSessionController extends ConcurrentSessionController`
7878
4. Override the ConcurrentSessionController#getGateway method:
7979
```java
8080
@NotNull
8181
@Override
8282
public String getGateway() {
83-
return "wss://gateway.{{ project.domain }}/?encoding=json&v=9&compress=zlib-stream";
83+
return "wss://gateway.rory.server.{{ project.domain }}/?encoding=json&v=9&compress=zlib-stream";
8484
}
8585
```
8686
5. Finally, configure JDA to use your RestConfig & SpacebarSessionController, like this:

docs/setup/clients/official/legacy.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ content:
1212

1313
```json
1414
{
15-
"api": "https://api.old.server.{{ project.domain }}/api/v9",
16-
"cdn": "https://cdn.old.server.{{ project.domain }}",
17-
"gateway": "wss://gateway.old.server.{{ project.domain }}",
18-
"invite": "https://old.server.{{ project.domain }}/invite",
19-
"template": "https://old.server.{{ project.domain }}/template",
20-
"gift": "https://old.server.{{ project.domain }}/gift",
21-
"scheduledEvent": "https://old.server.{{ project.domain }}/events"
15+
"api": "https://api.rory.server.{{ project.domain }}/api/v9",
16+
"cdn": "https://cdn.rory.server.{{ project.domain }}",
17+
"gateway": "wss://gateway.rory.server.{{ project.domain }}",
18+
"invite": "https://rory.server.{{ project.domain }}/invite",
19+
"template": "https://rory.server.{{ project.domain }}/template",
20+
"gift": "https://rory.server.{{ project.domain }}/gift",
21+
"scheduledEvent": "https://rory.server.{{ project.domain }}/events"
2222
}
2323
```
2424

0 commit comments

Comments
 (0)