{"id":21017493,"url":"https://github.com/rootz491/rootz491-bot","last_synced_at":"2026-04-29T07:33:40.894Z","repository":{"id":119739487,"uuid":"445101751","full_name":"rootz491/rootz491-bot","owner":"rootz491","description":"my bot for discod","archived":false,"fork":false,"pushed_at":"2022-12-15T22:34:00.000Z","size":412,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-31T12:23:37.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/rootz491.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-06T08:49:27.000Z","updated_at":"2023-04-11T15:43:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4d4f38c-716b-4a0a-8289-0c5cf7598c59","html_url":"https://github.com/rootz491/rootz491-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rootz491/rootz491-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootz491%2Frootz491-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootz491%2Frootz491-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootz491%2Frootz491-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootz491%2Frootz491-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootz491","download_url":"https://codeload.github.com/rootz491/rootz491-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootz491%2Frootz491-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-19T10:19:37.629Z","updated_at":"2026-04-29T07:33:40.889Z","avatar_url":"https://github.com/rootz491.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord bot\n\nstart creating a discord bot\n\n* create a client \u0026 login to discord with token\n* register commands (read [deploy-commands.js](./deploy-commands.js) file)\n* come back to `app.js` and add a listener for these commands.\n```js\nclient.on('interactionCreate', async interaction =\u003e {\n    // send back reply or something.\n});\n```\nHere `interaction` is like a request from discord by bot when user interacts with it (runs a command).\n\n\u003e  more info on guild object [here](https://discord.js.org/#/docs/main/stable/class/Guild)\n\n---\n\n*   when user interacts with bot or something, discord emits an event.\n    these events are handled by our application.\n\n    as there can be many events, we will handle them in seperate file.\n\n    it's similar to command handling.\n\n*   File [deploy-commands.js](./deploy-commands.js) register commands using it to the discord server.\n    \n*   File [register-commands.js](./tools/register-commands.js) will add commands of `commands` folder to the bot (client) as a collection.\n\n\n\n---\n\n## useful\n\n* list of all discord.js events [gist](https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584)\n\n* mongodb to bot [tutorial](https://www.youtube.com/watch?v=a3Gz_7KEJkQ)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootz491%2Frootz491-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootz491%2Frootz491-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootz491%2Frootz491-bot/lists"}