This gist takes advantage of GitHub's Token Scanning feature to reset Discord Bot tokens that users post on Discord.
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
const responses = await message.channel.awaitMessages(msg => msg.author.id === message.author.id, { | |
max: 1, | |
time: 10000 | |
}); | |
if (!responses || responses.size !== 1) { | |
// timed out | |
} | |
const response = responses.first(); |
This is a quick guide on using the new-dblapi
npm package to post your bot stats to discordbots.org. This package is only compatible with discord.js
.
Here are the the sources that are mentioned in the comments below. link 1 link 2 link 3
const { Client } = require('discord.js');
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
const { randomBytes } = require('crypto'); | |
const fetch = require('node-fetch'); | |
const FormData = require('form-data'); | |
const { parse } = require('url'); | |
module.exports = class OAuth2 { | |
constructor({ | |
endpoint, | |
clientID, | |
clientSecret, |
NewerOlder