This is a simple Python script I made which wraps around the Assetto Corsa server executable to parse the stdout and send Discord notifications using WebHooks. It passes stdout through and so should hopefully work OK with things like sTracker and AC server manager etc.
It requires a Steam API key (if logging server pings), Python 3 and the requests module. I haven't tried it on Windows, but I think it should work. Try 'pip3 install requests' on Windows or 'apt-get install python3-requests' on Ubuntu/Debian.
Features:
- Send in-game chat messages to a Discord channel
- Send driver join/leave notifications to a Discord channel
- Log server pings to Discord and show Steam user info
- You will need a Steam API key (if logging server pings), and Discord WebHook URL(s).
- Extract ac_discord_bridge.py to the main Assetto Corsa directory.
- Open the script in a text editor, and paste your Steam API key into the line where it says:
Code:
steam_api_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
Code:log_webhook_url = 'https://discordapp.com/api/webhooks/foo/bar'
Code:chat_webhook_url = 'https://discordapp.com/api/webhooks/foo/bar'
- Save your edits and run ac_discord_bridge.py instead of acServer
Code:
POLL_MESSAGES = False
Code:
POLL_MESSAGES = True
This is free software. Any support is appreciated!