-
Notifications
You must be signed in to change notification settings - Fork 10
discord.ocaml.org
Anil Madhavapeddy edited this page Nov 3, 2022
·
8 revisions
Status: currently decommissioned.
Address: discord.ocaml.org
or 162.209.96.108
This machine is used for creating bots to support the Discord chat server. This machine has an ocaml
user. Currently, the machine is only accessible via ssh
by Anil and Yotam Barnoy (yotambarnoy (at) gmail.com). Email them for access.
- This bot uses Matterbridge (https://github.com/42wim/matterbridge).
- A configuration file sits at
~/matterbridge.toml
. This file configures both the IRC details and the discord channel (currently #irc on the ocaml server). It also contains the token, which identifies the bridge as a discord bot, and the webhook, which is necessary to post to the OCaml #irc channel. - Running the bot normally is just
./matterbridge --conf matterbridge.toml
. - In order to make sure the bot is run as a daemon, and that resetting the VM will immediately run it, I used the
pm2
package (sudo npm install -g pm2
). - Running the bot under pm2 requires the command
pm2 start ~/matterbridge --name discord_irc -- --conf ~/matterbridge.toml
. - Setting up pm2 the first time required
pm2 startup
, copying and pasting the command, and thenpm2 save
. This should not need doing again.
- Download a new version of the matterbridge 64-bit Linux executable and place it in the home directory. Compilation under go cannot work due to the lack of RAM on the VM.
- IFTTT is used for the integration, with Yotam Barnoy's private credentials (unfortunately there is no other way). Contact him for details.