• Nim 99.4%
  • Shell 0.6%
Find a file
2024-06-25 16:34:48 +01:00
src don't crash if magic gbadev channels don't exist 2024-06-25 16:34:48 +01:00
.gitignore setup for gbadev 2021-08-06 23:54:39 +01:00
ircord.nimble Use dimscord fork, don't insert on len=0 2024-01-17 18:18:48 +03:00
ircord_default.toml add ability to op IRC users by pattern 2022-12-29 12:34:18 +00:00
LICENSE Add license 2020-01-08 01:28:25 +03:00
README.md Update code, add Pasty, integrate diff, fix intents 2024-01-17 17:26:00 +03:00
zig-compile-vps.sh No need for refc 2024-01-17 18:54:48 +03:00

Ircord - Discord <-> IRC bridge written in Nim

This project is an IRC <-> Discord bridge, mainly created for Nim IRC channels. Ircord only depends on OpenSSL (for https), everything else is pure-Nim.

IRC admin commands (the command itself and the response are not sent to Discord)

  • !getdiscid <string> - shows IDs of all Discord users which have that string in their name
  • !getlastid - shows ID of the last person who sent a message in the current channel on Discord
  • !bandisc <number> - bans the person with that ID on the Discord server
  • !status - shows bot uptime

This library is made possible by:

The bot is asynchronous and should be fully cross-platform (there's no OS-specific stuff in the bot).

To configure the bot, copy the config file from ircord_default.toml to ircord.toml and edit to your liking. You'll need a Discord bot token (it's used in Ircord for mentioning users in Discord from IRC), and a mapping with IRC channel name, Discord channel ID and a webhook URL for that channel.

Some of the features:

  • Pinging people in Discord from IRC

  • Converting IRC formatting to Discord's markdown and vice-versa

  • Word-wrapping big messages or code pastes and sending them with ix.io / paste.rs

License

Ircord (everything except src/diff.nim) is licensed under the MIT license, see LICENSE file for more information. src/diff.nim is licensed under Apache License, Version 2.0, see the file for more information.