Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
User9684 committed Nov 10, 2022
0 parents commit 98d664c
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/package-lock.json
38 changes: 38 additions & 0 deletions index.js
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);
22 changes: 22 additions & 0 deletions package.json
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"
}
10 changes: 10 additions & 0 deletions readme.md
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`

0 comments on commit 98d664c

Please sign in to comment.