This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 98d664c
Showing
4 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules | ||
/package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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, | ||
}]) | ||
}) | ||
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# I hate Discord so I made this | ||
|
||
### How to use | ||
- 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 | ||
- Obtain your token | ||
- Run the command `npm run run BOT_TOKEN_HERE` | ||
|
||
### Example | ||
`npm run run V2h5IGRpZCB5b3UgYWN0dWFsbHkgZGVjb2RlIGl0Pw.GIxRdU._UxMrJsWYKLAROyis_Kkv7XsXk-7Hjvuc7nIXg` |