{"id":19443405,"url":"https://github.com/smashedr/discord-irc","last_synced_at":"2025-10-06T04:06:19.846Z","repository":{"id":177071313,"uuid":"77721487","full_name":"smashedr/discord-irc","owner":"smashedr","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-06T04:14:52.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T04:04:19.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smashedr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-31T02:33:50.000Z","updated_at":"2016-12-31T02:36:05.000Z","dependencies_parsed_at":"2023-07-10T06:01:29.046Z","dependency_job_id":null,"html_url":"https://github.com/smashedr/discord-irc","commit_stats":null,"previous_names":["smashedr/discord-irc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smashedr/discord-irc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fdiscord-irc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fdiscord-irc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fdiscord-irc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fdiscord-irc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smashedr","download_url":"https://codeload.github.com/smashedr/discord-irc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fdiscord-irc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556161,"owners_count":26006081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T15:43:02.438Z","updated_at":"2025-10-06T04:06:19.830Z","avatar_url":"https://github.com/smashedr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Jenkins Badge: [![Build Status](https://jenkins.cssnr.com/buildStatus/icon?job=CI-smashedr-discord-irc)](https://jenkins.cssnr.com/job/CI-smashedr-discord-irc/)\n\n\u003e Connects [Discord](https://discordapp.com/) and IRC channels by sending messages back and forth.\n\n## Example\n![discord-irc](http://i.imgur.com/oI6iCrf.gif)\n\n## Installation and usage\n**Note**: discord-irc requires Node.js version 6 or newer, as it depends on [discord.js](https://github.com/hydrabolt/discord.js).\n\nEither by installing through npm:\n```bash\n$ npm install -g discord-irc\n$ discord-irc --config /path/to/config.json\n```\n\nor by cloning the repository:\n\n```bash\nIn the repository folder:\n$ npm install\n$ npm run build\n$ npm start -- --config /path/to/config.json # Note the extra double dash\n```\n\nIt can also be used as a module:\n```js\nimport discordIRC from 'discord-irc';\nimport config from './config.json';\ndiscordIRC(config);\n```\n\n## Configuration\nFirst you need to create a Discord bot user, which you can do by following the instructions [here](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-\u0026-getting-a-token).\n\n### Example configuration\n```js\n[\n  // Bot 1 (minimal configuration):\n  {\n    \"nickname\": \"test2\",\n    \"server\": \"irc.testbot.org\",\n    \"discordToken\": \"botwantsin123\",\n    \"channelMapping\": {\n      \"#other-discord\": \"#new-irc-channel\"\n    }\n  },\n\n  // Bot 2 (advanced options):\n  {\n    \"nickname\": \"test\",\n    \"server\": \"irc.bottest.org\",\n    \"discordToken\": \"botwantsin123\",\n    \"autoSendCommands\": [ // Commands that will be sent on connect\n      [\"PRIVMSG\", \"NickServ\", \"IDENTIFY password\"],\n      [\"MODE\", \"test\", \"+x\"],\n      [\"AUTH\", \"test\", \"password\"]\n    ],\n    \"channelMapping\": { // Maps each Discord-channel to an IRC-channel, used to direct messages to the correct place\n      \"#discord\": \"#irc channel-password\" // Add channel keys after the channel name\n    },\n    \"ircOptions\": { // Optional node-irc options\n      \"floodProtection\": false, // On by default\n      \"floodProtectionDelay\": 1000 // 500 by default\n    },\n    \"ircNickColor\": false, // Gives usernames a color in IRC for better readability (on by default)\n    // Makes the bot hide the username prefix for messages that start\n    // with one of these characters (commands):\n    \"commandCharacters\": [\"!\", \".\"]\n  }\n]\n```\n\nThe `ircOptions` object is passed directly to node-irc ([available options](http://node-irc.readthedocs.org/en/latest/API.html#irc.Client)).\n\n## Tests\nRun the tests with:\n```bash\n$ npm test\n```\n\n## Style Guide\ndiscord-irc follows the [Airbnb Style Guide](https://github.com/airbnb/javascript).\n[ESLint](http://eslint.org/) is used to make sure this is followed correctly, which can be run with:\n\n```bash\n$ npm run lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmashedr%2Fdiscord-irc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmashedr%2Fdiscord-irc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmashedr%2Fdiscord-irc/lists"}