Change some strings

This commit is contained in:
Daniel Odendahl Jr
2017-09-13 02:08:06 +00:00
parent e0b823062d
commit caba065235
32 changed files with 51 additions and 50 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class CardCommand extends Command {
aliases: ['discord-card'],
group: 'avatar-edit',
memberName: 'card',
description: 'Creates a trading card of random rarity based on a user\'s profile.',
description: 'Draws a trading card of random rarity based on a user\'s profile.',
guildOnly: true,
throttling: {
usages: 1,
+1 -1
View File
@@ -12,7 +12,7 @@ module.exports = class SteamCardCommand extends Command {
name: 'steam-card',
group: 'avatar-edit',
memberName: 'steam-card',
description: 'Draws a user\'s avatar over a Steam card.',
description: 'Draws a user\'s avatar over a Steam Trading Card.',
guildOnly: true,
throttling: {
usages: 1,
+1 -1
View File
@@ -9,7 +9,7 @@ module.exports = class YuGiOhTokenCommand extends Command {
name: 'yu-gi-oh-token',
group: 'avatar-edit',
memberName: 'yu-gi-oh-token',
description: 'Draws a user\'s avatar over a blank Yu-Gi-Oh! token.',
description: 'Draws a user\'s avatar over a blank Yu-Gi-Oh! Token card.',
throttling: {
usages: 1,
duration: 30
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class EmojiEmojiRevolutionCommand extends Command {
args: [
{
key: 'opponent',
prompt: 'Who would you like to play against?',
prompt: 'What user would you like to play against?',
type: 'user'
}
]
+4 -3
View File
@@ -5,15 +5,16 @@ module.exports = class FishyCommand extends Command {
constructor(client) {
super(client, {
name: 'fishy',
aliases: ['fish'],
aliases: ['fish', 'fishing'],
group: 'games',
memberName: 'fishy',
description: 'Catches a fish.'
description: 'Go fishing.'
});
}
run(msg) {
const fish = fishes[Math.floor(Math.random() * fishes.length)];
return msg.say(`You caught a: ${fish}`);
if (fish === '🔧') return msg.say(`You caught a ${fish}... Too bad...`);
return msg.say(`You caught a ${fish}!`);
}
};
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class GunfightCommand extends Command {
args: [
{
key: 'opponent',
prompt: 'Who would you like to gunfight?',
prompt: 'What user would you like to gunfight?',
type: 'user'
}
]
+2 -2
View File
@@ -12,7 +12,7 @@ module.exports = class LotteryCommand extends Command {
run(msg) {
const lottery = Math.floor(Math.random() * 100) + 1;
if (lottery === 1) return msg.reply('Nice job! 10/10! You deserve some cake!');
return msg.reply('Nope, sorry, you lost.');
if (lottery === 1) return msg.say('Nice job! 10/10! You deserve some cake!');
return msg.say('Nope, sorry, you lost.');
}
};
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class AchievementCommand extends Command {
type: 'string',
validate: text => {
if (text.length < 25) return true;
return 'Please keep the text under 25 characters.';
return 'Invalid text, please keep the text under 25 characters.';
}
}
]
+2 -2
View File
@@ -29,7 +29,7 @@ module.exports = class MemeCommand extends Command {
type: 'string',
validate: top => {
if (top.length < 200) return true;
return 'Please keep the top text under 200 characters.';
return 'Invalid top text, please keep the top text under 200 characters.';
},
parse: top => encodeURIComponent(top)
},
@@ -39,7 +39,7 @@ module.exports = class MemeCommand extends Command {
type: 'string',
validate: bottom => {
if (bottom.length < 200) return true;
return 'Please keep the bottom text under 200 characters.';
return 'Invalid bottom text, please keep the bottom text under 200 characters.';
},
parse: bottom => encodeURIComponent(bottom)
}
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class BanCommand extends Command {
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Please keep the reason under 140 characters.';
return 'Invalid reason, please keep the reason under 140 characters.';
}
}
]
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class HackbanCommand extends Command {
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Please keep the reason under 140 characters.';
return 'Invalid reason, please keep the reason under 140 characters.';
}
}
]
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class KickCommand extends Command {
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Please keep the reason under 140 characters.';
return 'Invalid reason, please keep the reason under 140 characters.';
}
}
]
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class PruneCommand extends Command {
type: 'integer',
validate: count => {
if (count < 100 && count > 0) return true;
return 'Count must be from 1-99.';
return 'Invalid count, please enter a number from 1-99.';
}
}
]
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class SoftbanCommand extends Command {
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Please keep the reason under 140 characters.';
return 'Invalid reason, please keep the reason under 140 characters.';
}
}
]
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class UnbanCommand extends Command {
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Please keep the reason under 140 characters.';
return 'Invalid reason, please keep the reason under 140 characters.';
}
}
]
+3 -3
View File
@@ -17,17 +17,17 @@ module.exports = class StrawpollCommand extends Command {
type: 'string',
validate: title => {
if (title.length < 200) return true;
return 'Please keep the title under 200 characters.';
return 'Invalid title, please keep the title under 200 characters.';
}
},
{
key: 'options',
prompt: 'What options do you want to be able to pick from? Maximum of 30.',
prompt: 'What options do you want to be able to pick from? You may have a maximum of 30.',
type: 'string',
infinite: true,
validate: choice => {
if (choice.length < 140) return true;
return 'Please keep choices under 140 characters each.';
return 'Invalid option, please keep options under 140 characters each.';
}
}
]
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class MapCommand extends Command {
type: 'integer',
validate: zoom => {
if (zoom < 21 && zoom > 0) return true;
return 'Please enter a zoom value from 1-20.';
return 'Invalid zoom level, please enter a zoom level from 1-20.';
}
},
{
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class BCommand extends Command {
type: 'string',
validate: text => {
if (text.replace(/(b|d|g|p|q)/gi, '🅱').length < 2000) return true;
return 'Your text is too long.';
return 'Invalid text, your text is too long.';
}
}
]
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class BinaryCommand extends Command {
type: 'string',
validate: text => {
if (this.binary(text).length < 2000) return true;
return 'Your text is too long.';
return 'Invalid text, your text is too long.';
}
}
]
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class ClapCommand extends Command {
type: 'string',
validate: text => {
if (text.split(' ').join(' 👏 ').length < 2000) return true;
return 'Your text is too long.';
return 'Invalid text, your text is too long.';
}
}
]
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class CowsayCommand extends Command {
type: 'string',
validate: text => {
if (text.length < 1500) return true;
return 'Text must be under 1500 characters.';
return 'Invalid text, please keep the text under 1500 characters.';
}
}
]
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = class EmojifyCommand extends Command {
type: 'string',
validate: text => {
if (letterTrans(text.toLowerCase(), dictionary, ' ').length < 2000) return true;
return 'Your text is too long.';
return 'Invalid text, your text is too long.';
},
parse: text => text.toLowerCase()
}
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class MockingCommand extends Command {
type: 'string',
validate: text => {
if (text.length < 1950) return true;
return 'Text must be under 1950 characters.';
return 'Invalid text, please keep the text under 1950 characters.';
},
parse: text => text.toLowerCase().split('')
}
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class MorseCommand extends Command {
type: 'string',
validate: text => {
if (letterTrans(text.toLowerCase(), dictionary, ' ').length < 2000) return true;
return 'Your text is too long.';
return 'Invalid text, your text is too long.';
},
parse: text => text.toLowerCase()
}
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class PirateCommand extends Command {
type: 'string',
validate: text => {
if (wordTrans(text, dictionary).length < 2000) return true;
return 'Your text is too long.';
return 'Invalid text, your text is too long.';
}
}
]
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class RepeatCommand extends Command {
type: 'string',
validate: text => {
if (!text.includes('@everyone') && !text.includes('@here')) return true;
return 'Please do not repeat everyone or here mentions.';
return 'Invalid text, please do not repeat everyone or here mentions.';
}
}
]
+2 -2
View File
@@ -14,7 +14,7 @@ module.exports = class ShipNameCommand extends Command {
type: 'string',
validate: start => {
if (start.length < 50) return true;
return 'The start name must be under 50 characters.';
return 'Invalid start name, the start name must be under 50 characters.';
},
parse: start => start.toLowerCase()
},
@@ -24,7 +24,7 @@ module.exports = class ShipNameCommand extends Command {
type: 'string',
validate: end => {
if (end.length < 50) return true;
return 'The end name must be under 50 characters.';
return 'Invalid end name, the end name must be under 50 characters.';
},
parse: end => end.toLowerCase()
}
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class TemmieCommand extends Command {
type: 'string',
validate: text => {
if (wordTrans(text, dictionary).length < 2000) return true;
return 'Your text is too long.';
return 'Invalid text, your text is too long.';
}
}
]
+11 -11
View File
@@ -21,7 +21,7 @@ module.exports = class TranslateCommand extends Command {
type: 'string',
validate: text => {
if (text.length < 500) return true;
return 'Please keep text under 500 characters.';
return 'Invalid text, please keep the text under 500 characters.';
}
},
{
@@ -38,17 +38,17 @@ module.exports = class TranslateCommand extends Command {
}
},
{
key: 'original',
prompt: `Which language is your text in? Either ${list(Object.keys(codes), 'or')}.`,
key: 'base',
prompt: `Which language would you like to use as the base? Either ${list(Object.keys(codes), 'or')}.`,
type: 'string',
default: '',
validate: original => {
if (codes[original.toLowerCase()] || Object.values(codes).includes(original)) return true;
return `Invalid original, please enter either ${list(Object.keys(codes), 'or')}.`;
validate: base => {
if (codes[base.toLowerCase()] || Object.values(codes).includes(base)) return true;
return `Invalid base, please enter either ${list(Object.keys(codes), 'or')}.`;
},
parse: original => {
if (codes[original.toLowerCase()]) return original.toLowerCase();
return Object.keys(codes).find(key => codes[key] === original);
parse: base => {
if (codes[base.toLowerCase()]) return base.toLowerCase();
return Object.keys(codes).find(key => codes[key] === base);
}
}
]
@@ -56,14 +56,14 @@ module.exports = class TranslateCommand extends Command {
}
async run(msg, args) {
const { text, target, original } = args;
const { text, target, base } = args;
try {
const { body } = await snekfetch
.get('https://translate.yandex.net/api/v1.5/tr.json/translate')
.query({
key: YANDEX_KEY,
text,
lang: original ? `${original}-${target}` : target
lang: base ? `${base}-${target}` : target
});
const lang = body.lang.split('-');
const embed = new MessageEmbed()
+2 -2
View File
@@ -13,11 +13,11 @@ module.exports = class YodaCommand extends Command {
args: [
{
key: 'sentence',
prompt: 'What text would you like to convert to Yoda speak?',
prompt: 'What sentence would you like to convert to Yoda speak?',
type: 'string',
validate: sentence => {
if (sentence.length < 500) return true;
return 'Please keep text under 500 characters.';
return 'Invalid sentence, please keep the sentence under 500 characters.';
}
}
]
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class ZalgoCommand extends Command {
type: 'string',
validate: text => {
if (text.length < 500) return true;
return 'Please keep text under 500 characters.';
return 'Invalid text, please keep the text under 500 characters.';
}
}
]
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "38.5.1",
"version": "38.5.2",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {