{"id":20246552,"url":"https://github.com/fabiosmuu/base-discordbot","last_synced_at":"2025-04-10T21:14:10.257Z","repository":{"id":197344709,"uuid":"254002149","full_name":"FabioSmuu/Base-DiscordBot","owner":"FabioSmuu","description":"Esta é a minha handler para criar bot de disord.","archived":false,"fork":false,"pushed_at":"2024-09-05T04:12:05.000Z","size":63,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T21:14:04.672Z","etag":null,"topics":["basebot","bot","bot-discord","botdiscord","chatbot","discord","discord-bot","discordbot","discordjs"],"latest_commit_sha":null,"homepage":"","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/FabioSmuu.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}},"created_at":"2020-04-08T06:17:41.000Z","updated_at":"2024-11-09T09:38:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bcce339-331c-42bf-a388-01595bc58a0e","html_url":"https://github.com/FabioSmuu/Base-DiscordBot","commit_stats":null,"previous_names":["fabiosmuu/base-discordbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabioSmuu%2FBase-DiscordBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabioSmuu%2FBase-DiscordBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabioSmuu%2FBase-DiscordBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabioSmuu%2FBase-DiscordBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FabioSmuu","download_url":"https://codeload.github.com/FabioSmuu/Base-DiscordBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298312,"owners_count":21080320,"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":["basebot","bot","bot-discord","botdiscord","chatbot","discord","discord-bot","discordbot","discordjs"],"created_at":"2024-11-14T09:30:15.346Z","updated_at":"2025-04-10T21:14:10.215Z","avatar_url":"https://github.com/FabioSmuu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Repositorio de arquivos de BOT usando a API [discord.js](https://discord.js.org/#/docs/main/stable/general/welcome).\n\n\n### Informaões:\n- Possui uma [.env](https://github.com/FabioSmuu/.env) própria\n- Leitura de configuraçoes em [config.json](/handler/config.json)\n- Listagem e criação de [comandos](/handler/comandos/Exemplo/comando.js) de forma independente.\n- Listagem de [eventos](/handler/eventos/ready.js), tambem independentes.\n\n\n\n| Dependencia | Como Instalar |\n| - | - |\n| discord.js | npm i discord.js@11.5.1\n\n### Como criar um comando:\nSeguindo o exemplo do arquivo [comando.js](/handler/comandos/Exemplo/comando.js) podemos ver como um comando é criado.\n\n```js\nmodule.exports.info = {\n    cmd: ['exemplo', 'e'], //Irá funcionar usando prefixo + nome  (!exemplo ou !e)\n    roles: ['perm-bot', 'exemplo1', 'exemplo2'],\n    users: ['Fabio', 'Smuu'],\n    deleted: true,\n    dm: false\n}\n\nmodule.exports.comando = async (client, msg, args) =\u003e {\n    //Aqui é onde ocorre a magica, pois, tudo o que for criado neste bloco será executado ao chamar o comando.\n}\n```\n\nComo esta descrito no exemplo acima, temos de configurar as roles e os users que poderam executar o comando.\n\nEstes valores são configurados na [config.json](/handler/config.json).\n\n**Obrigado pela sua atenção!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiosmuu%2Fbase-discordbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiosmuu%2Fbase-discordbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiosmuu%2Fbase-discordbot/lists"}