{"id":17482279,"url":"https://github.com/totigm/discord-bot","last_synced_at":"2026-02-23T01:04:42.524Z","repository":{"id":56859543,"uuid":"525856204","full_name":"totigm/discord-bot","owner":"totigm","description":"This is a library to create Discord bots. It handles all the commands stuff behind the scenes, so you can focus on your bot's logic.","archived":false,"fork":false,"pushed_at":"2024-01-14T11:59:09.000Z","size":216,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T02:56:30.804Z","etag":null,"topics":["bot","bot-builder","botbuilder","bots","discord","discord-bot","discord-js","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/totigm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-17T15:38:22.000Z","updated_at":"2025-08-27T12:31:45.000Z","dependencies_parsed_at":"2025-04-22T14:09:45.884Z","dependency_job_id":"8860c170-d925-4fc6-8fb7-67435e571b57","html_url":"https://github.com/totigm/discord-bot","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"totigm/ts-package-template","purl":"pkg:github/totigm/discord-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totigm%2Fdiscord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totigm%2Fdiscord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totigm%2Fdiscord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totigm%2Fdiscord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totigm","download_url":"https://codeload.github.com/totigm/discord-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totigm%2Fdiscord-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29734133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bot","bot-builder","botbuilder","bots","discord","discord-bot","discord-js","typescript"],"created_at":"2024-10-18T23:05:16.749Z","updated_at":"2026-02-23T01:04:42.501Z","avatar_url":"https://github.com/totigm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to \u003cb\u003e@totigm/discord-bot\u003c/b\u003e 👋\u003c/h1\u003e\r\n\r\n\u003cp\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/@totigm/discord-bot\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"NPM version\" src=\"https://img.shields.io/npm/v/@totigm/discord-bot\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/totigm/discord-bot\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"GitHub repo\" src=\"https://img.shields.io/badge/GitHub-@totigm/discord--bot-green?style=flat\u0026logo=github\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/@totigm/discord-bot\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"Downloads\" src=\"https://img.shields.io/npm/dt/@totigm/discord-bot\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/totigm/discord-bot/actions/workflows/main.yml\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"CI\" src=\"https://github.com/totigm/discord-bot/actions/workflows/main.yml/badge.svg\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/totigm/discord-bot/stargazers\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"GitHub repo stars\" src=\"https://img.shields.io/github/stars/totigm/discord-bot?style=flat\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/totigm/discord-bot#readme\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/totigm/discord-bot/blob/main/LICENSE\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/totigm/discord-bot\" /\u003e\r\n  \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n## 📄 Introduction\r\n\r\nThis is a library to create Discord bots. It is a Discord implementation of the [@totigm/bot-builder](https://www.npmjs.com/package/@totigm/bot-builder) package, which handles all the commands stuff behind the scenes, so you can focus on your bot's logic.\r\n\r\n\u003e The [discord.js v12](https://v12.discordjs.guide) library is being used.\r\n\r\n## 🔗 Quick links\r\n\r\n- [Reference documentation](./docs/reference.md)\r\n- [Options](#⚙️-options)\r\n- [Set up a discord bot](https://v12.discordjs.guide/preparations/setting-up-a-bot-application.html)\r\n- [Discord.js v12 docs](https://v12.discordjs.guide)\r\n- [Bot builder](https://www.npmjs.com/package/@totigm/bot-builder)\r\n- [WhatsApp bot](https://www.npmjs.com/package/@totigm/whatsapp-bot)\r\n- [GitHub](https://github.com/totigm/discord-bot#readme)\r\n- [NPM](https://www.npmjs.com/package/@totigm/discord-bot)\r\n\r\n## 💻 Installation\r\n\r\n```sh\r\nnpm i @totigm/discord-bot\r\n```\r\n\r\nor\r\n\r\n```sh\r\nyarn add @totigm/discord-bot\r\n```\r\n\r\n## 🚀 Getting started\r\n\r\nCheck [this tutorial](https://v12.discordjs.guide/preparations/setting-up-a-bot-application.html) on how to create a discord bot.\r\n\r\nStart adding commands to your bot by checking the [reference documentation](./docs/reference.md).\r\n\r\n## 🤖 Example usage\r\n\r\n```ts\r\nimport DiscordBot from \"@totigm/discord-bot\";\r\n\r\nconst bot = new DiscordBot(\"YOUR_DISCORD_BOT_TOKEN\");\r\n\r\nbot.addCommand(\"hey\", (message) =\u003e `Hey ${message.author.username}! How are you doing?`, {\r\n    description: \"Say hey\",\r\n    explanation: \"The bot will say hey to the user using their Discord's name\",\r\n    example: {\r\n        output: \"Hey Toti! How are you doing?\",\r\n    },\r\n});\r\n```\r\n\r\nThe previous code will create a bot that works like this:\r\n\r\n![bot conversation](https://user-images.githubusercontent.com/64804554/185551989-2beacc0e-8026-47fa-8f12-2820ef412a86.png)\r\n\r\n## ⚙️ Options\r\n\r\nWhen you create a bot, you can pass an options object to customize it. Check its [options](./docs/options.md) documentation for more information.\r\n\r\n```ts\r\nconst options = { ... };\r\n\r\nconst bot = new DiscordBot(\"YOUR_BOTS_TOKEN\", options);\r\n```\r\n\r\n## 👤 Author\r\n\r\n\u003ca href=\"https://github.com/totigm\" target=\"_blank\"\u003e\r\n  \u003cimg alt=\"GitHub: totigm\" src=\"https://img.shields.io/github/followers/totigm?label=Follow @totigm\u0026style=social\"\u003e\r\n\u003c/a\u003e\r\n\u003cbr\u003e\r\n\u003ca href=\"https://twitter.com/totigm8\" target=\"_blank\"\u003e\r\n  \u003cimg alt=\"Twitter: totigm8\" src=\"https://img.shields.io/twitter/follow/totigm8?style=social\" /\u003e\r\n\u003c/a\u003e\r\n\u003cbr\u003e\r\n\u003ca href=\"https://linkedin.com/in/totigm\" target=\"_blank\"\u003e\r\n  \u003cimg alt=\"LinkedIn: totigm\" src=\"https://img.shields.io/badge/LinkedIn-@totigm-green?style=social\u0026logo=linkedin\" /\u003e\r\n\u003c/a\u003e\r\n\u003cbr\u003e\r\n\u003ca href=\"https://www.npmjs.com/~totigm\" target=\"_blank\"\u003e\r\n  \u003cimg alt=\"NPM: totigm\" src=\"https://img.shields.io/badge/NPM-@totigm-green?style=social\u0026logo=npm\" /\u003e\r\n\u003c/a\u003e\r\n\r\n## 🤝 Contributing\r\n\r\nContributions are more than welcome!\r\n\r\nWe think that you might have great ideas to make this project even better. If you do, please create a pull request and/or issue following the [contribution guidelines](./docs/CONTRIBUTING.md).\r\n\r\n## ⭐️ Show your support\r\n\r\nGive a ⭐️ if this project helped you!\r\n\r\n## 📝 License\r\n\r\nCopyright © 2022 [Toti Muñoz](https://github.com/totigm).\u003cbr /\u003e\r\nThis project is [MIT](https://github.com/totigm/discord-bot/blob/master/LICENSE) licensed.\r\n\r\n---\r\n\r\nThis project was made with ❤ and TypeScript\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotigm%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotigm%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotigm%2Fdiscord-bot/lists"}