Advertisement
Guest User

Kirbo Bot Code

a guest
Mar 26th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Welcome to Kirbo bot! Hi, me! If you're not me, um...
  2.  
  3. const Discord = require('discord.js');
  4. const client = new Discord.Client();
  5. const { prefix, token } = require('./config.json');
  6.  
  7.  
  8.  
  9. client.once('ready', () => {
  10.     console.log('Ready!');
  11. });
  12.  
  13. client.on('message', message => {
  14.  
  15. if (message.content.startsWith(`${prefix}bored`)) {
  16.     message.channel.send('So, you\'re bored? Read a book or something.');
  17. } else if (message.content.startsWith(`${prefix}beep`)) {
  18.     message.channel.send('Beep boop beep. Boop beep beep.');
  19. } else if (message.content.startsWith(`${prefix}joe`)) {
  20.     message.channel.send('Joe Biden.');
  21. } else if (message.content.startsWith(`${prefix}server-info`)) {
  22.     message.channel.send(`Server info incoming!\nMember count: ${message.guild.memberCount}\nYou are in server: ${message.guild.name}.`);
  23. } else if (message.content.startsWith(`${prefix}hi`)) {
  24.     message.channel.send(randhellos[Math.floor(Math.random() * randhellos.length)]);
  25. } else if (message.content.startsWith(`${prefix}member-goal`)) {
  26.     message.channel.send(`${message.author.username}, We're close to our goal of 50 members!\nThere\'s only ${50 - message.guild.memberCount} left to go!`);
  27. } else if (message.content.startsWith(`${prefix}fedora`))  
  28.     if (message.author.id === '325780474754498560') {
  29.         message.channel.send(`Hiya, ${message.author.username}! How are ya? This is pretty cool, isn't it? Only you can use this command!`);
  30.     }
  31.  
  32. });
  33.  
  34.  
  35. var randhellos = ['Hello','Hiya.','Whats up?','IUZXDJA LEAVE ME ALONE IDIOT.','G\'day mate.','hello','hallo','Hello, comrade!','*unintelligible speaking*','How are you?','Heya, you\'ve been busy, huh?'];    
  36. client.login('bot token here but im not telling you because you can do stuff');
  37.  
  38.  
  39. /*
  40. const messages = [
  41.         message.channel.send('Hiya.')
  42.         message.channel.send('Hello')
  43. ];
  44.  
  45. function randMessage(messages) {
  46.    return messages[Math.floor(Math.random() * messages.length)];
  47. }
  48.  
  49. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement