This Gist is used by my Discord Bot to reset Discord Tokens. If you came here from an e-mail from Discord, do not worry. Discord automatically reset after it was put here. No damage has been done to your bot.
This file contains hidden or 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
Auction { | |
auctionId: '9493aa028b2d4801b78ba002a93e9a3c', | |
auctioneerUuid: 'bf6bcd08e29f4ae582643baf01389f2b', | |
auctioneerProfile: 'c712d2e1ea614b25a0daaa36ca5b3648', | |
bin: true, | |
itemBytes: null, | |
coop: [ | |
'bf6bcd08e29f4ae582643baf01389f2b', | |
'af51d5f151ee496f9ce7b5b1062711f6' | |
], |
This file contains hidden or 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 Discord = require('discord.js'); | |
const bot = new Discord.Client(); | |
bot.on('message', async msg => { | |
if(msg.author.bot) return; | |
if(msg.content === '!test') { | |
const Hook = new Discord.WebhookClient("WEBHOOK_ID", "WEBHOOK_TOKEN"); | |
const image = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/.........' | |
const imageStream = new Buffer.from(image.split("base64,")[1],'base64'); |
This file contains hidden or 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 charRegex = /§+./g; | |
const motdString = "§f§f §7•§8● §eReplaySucht §8✕ §7we code for you §4:heart: §8✕ §e1§8.§e8 §8●§7• §4Info §8» §cKurze Wartungsarbeiten!"; | |
motdString.replace(charRegex, ""); |
This file contains hidden or 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 { Client } = require('discord.js'); | |
const bot = new Client(); | |
const axios = require('axios').default; | |
let lastTimestamp = new Date() / 1000; | |
let latestPosts = []; | |
setInterval(() => { | |
console.log('Data Collected!'); | |
axios.get('https://www.reddit.com/r/AskReddit/new.json?limit=25') |
This file contains hidden or 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 { Client } = require('discord.js'); | |
const client = new Client(); | |
const TOKEN = 'DISCORD TOKEN'; | |
client.on('ready', () => { | |
console.log('The bot is now ready!'); | |
}); | |
client.login(TOKEN); |