PokeBot/commands/Fun/story.js

58 lines
4.5 KiB
JavaScript
Raw Normal View History

2018-02-25 21:58:31 -05:00
/** **************************************
2018-02-25 13:08:19 -05:00
*
* Story: Plugin for PokeBot that tells the user a story.
* Copyright (C) 2018 TheEdge, jtsshieh, Alee
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* *************************************/
2018-02-24 14:25:33 -05:00
exports.run = async (bot, msg) => {
msg.guild.fetchMembers().then(guild =>
{
const membersList = guild.members.array();
const selectedUser1 = membersList[Math.floor(Math.random() * membersList.length)].user;
const selectedUser2 = membersList[Math.floor(Math.random() * membersList.length)].user;
const selectedUser3 = membersList[Math.floor(Math.random() * membersList.length)].user;
2018-02-25 17:04:02 -05:00
const selectedUser4 = membersList[Math.floor(Math.random() * membersList.length)].user;
2018-02-24 14:14:13 -05:00
2018-02-24 14:25:33 -05:00
const stories =
2018-02-24 14:14:13 -05:00
[
2018-02-24 20:40:21 -05:00
`${selectedUser1.username} bought ${selectedUser2.username} his favorite video game. This game is called "Pokemon". Then, they became best friends.`,
2018-02-24 20:43:15 -05:00
`${selectedUser1.username} wants to become a Pokemon trainer, but he needs to get a Pokemon first!`,
2018-02-25 17:04:02 -05:00
`One day, ${selectedUser1.username} decided to go to a shop. He took his motorbike. Once he arrived at the shop, he went inside. He headed right, towards the chips. He grabbed a packet, and headed to check-out. He bumped into ${selectedUser2.username} at the counter, and decided to say hi. They had a little chat, and then decided to gossip about ${selectedUser3.username}. Then, as they were saying some horrible things about ${selectedUser3.username}, they unexpectedly showed up! Then, ${selectedUser1.username} and ${selectedUser2.username} got into a fight against ${selectedUser3.username}.\n\nKids, this is why you don't start drama.\nNow ${selectedUser1.username}, ${selectedUser2.username}, and ${selectedUser3.username} are no longer friends.`,
`At a point in time, ${selectedUser1.username} was battling ${selectedUser2.username} for a gym. ${selectedUser1.username} chose Sylveon to battle, when ${selectedUser2.username} chose their trusty Eevee. First, Eevee used Tackle, when Sylveon went in for Draining Kiss. Then, ${selectedUser2.username} shouted an expletive. Once they shouted it, ${selectedUser3.username} came inside the room. ${selectedUser3.username} does not like expletives, so they got into an arguement about them. Soon enough, vicr123 got in here too and started using "-" in place of expletives during the argument. Eventually, ${selectedUser2.username} and ${selectedUser3.username} were shouting expletives at each-other, vicr123 was audibly shouting "Dash! Dash you!", while ${selectedUser1.username} was smashing his head on his desk.`,
2018-02-25 17:11:50 -05:00
`It was the day of the release of Pokemon Ultra Sun and Ultra Moon. ${selectedUser1.username} and ${selectedUser2.username} decided to go to GameStop to wait in line to grab their pre-order copies. Then, ${selectedUser3.username} came along, and got mad once they realised ${selectedUser1.username} and ${selectedUser2.username} had pre-orders, when ${selectedUser3.username} did not. Eventually, ${selectedUser3.username} started physically assaulting ${selectedUser1.username} when they came outside with their pre-order copy. Then, known police officer ${selectedUser4.username} came up to ${selectedUser3.username} and ${selectedUser1.username} and charged them both for Indecent Exposure, and Assault of the Second Degree.\n\nMoral of the story: Do not get into an assualt over a video-game, like ${selectedUser3.username} and ${selectedUser1.username} did.`,
2018-02-24 14:14:13 -05:00
];
2018-02-24 14:25:33 -05:00
const storySelected = [Math.floor(Math.random() * stories.length)];
2018-02-24 20:33:30 -05:00
const { RichEmbed } = require('discord.js');
const embed = new RichEmbed()
2018-02-24 20:27:58 -05:00
.setColor(0x00ae86)
2018-02-24 20:39:22 -05:00
.setTitle('PokeBot Storytime')
2018-02-24 20:27:58 -05:00
.setDescription(stories[storySelected])
.setFooter('PokeBot Beta');
2018-02-24 20:33:30 -05:00
msg.channel.send({ embed });
2018-02-24 14:25:33 -05:00
});
2018-02-24 14:14:13 -05:00
};
exports.conf = {
2018-02-25 00:34:31 -05:00
aliases: ['storytime'],
2018-02-24 14:25:33 -05:00
guildOnly: true,
};
exports.help = {
name: 'story',
description: 'Tells you a story.',
};