Move JSON Files to assets/json

This commit is contained in:
Daniel Odendahl Jr
2017-05-11 02:38:36 +00:00
parent 1236695d93
commit 93d7432519
35 changed files with 55 additions and 17 deletions
+8
View File
@@ -0,0 +1,8 @@
[
"Maybe someday",
"Nothing",
"Neither",
"I don't think so",
"Yes",
"Try asking again"
]
+1 -1
View File
@@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const { RichEmbed } = require('discord.js');
const sentences = require('./sentences');
const sentences = require('../../assets/json/typinggame');
module.exports = class TypingGameCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const request = require('superagent');
const codes = require('./currencycodes');
const codes = require('../../assets/json/currency');
module.exports = class CurrencyCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const eastereggs = require('./eastereggs');
const eastereggs = require('../../assets/json/easteregg');
module.exports = class EasterEggCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const codes = require('./memecodes');
const codes = require('../../assets/json/meme');
module.exports = class MemeCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const songs = require('./songs');
const songs = require('../../assets/json/vocaloid');
module.exports = class VocaloidCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const xiaos = require('./xiaos');
const xiaos = require('../../assets/json/xiaopai');
module.exports = class XiaoCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const { stripIndents } = require('common-tags');
const answers = require('./8ballanswers');
const answers = require('../../assets/json/8ball');
module.exports = class MagicBallCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const compliments = require('./compliments');
const compliments = require('../../assets/json/compliment');
module.exports = class ComplimentCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const facts = require('./facts');
const facts = require('../../assets/json/factcore');
module.exports = class FactCoreCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const fortunes = require('./fortunes');
const fortunes = require('../../assets/json/fortune');
module.exports = class FortuneCookieCommand extends Command {
constructor(client) {
+30
View File
@@ -0,0 +1,30 @@
const { Command } = require('discord.js-commando');
const { stripIndents } = require('common-tags');
const answers = require('../../assets/json/magicconch');
module.exports = class MagicConchCommand extends Command {
constructor(client) {
super(client, {
name: 'magic-conch',
group: 'response',
memberName: 'magic-conch',
description: 'Maybe Someday...',
args: [
{
key: 'question',
prompt: 'What do you want to ask the magic conch?',
type: 'string'
}
]
});
}
run(msg, args) {
const { question } = args;
const answer = answers[Math.floor(Math.random() * answers.length)];
return msg.say(stripIndents`
Question: ${question}
:shell: ${answer} :shell:
`);
}
};
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const { lastNames, maleNames, femaleNames } = require('./names');
const { lastNames, maleNames, femaleNames } = require('../../assets/json/name');
module.exports = class RandomNameCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const roasts = require('./roasts');
const roasts = require('../../assets/json/roast');
module.exports = class RoastCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const { letterTrans } = require('custom-translate');
const dictionary = require('./morsemappings');
const dictionary = require('../../assets/json/morse');
module.exports = class MorseCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const { wordTrans } = require('custom-translate');
const dictionary = require('./piratewords');
const dictionary = require('../../assets/json/pirate');
module.exports = class PirateCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const { wordTrans } = require('custom-translate');
const dictionary = require('./temmiewords');
const dictionary = require('../../assets/json/temmie');
module.exports = class TemmieCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const { letterTrans } = require('custom-translate');
const dictionary = require('./udmappings');
const dictionary = require('../../assets/json/upsidedown');
module.exports = class UpsideDownCommand extends Command {
constructor(client) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "19.1.2",
"version": "19.2.0",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {