Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Welcome to Kirbo bot! Hi, me! If you're not me, um...
- const Discord = require('discord.js');
- const client = new Discord.Client();
- const { prefix, token } = require('./config.json');
- client.once('ready', () => {
- console.log('Ready!');
- });
- client.on('message', message => {
- if (message.content.startsWith(`${prefix}bored`)) {
- message.channel.send('So, you\'re bored? Read a book or something.');
- } else if (message.content.startsWith(`${prefix}beep`)) {
- message.channel.send('Beep boop beep. Boop beep beep.');
- } else if (message.content.startsWith(`${prefix}joe`)) {
- message.channel.send('Joe Biden.');
- } else if (message.content.startsWith(`${prefix}server-info`)) {
- message.channel.send(`Server info incoming!\nMember count: ${message.guild.memberCount}\nYou are in server: ${message.guild.name}.`);
- } else if (message.content.startsWith(`${prefix}hi`)) {
- message.channel.send(randhellos[Math.floor(Math.random() * randhellos.length)]);
- } else if (message.content.startsWith(`${prefix}member-goal`)) {
- 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!`);
- } else if (message.content.startsWith(`${prefix}fedora`))
- if (message.author.id === '325780474754498560') {
- message.channel.send(`Hiya, ${message.author.username}! How are ya? This is pretty cool, isn't it? Only you can use this command!`);
- }
- });
- 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?'];
- client.login('bot token here but im not telling you because you can do stuff');
- /*
- const messages = [
- message.channel.send('Hiya.')
- message.channel.send('Hello')
- ];
- function randMessage(messages) {
- return messages[Math.floor(Math.random() * messages.length)];
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement