DiscordIRCd is a nodejs app that will create a local irc server you can connect to that pipes through messages from Discord.
This guide assumes you are on windows, though the steps would basically be the same on linux.
General steps:
- Get your Discord token
- Install node
- Download DiscordIRCd
- Configure DiscordIRCd
- Setup DiscordIRCd
- Run DiscordIRCd