sm-ext-discord
provides an easy way to create SourceMod plugins that function as bots in Discord, providing both the ability to send and receive messages from Discord users. The extension sets up a websocket connection to Discord to act as a bot, and exposes Discord actions and events through a SourcePawn API.
- Download a pre-built extension binary (see below).
- Extract the downloaded extension to your SourceMod folder.
- Set up a Discord bot through Discord's website and copy the bot token.
- Add the bot to your server
- Set the
discord_bot_token
console variable to the token copied in step 2. - Restart the server or manually load the extension.
This exension does nothing on its own, it only provides methods for writing plugins that have Discord functionality. For examples of plugins check the scripting folder.
Game | Windows | Linux |
---|---|---|
TF2 | AppVeyor | GitLab |
CS:GO | AppVeyor | GitLab |
CS:S | AppVeyor | GitLab |
Insurgency | AppVeyor | GitLab |