Skip to content

Commit

Permalink
Fixing relative links
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneK committed Nov 10, 2024
1 parent 73e35e2 commit 7dbc542
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/starlight": "^0.29.0",
"astro": "^4.16.10",
"sharp": "^0.32.5",
"@astrojs/check": "^0.9.4",
"typescript": "^5.6.3"
}
}
2 changes: 1 addition & 1 deletion src/content/docs/guides/connect-sessions-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This connection is what brings the most amount of value to using the RPG Session
![Link Account](../../../assets/guides/connect-account/link-discord.png)
4. Sign in to Discord if required and then accept the account link

After signed in, you can verify that you're successfully linked by running [`/debug info`](/misc/debug/#debug-info) in a server with the bot and seeing if the User ID is set. If everything is right, you should be good to go!
After signed in, you can verify that you're successfully linked by running [`/debug info`](../misc/debug/#debug-info) in a server with the bot and seeing if the User ID is set. If everything is right, you should be good to go!

## Disconnecting your account
If for some reason you need to disconnect your RPG Sessions account from your Discord account, you can follow the above steps to get to your profile page and hit the `Unlink Account` button in your profile.
Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/guides/connecting-to-game-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ You can connect a game table to your Discord server using the RPG Sessions bot.
## Steps to Connect a Game Table

1. **Pair the Game Table to the Server**
First, link your Discord server with a game table. Use the [`/game pair`](/reference/game/#game-pair) command to connect your server with either a new or an existing game table.
First, link your Discord server with a game table. Use the [`/game pair`](../reference/game/#game-pair) command to connect your server with either a new or an existing game table.

2. **Set up data synchronization** (Optional)
After linking the game, you can decide which channels will be used for synchronizing different game event types, like character messages or dice rolls. Use the [`/options set:channel`](/reference/options/#options) command to do this.
After linking the game, you can decide which channels will be used for synchronizing different game event types, like character messages or dice rolls. Use the [`/options set:channel`](../reference/options/#options) command to do this.
![Sync Options Unchecked](../../../assets/guides/connect-game-table/sync-options-unchecked.png)
After running this command, buttons will appear that allow you to enable syncing dice rolls, initiative, and game messages between the game table and current channel. For them to be enabled, you need to press the buttons so they turn blue.
![Sync Options Checked](../../../assets/guides/connect-game-table/sync-options-checked.png)
Learn more on the [sync with game table guide](sync-game-table-events)

3. **Check the Pairing**
After connecting the game and setting up the channels, the bot will send a message confirming which channels are linked to which game tables. To see these settings anytime, use the [`/game view`](/reference/game/#game-view) command to check the details of the current connections.
After connecting the game and setting up the channels, the bot will send a message confirming which channels are linked to which game tables. To see these settings anytime, use the [`/game view`](../reference/game/#game-view) command to check the details of the current connections.
![Game View](../../../assets/guides/connect-game-table/game-view.png)

By following these steps, you can easily link your game table to your Discord server. Let us know if you have any questions in our [Discord server](https://discord.gg/DfEkRzUbjk)!
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/guides/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Here are some of the reasons why the RPG Sessions bot is useful:

The RPG Sessions bot uses **commands** to do things. Commands are typed into the chat, and they usually start with a slash (`/`). Here are some common ways you might interact with the bot:

- **Checking Character Info**: If you want to share your character sheet or a specific stat, there are commands like [`/character view`](/reference/character/#character-view) to display information to the rest of the group.
- **Rolling Dice**: To roll dice, you use a command like [`/dice roll`](/reference/dice/#dice-roll). For example, typing `/dice roll yyrp` will roll two yellow dice, one red die, and one purple die. If you have a character connected, you can use skill shortcuts like `/dice roll (brawl)pp` to roll your brawl check against 2 purple dice. You can also add modifiers or use different types of dice.
- **Managing Initiative**: During combat, you can use commands like [`/initiative start`](/reference/initiative/#initiative-start) to let the bot manage the turn order, making sure everyone knows when it's their time to act.
- **Checking Character Info**: If you want to share your character sheet or a specific stat, there are commands like [`/character view`](../reference/character/#character-view) to display information to the rest of the group.
- **Rolling Dice**: To roll dice, you use a command like [`/dice roll`](../reference/dice/#dice-roll). For example, typing `/dice roll yyrp` will roll two yellow dice, one red die, and one purple die. If you have a character connected, you can use skill shortcuts like `/dice roll (brawl)pp` to roll your brawl check against 2 purple dice. You can also add modifiers or use different types of dice.
- **Managing Initiative**: During combat, you can use commands like [`/initiative start`](../reference/initiative/#initiative-start) to let the bot manage the turn order, making sure everyone knows when it's their time to act.

The bot will respond right in the chat, so everyone knows what's happening. No more confusion about whose turn it is or who rolled what number!

Expand All @@ -35,7 +35,7 @@ The bot will respond right in the chat, so everyone knows what's happening. No m
If you want to add the RPG Sessions bot to your server, you'll need to follow these steps:

1. **Invite the Bot**: Are you a server manager and want to add the bot to your server? [Invite the bot here!](https://discord.com/api/oauth2/authorize?client_id=534606682928578572&permissions=309774806080&scope=bot)
2. **Set Permissions**: The bot will request the permissions it requires, but you can run [`/debug info`](/misc/debug/#debug-info) to make sure it has what it needs. The output of the command explains each permission it needs and why it needs it.
2. **Set Permissions**: The bot will request the permissions it requires, but you can run [`/debug info`](../misc/debug/#debug-info) to make sure it has what it needs. The output of the command explains each permission it needs and why it needs it.
3. **Use Commands**: Once the bot is added, everyone can start using commands to roll dice, check stats, and more.
4. **Synchronize with the Game Table**: [Check out our guide](/guides/connecting-to-game-table/) on setting up the Discord Bot so it synchronizes events between the Discord server and associated RPG Sessions Game Table

Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/guides/sync-game-table-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ In this guide, we'll walk through how to set up the Discord Bot so that it can r

## Sync your Game Table to your Discord Server

Events from game tables can be set up either to specific channels for each event type or all events to the same channel. Go to the channel you want an event to be sent to and use the [`/options set:channel`](/reference/options/#options) command.
Events from game tables can be set up either to specific channels for each event type or all events to the same channel. Go to the channel you want an event to be sent to and use the [`/options set:channel`](../reference/options/#options) command.
![Sync Options Unchecked](../../../assets/guides/connect-game-table/sync-options-unchecked.png)
After running this command, buttons will appear that allow you to enable syncing dice rolls, initiative, and game messages between the game table and current channel. For them to be enabled, you need to press the buttons so they turn blue.
![Sync Options Checked](../../../assets/guides/connect-game-table/sync-options-checked.png)
If you only want one type of event to go to the current channel, only turn the button for that event blue.

## Sync your in-character messages to your Game Table

You can also synchronize messages sent with the [`/ic`](/reference/in-character) command back to the messages in your Game Table. This is great for role playing or asynchronous game play.
You can also synchronize messages sent with the [`/ic`](../reference/in-character) command back to the messages in your Game Table. This is great for role playing or asynchronous game play.

To do this, use the [`/options`](/reference/options/) command (note: no `set:channel` on this one). A button will show up that controls whether the bot can synchronize these messages. To enable it, the button should be blue.
To do this, use the [`/options`](../reference/options/) command (note: no `set:channel` on this one). A button will show up that controls whether the bot can synchronize these messages. To enable it, the button should be blue.

![Sync Options Checked](../../../assets/guides/sync-game-table-events/sync-in-character-button.png)


## Troubleshooting

The most common problems that occur from this process are a result of the bot lacking the required permissions either in the server or the channel specifically. Use the [`/debug info`](/misc/debug/#debug-info) command to identify if the bot has all of the permissions it needs. The output from the command describes each permission and why it needs it, make sure they all have green checkmarks to indicate they are properly enabled.
The most common problems that occur from this process are a result of the bot lacking the required permissions either in the server or the channel specifically. Use the [`/debug info`](../misc/debug/#debug-info) command to identify if the bot has all of the permissions it needs. The output from the command describes each permission and why it needs it, make sure they all have green checkmarks to indicate they are properly enabled.

If you still need help, [join our Discord server](https://discord.com/invite/DfEkRzUbjk). We're here to help!
12 changes: 6 additions & 6 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ hero:
file: ../../assets/mark.png
actions:
- text: Getting Started
link: /guides/how-to
link: /discord-bot-docs/guides/how-to
icon: right-arrow
- text: Command Help
link: /reference/character/
link: discord-bot-docs/reference/character/
icon: right-arrow
variant: minimal
---
Expand All @@ -22,22 +22,22 @@ import { Card, CardGrid, LinkCard } from "@astrojs/starlight/components";
<CardGrid>
<LinkCard
title="Pair game table to Discord server"
href="/guides/connecting-to-game-table/"
href="discord-bot-docs/guides/connecting-to-game-table"
description="Learn how to connect your game table to your Discord server and verify the connection."
/>
<LinkCard
title="Send in-character messages"
href="/reference/in-character/#ic-message"
href="discord-bot-docs/reference/in-character/#ic-message"
description="Send messages as your characters to role-play in your server!"
/>
<LinkCard
title="Sync table messages and events to Discord"
href="/guides/sync-game-table-events"
href="discord-bot-docs/guides/sync-game-table-events"
description="Learn how to synchronize game events and messages to your Discord server."
/>
<LinkCard
title="Troubleshooting"
href="/misc/debug/#debug-info"
href="discord-bot-docs/misc/debug/#debug-info"
description="Is the bot not behaving how you expect it should? Troubleshoot with the `/debug info` command!"
/>
</CardGrid>

0 comments on commit 7dbc542

Please sign in to comment.