{"id":19676547,"url":"https://github.com/degabrielofi/botdiscord","last_synced_at":"2026-05-15T09:12:59.737Z","repository":{"id":111972914,"uuid":"492311850","full_name":"degabrielofi/BOTDiscord","owner":"degabrielofi","description":"Uma aplicação usando a Discord.js, para criar um bot para o Discord com alguns comandos úteis.","archived":false,"fork":false,"pushed_at":"2024-06-10T20:35:29.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T04:34:10.034Z","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/degabrielofi.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}},"created_at":"2022-05-14T19:51:40.000Z","updated_at":"2024-06-10T20:35:32.000Z","dependencies_parsed_at":"2024-11-11T17:33:02.738Z","dependency_job_id":"511b5e33-705c-40a7-baf1-412a7ec07bff","html_url":"https://github.com/degabrielofi/BOTDiscord","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degabrielofi%2FBOTDiscord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degabrielofi%2FBOTDiscord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degabrielofi%2FBOTDiscord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/degabrielofi%2FBOTDiscord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/degabrielofi","download_url":"https://codeload.github.com/degabrielofi/BOTDiscord/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240985915,"owners_count":19889178,"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":[],"created_at":"2024-11-11T17:29:12.653Z","updated_at":"2026-05-15T09:12:59.672Z","avatar_url":"https://github.com/degabrielofi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://discord.js.org\"\u003e\u003cimg src=\"https://discord.js.org/static/logo.svg\" width=\"546\" alt=\"discord.js\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n  \u003cbr /\u003e\n  \u003cp\u003e\n    \u003cimg alt=\"Github Top Language\" src=\"https://img.shields.io/github/languages/top/degabrielofi/BOTDiscord?color=6563ac\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/discord.js\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/discord.js.svg?maxAge=3600\" alt=\"npm version\" /\u003e\u003c/a\u003e\n    \u003cimg alt=\"Github Language Count\" src=\"https://img.shields.io/github/languages/count/degabrielofi/BOTDiscord?color=6563ac\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/discord.js\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/discord.js.svg?maxAge=3600\" alt=\"npm downloads\" /\u003e\u003c/a\u003e\n    \u003cimg alt=\"Repository Size\" src=\"https://img.shields.io/github/repo-size/degabrielofi/BOTDiscord?color=6563ac\"\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n\u003ch3 align=\"center\"\u003eEsté é um projeto ainda em desenvolvimento!\u003c/h3\u003e \u003cbr\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://i.imgur.com/P4me3Tn.png\"/\u003e\n\u003c/div\u003e\n\n# :clipboard: Sobre o projeto\n\nO Projeto consiste em um simples BOT no qual você manda uma tecnologia desejada no chat é ele responderá com a sua documentação necessária para você iniciar os seus estudos e se aprofundar na linguagem! 📚\u003cbr\u003e\n\nO Projeto também contém  alguns comandos como o de \"ping\" no qual ele mostrá qual é o ping do BOT atualmente. É outros que podem ser criados e adicionandos dentro da pasta `commands`.\n\n## Configurando o ambiente de desenvolvimento\n\nEstou utilizando a versão 16.13.2 do Node.js\n1. `npm install discord.js`\n\n## Criando o token do bot para interação com a API do Discord\n\n1. [Developers Potal](https://discord.com/developers/docs/intro).\n2. Clicar em `Applications` e criar uma nova, completando com a imagem, nome, descrição e tags que quiser.\n3. Vai na aba de `Bot` e crie um novo, também com a personalização que desejar.\n4. Copie o token do bot e cole no código.\n5. Crie as [permissões necessárias](https://discordapi.com/permissions.html) para esse bot interagir no seu servidor (recomendo usar um servidor teste). Ele pedirá um ID, que você encontra na primeira página de `Application`.\n\n## config.json\n\nPara que o seu bot ligue você irá precisar criar um arquivo no qual chamamos de `config.json` lá você colocará o token no qual conseguiu no passo a passo acima. É também definirá o prefixo desejavél no seu BOT siga o exemplo abaixo e configure o seu `config.json`.\n```bash\n{\n  \"token\": \"OKjusdaopwyPJKYT.YSOZ5SJK.zpLosjapdu8jksgaytLO-bE\", // Coloque o Token dentro das aspas e apague o que está escrito aqui!!\n  \"prefix\": \"!\" // Coloque o Prefixo desejável dentro das aspas e apague o está escrito aqui depois!!\n}\n```\n\n## Exemplo de uso:\n\nInstale todas as dependências necessárias:\n\n```sh-session\nnpm install discord.js\n```\n\nExemplo do arquivo principal e limpo no qual você pode adionar outros comandos.\n\n```js\nconst Discord = require(\"discord.js\"); \nconst client = new Discord.Client({intents: 32767})\nconst config = require(\"./config.json\");\n\nclient.once('ready', async () =\u003e {\n    console.log(\"Estou pronto(a) para ser utilizado(a)!\")\n}) \n\nclient.on('messageCreate', message =\u003e {\n     if (message.author.bot) return;\n     if (message.channel.type == 'dm') return;\n     if (!message.content.toLowerCase().startsWith(config.prefix.toLowerCase())) return;\n     if (message.content.startsWith(`\u003c@!${client.user.id}\u003e`) || message.content.startsWith(`\u003c@${client.user.id}\u003e`)) return;\n\n    const args = message.content\n        .trim().slice(config.prefix.length)\n        .split(/ +/g);\n    const command = args.shift().toLowerCase();\n    try {\n        const commandFile = require(`./commands/${command}.js`)\n        commandFile.run(client, message, args);\n    } catch (err) {\n      \n  let degabrielofierr = new Discord.MessageEmbed()\n\n  .setDescription(`\\ ❌ **| Este comando não existe!**`)\n  .setFooter(`Requisitado por: ${message.author.tag}`)\n  .setColor(\"RED\")\n\n  message.reply({content: `${message.author}`,  embeds: [degabrielofierr]})  \n}\n});\n\nclient.login('token');\n```\n\nDepois dos passos anteriores rode o projeto com o seguinte comando.\n\n```sh-session\nnode .\n```\n\n## Links\n\n- [Website](https://discord.js.org/) ([source](https://github.com/discordjs/website))\n- [Documentation](https://discord.js.org/#/docs)\n- [GitHub](https://github.com/debrielofi/BOTDiscord.js)\n- [npm](https://www.npmjs.com/package/discord.js)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegabrielofi%2Fbotdiscord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdegabrielofi%2Fbotdiscord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegabrielofi%2Fbotdiscord/lists"}