{"id":23997556,"url":"https://github.com/colinwilliams91/discord-bot","last_synced_at":"2026-05-06T01:32:47.544Z","repository":{"id":178150431,"uuid":"661396241","full_name":"colinwilliams91/discord-bot","owner":"colinwilliams91","description":"Discord Bot Boilerplate | Bootstrap | Template","archived":false,"fork":false,"pushed_at":"2023-07-12T22:02:52.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T22:46:32.975Z","etag":null,"topics":["api","bot","discord","discord-bot","discord-js","integration","webhook"],"latest_commit_sha":null,"homepage":"","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/colinwilliams91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-07-02T17:58:07.000Z","updated_at":"2024-06-13T02:20:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"642c6d9e-1e2a-4910-8990-0cca058e444c","html_url":"https://github.com/colinwilliams91/discord-bot","commit_stats":null,"previous_names":["colinwilliams91/discord-bot"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinwilliams91%2Fdiscord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinwilliams91%2Fdiscord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinwilliams91%2Fdiscord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinwilliams91%2Fdiscord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colinwilliams91","download_url":"https://codeload.github.com/colinwilliams91/discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240629378,"owners_count":19831833,"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":["api","bot","discord","discord-bot","discord-js","integration","webhook"],"created_at":"2025-01-07T22:46:23.717Z","updated_at":"2026-05-06T01:32:47.516Z","avatar_url":"https://github.com/colinwilliams91.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Bot/Integration Template\n\n### Description:\nThis repo is a Discord Bot Bootstrap with all the necessary setup configured. Just plug in your [variables](./example.env)\nand start building event listeners/handlers in the [index.js](./src/index.js)\nthe [setup](https://github.com/colinwilliams91/discord-bot#setup) below walks through the Discord-side integration steps.\n\n### [API](https://old.discordjs.dev/#/docs/discord.js/main/general/welcome)\n\n### Spin-up\n\n_if you have nodemon installed globally_\n```bash\nnpm i\nnodemon\n```\n\n### Setup:\n\n[Discord Docs Home/Guide/API](https://discord.js.org/)\n\n- visit the **[Discord Developer Portal](https://discord.com/developers/applications)**\n- click **\"New Application\"** to create the bot/integration container\n  - name the Application and agree to ToS\n- configure **\"General Information\"** if needed\n- click **\"Bot\"** in left-side panel\n  - toggle `PUBLIC BOT` on `||` off\n  - toggle on all **3** \"Priveleged Gateway Intents\"\n  - select **\"Bot Permissions\"** as needed\n  - make sure to click \"SAVE\" to changes in pop-up\n- click **\"OAuth2\"** in left-side panel\n  - click **\"URL Generator\"**\n    - select **\"bot\"** for bot scopes and permissions\n    - select **\"applications.commands\"** for `/` commands permissions if needed (to interact with bot in Discord)\n  - this will open the `BOT PERMISSIONS` section\n    - select **\"Administrator\"** for all permissions `||` specify permissions here\n  - click **\"Copy\"** button in lower-right to copy `GENERATED URL`\n- paste copied **URL** into Discord Server's channel `||` in the web browser\n- click pasted **URL** to invite Bot to Discord Server\n\n### Environment:\n- rename `example.env` to `.env`\n- replace `TOKEN=` value with the Token from the Bot you want to build in your [Application Container](https://discord.com/developers/applications)\n  - it will be located in the \"Bot\" section in the left-side panel\n\n### Notes:\n\n`src/index.js`\n```js\nimport { Client, IntentsBitField } from \"discord.js\";\n```\n\n- this will import the Client from discord library and IntentsBitsField...\n- see [DOCS](https://github.com/colinwilliams91/discord-bot#docs): section for how Intents work\n\n### [DOCS](https://old.discordjs.dev/#/docs/discord.js/main/general/welcome):\n\n##### [List of Intents](https://discord.com/developers/docs/topics/gateway#list-of-intents)\n\nWe must explicitly define \"Intents\" in the options object to our Client generator function.\nEach \"Intent\" (e.g.; Guilds) will give access to a list of events (see documentation)\nthat our bot will gain access to by passing in. (SO OUR BOT WILL KNOW WHEN THESE EVENTS OCCUR)\n\n### IMPORTANT:\n\n_A \"GUILD\" in Discord Development represents a SERVER_\n\n```js\nconst client = new Client({\n  intents: [\n    /* IntentsBitField.Flags.Guilds, */\n    /* intents here... */\n  ],\n});\n```\n### If you wish to start from scratch:\n\n```bash\nnpm init -y\n# --\u003e inside package.json: \"main\": \"src/index.js\"\nmkdir src\ncd src\ntouch index.js\ncd ..\nnpm i discord.js dotenv\n```\n\n# TERMS OF USE\n_By using this repository in anyway you are agreeing to follow the Code of Conduct listed [here](https://github.com/colinwilliams91/discord-bot/blob/main/CODE_OF_CONDUCT.md)_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinwilliams91%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinwilliams91%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinwilliams91%2Fdiscord-bot/lists"}