PJB
May 24, 2025, 7:04pm
1
The game server can now directly act as its own Discord bot. The OOC relay functionality was moved to this, which was previously done with a hard-to-setup system called MoMMILink. It can also relay admin channel contents.
master
← Simyon264:integrated-discord
opened 12:54PM - 12 Dec 24 UTC
## About the PR
This PR adds an integrated discord client into the game and a… lso adds support for an OOC and admin chat relay.
## Why / Balance
Setting up MoMMi is bad and the source code is outdated and it barely runs and having to rely on more outside services to host sucks. Ideally everything should be integrated with the game.
## Technical details
There are two components that make this work. Theres `DiscordLink` which handles the discord connection and contains the needed proxy methods. Then there is `DiscordChatLink` which subscribes to message events on the discord client and contains the methods to send a message to the discord channel that gets called in `ChatManger`.
## Media



## Requirements
- [x] I have read and am following the [Pull Request and Changelog Guidelines](https://docs.spacestation14.com/en/general-development/codebase-info/pull-request-guidelines.html).
- [x] I have added media to this PR or it does not require an ingame showcase.
## Breaking changes
`MoMMILink` and the corresponding CVars have been removed. To setup a new relay, change the following cvars:
```toml
[discord]
token = "<token>"
guild_id = 000000000000000000
[ooc]
discord_channel_id = 000000000000000000
```
For the new admin chat relay add the following line:
```toml
[admin]
chat_discord_channel_id = 000000000000000000
```
Replace the `000000000000000000` with the corresponding channel/guild ID.
MoMMILink
and the corresponding CVars have been removed. To setup a new relay, change the following cvars:
[discord]
token = "<token>"
guild_id = 000000000000000000
[ooc]
discord_channel_id = 000000000000000000
For the new admin chat relay add the following line:
[admin]
chat_discord_channel_id = 000000000000000000
Replace the 000000000000000000
with the corresponding channel/guild ID.