{"id":20976081,"url":"https://github.com/nokka/d2-chatbot","last_synced_at":"2026-04-27T13:35:34.436Z","repository":{"id":198820836,"uuid":"285762409","full_name":"nokka/d2-chatbot","owner":"nokka","description":"D2 Chatbot provides a global chat for any Diablo 2 server running on PvpGN and provides in game community chat channels.","archived":false,"fork":false,"pushed_at":"2022-07-14T10:04:34.000Z","size":106,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T05:49:25.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nokka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-08-07T07:05:53.000Z","updated_at":"2024-02-13T05:12:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"b072cc47-d441-484c-8ef4-52220298b8d4","html_url":"https://github.com/nokka/d2-chatbot","commit_stats":null,"previous_names":["nokka/d2-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokka%2Fd2-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokka%2Fd2-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokka%2Fd2-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokka%2Fd2-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nokka","download_url":"https://codeload.github.com/nokka/d2-chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243374370,"owners_count":20280667,"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":[],"created_at":"2024-11-19T04:49:45.904Z","updated_at":"2025-12-28T13:53:29.221Z","avatar_url":"https://github.com/nokka.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D2-Chatbot\nD2 Chatbot provides a global chat for any Diablo 2 server running on PvpGN and provides in game community chat channels.\nWriting messages in game to players is done by using [nokka/d2client](https://github.com/nokka/d2client).\n\n--- \n\n# Environment variables\n| Name           \t| Default        \t| Description                                                            \t|\n|----------------\t|----------------\t|------------------------------------------------------------------------\t|\n| SERVER_ADDRESS \t|                \t| Address to the Diablo II server                                        \t|\n| MYSQL_HOST     \t| 127.0.0.1:3306 \t| Database URL                                                           \t|\n| MYSQL_USER     \t| chat_user      \t| Database user used to perform operations on the database               \t|\n| MYSQL_PASSWORD \t|                \t|                                                                        \t|\n| CHAT_USERNAME  \t| chat           \t| Bot account for the chat bot (needs to exist on the Diablo II server)  \t|\n| TRADE_USERNAME \t| trade          \t| Bot account for the trade bot (needs to exist on the Diablo II server) \t|\n| HC_USERNAME    \t| hc             \t| Bot account for the hc bot (needs to exist on the Diablo II server)    \t|\n| CHAT_PASSWORD  \t|                \t|                                                                        \t|\n| TRADE_PASSWORD \t|                \t|                                                                        \t|\n| HC_PASSWORD    \t|                \t|                                                                        \t|\n| BNETD_LOG      \t|                \t| Path on disk to the bnetd.log used to parse states of account          \t|\n\n--- \n\n## Available channels\nThis package was built specifically to run on the Diablo II private server [Slashdiablo](https://slashdiablo.net) and the\navailable channels that are used there.\n\n### Chat\nThis is the primary chat channel used for everyone, but mainly used by Softcore players on Slashdiablo.\n\n### HC\nThis is the primary channel for Hardcore players.\n\n### Trade\nThis channel is used to trade mostly on Softcore.\n\n---\n\n## In game commands\nThe in game commands are used by players to use the global chat, they can subscribe, unsubscribe and chat.\nThere are also commands used only by moderators to ban players.\n\n### Subscribe to a channel\n\n```bash\n# Subscribe to chat\n//sub chat\n\n# Subscribe to trade\n//sub trade\n\n# Subscribe to hc\n//sub hc\n```\n\n### Unsubscribe to a channel\n\n```bash\n# Subscribe to chat\n//unsub chat\n\n# Subscribe to trade\n//unsub trade\n\n# Subscribe to hc\n//unsub hc\n```\n\n### Chat on channel\n\n```bash\n# Chat on chat channel\n//chat Hello team\n\n# Chat on hc channel\n//hc Hello team\n\n# Chat on the trade channel\n//trade team\n```\n\n---\n\n## Package dependency graph\n![Package dependency graph](docs/deps.png)\n\n### How to generate the graph\n[godephgraph](https://github.com/kisielk/godepgraph) is used to generate the dependency graph.\n\n```bash\n$ godepgraph -nostdlib -novendor -horizontal -onlyprefixes=github.com/nokka/d2-chatbot github.com/nokka/d2-chatbot/cmd/server | dot -Tpng -o docs/deps.png\n```\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnokka%2Fd2-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnokka%2Fd2-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnokka%2Fd2-chatbot/lists"}