{"id":21418470,"url":"https://github.com/bsovs/build-a-bot","last_synced_at":"2026-04-19T03:31:23.130Z","repository":{"id":56425696,"uuid":"310963742","full_name":"bsovs/build-a-bot","owner":"bsovs","description":"Build-A-Bot is a Discord Bot starter using nodejs","archived":false,"fork":false,"pushed_at":"2020-11-09T02:10:04.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T09:02:38.496Z","etag":null,"topics":["discord","discord-bot","discord-js","discordjs","javascript","node","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bsovs.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}},"created_at":"2020-11-08T01:28:12.000Z","updated_at":"2023-06-02T04:07:45.000Z","dependencies_parsed_at":"2022-08-15T18:30:52.651Z","dependency_job_id":null,"html_url":"https://github.com/bsovs/build-a-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bsovs/build-a-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsovs%2Fbuild-a-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsovs%2Fbuild-a-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsovs%2Fbuild-a-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsovs%2Fbuild-a-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsovs","download_url":"https://codeload.github.com/bsovs/build-a-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsovs%2Fbuild-a-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["discord","discord-bot","discord-js","discordjs","javascript","node","nodejs"],"created_at":"2024-11-22T19:21:33.400Z","updated_at":"2026-04-19T03:31:23.111Z","avatar_url":"https://github.com/bsovs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build-A-Bot\n*Starter kit to build a Discord Server Bot*\n\n### Getting Started\n\nBuild-a-Bot requires [Node.js](https://nodejs.org/) v10+ to run.\nInstall the dependencies and devDependencies and start the server.\n\n```sh\n$ git clone https://github.com/bsovs/build-a-bot.git\n$ cd build-a-bot\n$ npm i\n$ node server.js\n```\n### Launching Bot\n```sh\n$ node server\n```\n\n### Creating a new command\nRun to create a new bot command (creates cmd, flag, and test files)\n```sh\n$ npm run new\n```\n\n### Testing\nRun mocha tests in intellij or by running the following test command\n```sh\n$ npm run test\n```\n\n### [Documentation - *wip*](https://github.com/bsovs/build-a-bot/tree/master/src#docs---wip)\n\n# Full Guide\n### Step 1\n\u003e Create a new application at: \\\n\u003e https://discord.com/developers/applications \\\n\u003e [![N|Solid](https://cdn.discordapp.com/attachments/766804341439856673/774813483488641074/unknown.png)](https://discord.com/developers/applications)\n### Step 2\n\u003e Add a bot to your new app \\\n\u003e ![N|Solid](https://cdn.discordapp.com/attachments/766804341439856673/774814312781840394/unknown.png)\n### Step 3\n\u003e Copy your bot token (should be in the General tab) and head over to \\\n\u003e https://discord.com/oauth2/authorize?scope=bot\u0026client_id=YOUR_CLIENT_ID \\\n\u003e ![N|Solid](https://cdn.discordapp.com/attachments/766804341439856673/774815879317159956/unknown.png) \\\n\u003e Should look something like this\\\n\u003e ![N|Solid](https://cdn.discordapp.com/attachments/766804341439856673/774815592581431357/unknown.png) \\\n\u003e Add your bot to your server\n### Step 4\n\u003e Copy over your bot token to the config.json file \\\n\u003e ![N|Solid](https://cdn.discordapp.com/attachments/766804341439856673/774814817156071434/unknown.png) \\\n\u003e ![N|Solid](https://cdn.discordapp.com/attachments/766804341439856673/774816681242525776/unknown.png) \\\n\u003e `./config.json`\n### Step 5\n\u003e Test it out!  \\\n\u003e Launch using ```node server``` in command promt, then send `!ping` in discord \\\n\u003e ![N|Solid](https://cdn.discordapp.com/attachments/766804341439856673/774818702004322304/unknown.png) \\\n\u003e *Note: if you have node yet installed depandancies do so now using the following commands,\n```sh\n$ npm i\n$ node server.js\n```\n### Step 6\n\u003e Customise a new command.  \\\n\u003e Use ``` npm run new ``` to create a new command. \\\n\u003e Open up your new command *(found in ./src/bot/commands/)* \\\n\u003e Once your command is registered you can refresh it by sending ```!refresh *your command*``` to discord.\n### Hosting on Heroku\n\u003e In order to keep your bot running all the time we suggest using Heroku hosting solutions. \\\n\u003e Head over to https://devcenter.heroku.com/articles/git and learn about how to deploy nodejs apps to Heroku \\\n\u003e Add your config variables from ` config.json ` to your apps environment variables. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsovs%2Fbuild-a-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsovs%2Fbuild-a-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsovs%2Fbuild-a-bot/lists"}