Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Client} = require('discord.js');
- const client = new Client({ disableEveryone: true });
- const ytdl = require('ytdl-core')
- var spam = 0
- var deldel;
- client.on('message', msg => {
- //msg.channel.sendMessage('bobby needs nudies');
- //log
- if (msg.channel.name == undefined) {
- console.log("[dms] " + msg.author.username + ": " + msg.content);
- } else {
- console.log("[" + msg.channel.name + "] " + msg.author.username + ": " + msg.content);
- };
- //filter
- var lC = msg.content.toLowerCase();
- if (lC.includes('fuck') == true || lC.includes('nig') == true || lC.includes('bitch') == true || lC.includes('cunt') == true || lC.includes('shit') == true) {
- msg.delete();
- console.log('[' + msg.channel.name + '] message "' + msg.content + '" deleted.');
- }
- var b = [
- 'https://cdn.discordapp.com/attachments/625129989498470412/635675643236843520/images.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635675821268402187/minion8.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635675542313631794/images.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635675055036301326/9k.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635675100825255967/Z.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635675005711024148/9k.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635673981336420383/image0.jpg',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635644327523254326/image0.jpg',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635026014967431173/c1l0xqyym5021.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635025616118349845/images.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635025290392895495/2Q.png',
- 'https://cdn.discordapp.com/attachments/625129989498470412/635020031226413068/9a68fe16743735a9f18de4aeac745861417408edb1710738ab6686908e15cd24.png',
- 'https://i.kinja-img.com/gawker-media/image/upload/s--Hsc30h3T--/c_scale,f_auto,fl_progressive,q_80,w_800/lddjladlwahm0bgligtr.png'
- ];
- if (deldel == 1){
- setTimeout(() => {
- msg.delete();
- deldel = 0;
- }, 3000);
- }
- r = Math.floor(Math.random() * 15);
- if (msg.content == '!minion') {
- msg.channel.sendFile(b[r]);
- deldel = 1;
- msg.delete();
- }
- if (lC.includes('obama') == true) {
- msg.channel.sendMessage('shit SHOULD BURN');
- setTimeout(() => {
- msg.delete();
- }, 3000);
- }
- //spam
- if(msg.author.username == 'BobBarian' && msg.content == '!bspam' && spam == 1) {
- console.log('[bobby] stopping spam');
- spam = 0;
- } else if (msg.author.username == 'BobBarian' && msg.content == '!bspam' && spam == 0) {
- console.log('[bobby] starting spam');
- spam = 1;
- } else if (spam == 1) {
- msg.channel.send('bobby needs nudies');
- };
- });
- client.on('ready', () => {
- //client.channels.find("name","general").send('bobby is up and running')
- console.log();
- console.log('good morning gamers');
- console.log();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement