Discord and IRC relay for U413. Forked from reactiflux/discord-irc
This version supports end-to-end encryption, and is compatible with the DiscordEncryption plugin.
This package is not on npm, so you will have to do some manual cloning and building
$ git clone [email protected]:U413/discord-irc
$ cd discord-irc
If using yarn:
$ yarn
$ yarn build && yarn start --config ./config.json
OR If using npm:
$ npm install
$ npm run build && npm start -- --config ./config.json
As indicated, you must set up a config.json
file to be passed as an argument.
To configure, follow the same rules as the original project.
With this project however, it can take in an extra encryption
parameter as an object mapping the discord channels to the secrets to be used for encryption and decryption.
The first secret in the list will be used by default for encryption, and it will be your primary secret.
The other secrets in the list (including the primary) will be used for decryption. The bot will try to decrypt with all secrets one by one until one works, or it will indicate that decryption has failed.
[
{
"nickname": "test",
"server": "irc.testbot.org",
"discordToken": "botwantsin123",
"channelMapping": {
"#other-discord": "#new-irc-channel"
},
// ...Other discord-irc config parameters
"encryption": {
"other-discord": ["main-secret", "other-secret1", "other-secret2"]
}
}
]