{"id":18864779,"url":"https://github.com/hackndo/discord-irc-sync","last_synced_at":"2025-04-14T13:21:39.321Z","repository":{"id":51732403,"uuid":"110694603","full_name":"Hackndo/discord-irc-sync","owner":"Hackndo","description":"Python synchronization between IRC and Discord","archived":false,"fork":false,"pushed_at":"2023-04-13T21:57:02.000Z","size":79,"stargazers_count":17,"open_issues_count":4,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T02:37:48.104Z","etag":null,"topics":["discord","irc","python","synchronization"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hackndo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-11-14T13:36:14.000Z","updated_at":"2025-03-08T08:20:37.000Z","dependencies_parsed_at":"2024-11-08T04:44:08.682Z","dependency_job_id":"32fca584-db6d-422e-a8d7-1f09165a4feb","html_url":"https://github.com/Hackndo/discord-irc-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackndo%2Fdiscord-irc-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackndo%2Fdiscord-irc-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackndo%2Fdiscord-irc-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackndo%2Fdiscord-irc-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hackndo","download_url":"https://codeload.github.com/Hackndo/discord-irc-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886334,"owners_count":21177645,"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","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":["discord","irc","python","synchronization"],"created_at":"2024-11-08T04:44:01.625Z","updated_at":"2025-04-14T13:21:39.283Z","avatar_url":"https://github.com/Hackndo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord-IRC Synchronization\n\nDescription\n-----------\n\n**Python3.5+** implementation of a synchronization between IRC and Discord\n\n![discordirc](https://user-images.githubusercontent.com/11051803/32892891-f7e0b216-cad7-11e7-8938-e23d82ef0c60.gif)\n\n\nRequirements\n------------\n\n* Python 3.5+\n* Discord Bot\n\nDiscord Bot\n-----------\n\n1. Go to [Discord developer application](https://discord.com/developers/applications)\n2. Add a new application\n3. Create a Bot User\n4. Follow https://discordapp.com/oauth2/authorize?\u0026client_id=CLIENT_ID\u0026scope=bot\u0026permissions=0 with your application **Client ID**\n5. Choose your server\n\nThen, enable `Message Content Intent` by navigating to your bot page (https://discord.com/developers/applications then choose your bot), under the bot menu, enable the `Message Content Intent` parameter so the bot can read messages and transfer them to IRC.\n\nInitialization\n--------------\n\n```sh\ngit clone git@github.com:Hackndo/discord-irc-sync.git\ncd discord-irc-sync\nmkvirtualenv discordirc -p $(which python3)\npip install -r requirements.txt\n```\n\nConfiguration\n-------------\n\nCopy configuration template\n\n```sh\ncp config/config.json.dist config/config.json\n```\n\nConfiguration file looks like this\n\n```javascript\n{\n    \"irc\": {\n        \"server\": \"irc.server.com\",                 // IRC Server\n        \"port\": \"6667\",                             // IRC Port\n        \"ssl\": false,                               // Use SSL\n        \"channel\": \"#channel\",                      // IRC Channel\n        \"nickname\": \"h_bot\",                        // Bot Nickname\n        \"owner\": \"username\",                        // Bot Owner Nickname (admin commands)\n        \"cmd_prefix\": \"!\",                          // Channel commands prefix (if any)\n        \"output_msg\": \"\u003c:username:\u003e :message:\",     // Message format when IRC message is received\n        \"output_cmd\": \"CMD by :username:\",          // Message format when IRC command is received\n        \"log_events\": true                          // Send part/join/kick/quit to discord\n    },\n    \"discord\": {\n        \"server\": \u003cserver id\u003e,                      // Discord Server ID\n        \"channel\": \u003cchannel id\u003e,                    // Discord Channel ID\n        \"token\": \"\u003cbot token\u003e\",                     // Discord Bot Token\n        \"owner\": \"username\",                        // Discord Bot Owner username (admin commands)\n        \"cmd_prefix\": \"!\",                          // Channel commands prefix (if any)\n        \"output_msg\": \"\u003c:username:\u003e :message:\",     // Message format when Discord message is received\n        \"output_cmd\": \"CMD by :username:\",          // Message format when Discord command is received\n        \"log_events\": true                          // Send part/join/kick/quit to IRC\n    },\n    \"formatting\": {\n        \"irc_to_discord\": false,                    // Keep bold|underline|italic from IRC to Discord\n        \"discord_to_irc\": true                      // Keep bold|underline|italic from Discord to IRC\n    }\n}\n\n```\n\nUsage\n-----\n\n```\n(discordirc) pixis@kali:~/Tools/discord-irc-sync $ python discord-irc-sync.py \n[IRC] Logged in as:\n[IRC] hacknbot\n[Discord] Logged in as:\n[Discord] irc-sync\n[Discord] \u003cpixis\u003e : Can you hear me IRC Tom? 😃\n[IRC] \u003cpixis\u003e : Yes, I can\n```\n\n\nTODO\n----\n\n- [X] Format message from Discord to IRC\n- [X] Format message from IRC to Discord : Difficult because not everything is possible, especially when formatting is overlapping\n- [ ] Multi channel\n- [ ] Multi server\n- [ ] Dynamically relaod conf when changed\n- [ ] Change conf with IRC or Discord commands\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackndo%2Fdiscord-irc-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackndo%2Fdiscord-irc-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackndo%2Fdiscord-irc-sync/lists"}