{"id":20260710,"url":"https://github.com/gesslar/mud-discord-chat","last_synced_at":"2025-04-11T01:37:15.495Z","repository":{"id":51940103,"uuid":"368556840","full_name":"gesslar/mud-discord-chat","owner":"gesslar","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-22T06:33:09.000Z","size":121,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T22:43:17.355Z","etag":null,"topics":["chat","discord","lpc","mud","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gesslar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-05-18T14:17:26.000Z","updated_at":"2024-11-22T06:33:11.000Z","dependencies_parsed_at":"2024-11-14T11:34:53.372Z","dependency_job_id":null,"html_url":"https://github.com/gesslar/mud-discord-chat","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/gesslar%2Fmud-discord-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesslar%2Fmud-discord-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesslar%2Fmud-discord-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesslar%2Fmud-discord-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gesslar","download_url":"https://codeload.github.com/gesslar/mud-discord-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248326279,"owners_count":21085073,"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":["chat","discord","lpc","mud","nodejs"],"created_at":"2024-11-14T11:21:45.508Z","updated_at":"2025-04-11T01:37:15.475Z","avatar_url":"https://github.com/gesslar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mud-discord-chat\nThis application connects to a socket on a MUD to send/receive data between, allowing for channels to communicate from the MUD to Discord and back.\n\n## Setup\n\n### Step 1\n\n1. Visit the [Developer's portal](https://discordapp.com/developers/applications/) and create a new application. Record the Client ID, you will need it for the next bit\n2. Click Bot on the left\n3. Click Reset Token and record the Token for later use\n4. Under Privileged Gateway Intents, enable `Server Members Intent` and `Mesage Content Intent`\n5. Visit https://discordapp.com/oauth2/authorize?client_id=XXXXXXXXXXXXXXXXXX\u0026scope=bot where XXXXXXXXXXXXXXXXXX is your Client ID from #1 above\n6. Authorize and add your bot to your server\n\n### Step 2\n\nGet the ID for the channel you wish to post to by right-clicking on the channel and clicking Copy ID\n\n![image](https://user-images.githubusercontent.com/1266935/114635703-45329300-9c93-11eb-9da4-f92b05b0fa0e.png)\n\n### Step 3\n\nCreate a `.env` file in the root of the Node.js directory to house the following variables\n```\nDISCORD_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n```\n\nIf you opt into bit.ly integration, you will need to add your token to your `.env` file as well.\n```\nBITLY_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n```\n\n### Step 4\n\nCopy `config.json.example` to `config.json` and modify the values to suit your Discord/MUD.\n\n#### Example\n```json\n{\n    \"mud_name\" : \"ThresholdRPG\",\n    \"mud_ip\" : \"127.0.0.1\",\n    \"mud_port\": 8181,\n    \"channels\" : [\n        { \"discord\" : \"783942759576371200\", \"mud\" : \"trivia\" },\n        { \"discord\" : \"844254742989373450\", \"mud\" : \"heritage\" },\n        { \"discord\" : \"844254814518247444\", \"mud\" : \"question\" }\n    ],\n    \"strip_emoji\" : true,\n    \"enable_bitly\" : false\n}\n```\n\n`channels` is an array of objects with the Discord channel ID and the mud channel name.\n\n`mud-discord-chat` sends and receives a JSON object in the form of:\n```json\n{\n    \"channel\" : \"String\",\n    \"name\" : \"String\",\n    \"message\" : \"String\"\n}\n```\nWhere `channel` is the mud channel name, `name` is the name of the user/player, and `message` is the chat message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesslar%2Fmud-discord-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgesslar%2Fmud-discord-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesslar%2Fmud-discord-chat/lists"}