{"id":15287536,"url":"https://github.com/definitive-networks/discord-bot","last_synced_at":"2025-10-07T01:31:37.906Z","repository":{"id":40702484,"uuid":"385037637","full_name":"definitive-networks/discord-bot","owner":"definitive-networks","description":"A simple and flexible bot framework using Discord.js v13","archived":true,"fork":false,"pushed_at":"2023-03-06T06:31:17.000Z","size":609,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-02-18T18:20:40.823Z","etag":null,"topics":["discord","discord-bot","discordjs","framework","nodejs"],"latest_commit_sha":null,"homepage":"https://github.com/definitive-networks/discord-bot/wiki","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/definitive-networks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://definitivenetworksgmod.com/donate/"}},"created_at":"2021-07-11T19:38:33.000Z","updated_at":"2023-12-01T01:24:12.000Z","dependencies_parsed_at":"2023-02-06T19:12:07.348Z","dependency_job_id":null,"html_url":"https://github.com/definitive-networks/discord-bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/definitive-networks%2Fdiscord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/definitive-networks%2Fdiscord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/definitive-networks%2Fdiscord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/definitive-networks%2Fdiscord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/definitive-networks","download_url":"https://codeload.github.com/definitive-networks/discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877414,"owners_count":16554878,"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","discord-bot","discordjs","framework","nodejs"],"created_at":"2024-09-30T15:29:55.684Z","updated_at":"2025-10-07T01:31:32.588Z","avatar_url":"https://github.com/definitive-networks.png","language":"JavaScript","funding_links":["https://definitivenetworksgmod.com/donate/"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/definitive-networks/discord-bot\" target=\"_blank\"\u003e\n    \u003cstrong\u003eDiscord Bot\u003c/strong\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cem\u003eDiscord.js · Quick.db\u003c/em\u003e\u003c/p\u003e\n\n---\n\n## About\nDiscord Bot isn't a bot, but a simple and flexible framework using [discord.js](https://github.com/discordjs/discord.js), so that you can get your own bot up and running quick.\n  - [Quick.db](https://quickdb.js.org/) integrated for easy access to persistent storage (also used for Slash Commands)\n  - Command aliases and permissions\n  - `interactionButton` and `interactionSelect` events\n  - No forced features\n\n## Installation\nEnsure you have [Node.js](https://nodejs.org/) 14.0.0 or higher installed, then run:\n\n```sh-session\nnpm install discord.js@dev quick.db @definitive-networks/discord-bot\n```\n\n## Example Usage\n\n```js\n// ./index.js\nconst path = require('path');\nconst DiscordBot = require('@definitive-networks/discord-bot');\n\nconst client = new DiscordBot({\n  botDir: path.resolve(__dirname),\n  defaultPrefix: '?',\n  intents: ['GUILDS', 'GUILD_MESSAGES']\n});\n\nclient.start(/*DISCORD BOT TOKEN*/);\n```\n\n##### Command Example\n```js\n// ./commands/ping.js\nmodule.exports = {\n  name: 'ping',\n  description: 'Ping the bot',\n  aliases: ['ms'],\n  execute(message, args, client) {\n    message.channel.send(`Pong! \\`${Date.now() - message.createdTimestamp}ms\\``);\n  },\n  SlashCommand: {\n    execute(interaction, args, client) {\n      interaction.reply(`Pong! \\`${Date.now() - interaction.createdTimestamp}ms\\``);\n    }\n  }\n}\n```\n\n##### Event Example\n```js\n// ./events/ready.js\nmodule.exports = {\n  name: 'ready',\n  once: true,\n  execute(client) {\n    console.log(`Logged in as: ${client.user.tag}`);\n  }\n}\n```\n\n## Documentation\nCheck out the [wiki](https://github.com/definitive-networks/discord-bot/wiki) for more examples and documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefinitive-networks%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefinitive-networks%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefinitive-networks%2Fdiscord-bot/lists"}