Repository: User9684/stupid-discord-badge Branch: master Commit: dc0290537c67 Files: 6 Total size: 5.0 KB Directory structure: gitextract_mlks24_y/ ├── .github/ │ └── dependabot.yml ├── .gitignore ├── faq.md ├── index.js ├── package.json └── readme.md ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/dependabot.yml ================================================ # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates version: 2 updates: - package-ecosystem: "npm" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "daily" ================================================ FILE: .gitignore ================================================ /node_modules /package-lock.json ================================================ FILE: faq.md ================================================ # Frequently asked questions! - **Q:** Why do you hate Discord? - It's a joke. - **Q:** How do I run the bot 24/7? - It's not suggested to do this, but remove the `process.exit(0)` inside of `index.js` and the bot will not shut itself down. - **Q:** Why did you make this? Now a bunch of people who don't even know how to code have the badge! - The real question is, why do you care about who has a stupid SVG on their profile? - **Q:** Won't this help scam people? - Not entirely, the goal of this repo is to allow every single Discord user and their mother to get the badge, so that it is seen as useless. ================================================ FILE: index.js ================================================ const { CommandClient } = require('eris') // Stupid ass bot creation async function init(token) { const stupidAssBot = new CommandClient(`Bot ${token}`, { intents: ['guilds'], maxShards: 'auto',restMode: true }) // Register the stupid ass command stupidAssBot.on('ready', async () => { await stupidAssBot.bulkEditCommands([{ name: 'lol', description: 'I hate discord so much you cannot believe it', type: 1, }]) console.log(`Paste the URL below into your browser to invite your bot!\nhttps://discord.com/oauth2/authorize?client_id=${stupidAssBot.user.id}&scope=applications.commands%20bot&permissions=3072`) }) // Stupid ass interaction creation event stupidAssBot.on('interactionCreate', async (interaction) => { if (interaction?.data?.name === 'lol') { await interaction.createMessage({ content: 'According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway, because bees don\'t care what humans think is impossible.' }) console.log('Self destructing...') process.exit(0) } }) stupidAssBot.connect(); } const tokenFromStupidCommand = process.argv[2] init(tokenFromStupidCommand); ================================================ FILE: package.json ================================================ { "dependencies": { "eris": "^0.17.1" }, "name": "stupid-discord-badge", "version": "1.0.0", "description": "Discord can eat my ass", "main": "index.js", "scripts": { "run": "npm i && node ." }, "repository": { "type": "git", "url": "git+https://github.com/User9684/stupid-discord-badge.git" }, "author": "user#6969", "license": "ISC", "bugs": { "url": "https://github.com/User9684/stupid-discord-badge/issues" }, "homepage": "https://github.com/User9684/stupid-discord-badge#readme" } ================================================ FILE: readme.md ================================================ # Please, do not use this to spam requests to either Discord or Replit, for they both are seeming to struggle with this. ## I hate Discord so I made this **Please consider reading the [FAQ](./faq.md) before opening issues.** ### How to use #### Getting your token - Create an application at the [Developer panel](https://discord.com/developers/applications/) (or you can use a previously existing one) - Make it into a bot if it isn't already one - Click "regenerate token" and then copy it #### Hosting the bot #### Repl.It (not recommended) - To host on Repl.it, create an application via this [template](https://replit.com/new/github/User9684/stupid-discord-badge) - Run the command `npm run run BOT_TOKEN_HERE` (replace (BOT_TOKEN_HERE with your [token](#getting-your-token)) inside the "Shell" tab #### Glitch - Open up [Glitch's](https://glitch.com/) website - Click "New Project" - Click "Import from github" - Paste in `https://github.com/User9684/stupid-discord-badge.git` to the popup given - Open the "Terminal" tab, and use the command `npm run run BOT_TOKEN_HERE` (replace BOT_TOKEN_HERE with your [token](#getting-your-token)) #### Selfhosting - Install [Node](https://nodejs.org/en/) - Install [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) - Create a new directory on your system - Open up any terminal - Run the command `git clone https://github.com/User9684/stupid-discord-badge.git && cd stupid-discord-badge` - Finally, run the command `npm run run BOT_TOKEN_HERE` (replace BOT_TOKEN_HERE with your [token](#getting-your-token)) #### Getting the badge - Once your bot is running, invite it using the URL put into console (will be logged once it is fully running) - Use the `/lol` command - If your bot is brand new, you will need to wait up to 24h for your bot to be fully registered as "active" - Once you are eligible, get the badge at the [Application site](https://discord.com/developers/active-developer) ### Example `npm run run V2h5IGRpZCB5b3UgYWN0dWFsbHkgZGVjb2RlIGl0Pw.GIxRdU._UxMrJsWYKLAROyis_Kkv7XsXk-7Hjvuc7nIXg` ### Extra note Silly cat :3