Skip to content

Instantly share code, notes, and snippets.

View LiamTownsley's full-sized avatar

Liam Townsley LiamTownsley

View GitHub Profile
Auction {
auctionId: '9493aa028b2d4801b78ba002a93e9a3c',
auctioneerUuid: 'bf6bcd08e29f4ae582643baf01389f2b',
auctioneerProfile: 'c712d2e1ea614b25a0daaa36ca5b3648',
bin: true,
itemBytes: null,
coop: [
'bf6bcd08e29f4ae582643baf01389f2b',
'af51d5f151ee496f9ce7b5b1062711f6'
],
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');
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, "");
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')
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);

Token Reset

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.