Since Corrade is just a bridge between the outside world and Second Life, a small template can be written in Node.JS that makes use of Corrade's MQTT server and employs Discord.JS to pass messages back and forth between a Second Life group and a Discord server / channel.
node -v) and NPM version 4.2.0 (
npm -v) - please make sure you have at least these version numbers
Two programs will have to be running: Corrade and the bridge program (this one), at all times for the messages to be relayed.
Setting up Corrade is wholely documented on the Wizardry and Steamworks Corrade page. This template however requires the following permissions and notifications:
Additionally, the template needs the Corrade MQTT server to be started and running on an accessible address and port that corresponds to the template settings in
config.yml. The Corrade MQTT server can be configured and started using Nucleus.
The source can be checked out using Subversion from the following URL:
In the directory containing this document issue the command:
in order to install dependencies.
Next, copy the file
config.yml and edit the file to make the settings.
For a test run, execute:
and follow the console messages. If everything went well, the program will announce that it has connected to Discord and to the Corrade MQTT server.
Copy the file from
/etc/systemd/system/ and edit it to configure parameters.
Set the executable bit on the main file:
chmod +x /etc/systemd/system/corrade-group-discord-bridge.service
Issue the command:
systemctl enable corrade-group-discord-bridge.service
to enable the service.
systemctl start corrade-group-discord-bridge.service
to start up the bridge in the background.
The service will be restarted in case it crashes and will also restart after reboots.
The standard Corrade dual-license applies to this project. For more information on the Corrade dual license, please see the Corrade documentation.