This for That, Uppercase, Lowercase

This commit is contained in:
Daniel Odendahl Jr
2018-08-29 22:24:15 +00:00
parent 86a11c39f1
commit 0695c3f309
5 changed files with 77 additions and 2 deletions
+4 -1
View File
@@ -15,7 +15,7 @@ Xiao is a Discord bot coded in JavaScript with
The bot is no longer available for invite. You can self-host the bot, or use her
on the [home server](https://discord.gg/sbMe32W).
## Commands (296)
## Commands (299)
### Utility:
* **eval**: Executes JavaScript code.
@@ -79,6 +79,7 @@ on the [home server](https://discord.gg/sbMe32W).
* **shower-thought**: Responds with a random shower thought, directly from r/Showerthoughts.
* **suggest-command**: Suggests a random command for you to try.
* **superpower**: Responds with a random superpower.
* **this-for-that**: So, basically, it's like a bot command for this dumb meme.
* **user-roulette**: Randomly chooses a member of the server.
* **would-you-rather**: Responds with a random "Would you rather ...?" question.
* **xiao**: Responds with a random image of Xiao Pai.
@@ -295,6 +296,7 @@ on the [home server](https://discord.gg/sbMe32W).
* **hex**: Converts text to hex.
* **latlmes**: Creates a Latlmes fake link that redirects to a rickroll.
* **lmgtfy**: Creates a LMGTFY link with the query you provide.
* **lowercase**: Converts text to lowercase.
* **md5**: Creates a hash of text with the MD5 algorithm.
* **mocking**: SenDs TexT lIkE ThiS.
* **morse**: Converts text to morse code.
@@ -314,6 +316,7 @@ on the [home server](https://discord.gg/sbMe32W).
* **superscript**: Converts text to tiny text.
* **temmie**: Converts text to Temmie speak.
* **translate**: Translates text to a specific language.
* **uppercase**: Converts text to uppercase.
* **upside-down**: Flips text upside-down.
* **url-encode**: Encodes text to URL-friendly characters.
* **webhook**: Posts a message to the webhook defined in your `process.env`.
+24
View File
@@ -0,0 +1,24 @@
const Command = require('../../structures/Command');
const request = require('node-superfetch');
module.exports = class ThisForThatCommand extends Command {
constructor(client) {
super(client, {
name: 'this-for-that',
aliases: ['its-this-for-that'],
group: 'random',
memberName: 'this-for-that',
description: 'So, basically, it\'s like a bot command for this dumb meme.'
});
}
async run(msg) {
try {
const { text } = await request.get('http://itsthisforthat.com/api.php?json');
const body = JSON.parse(text);
return msg.say(`So, basically, it's like a ${body.this} for ${body.that}.`);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}
};
+24
View File
@@ -0,0 +1,24 @@
const Command = require('../../structures/Command');
module.exports = class LowercaseCommand extends Command {
constructor(client) {
super(client, {
name: 'lowercase',
aliases: ['to-lowercase'],
group: 'text-edit',
memberName: 'lowercase',
description: 'Converts text to lowercase.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to lowercase?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(text.toLowerCase());
}
};
+24
View File
@@ -0,0 +1,24 @@
const Command = require('../../structures/Command');
module.exports = class UppercaseCommand extends Command {
constructor(client) {
super(client, {
name: 'uppercase',
aliases: ['to-uppercase', 'all-caps', 'caps'],
group: 'text-edit',
memberName: 'uppercase',
description: 'Converts text to uppercase.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to uppercase?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(text.toUpperCase());
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "88.0.1",
"version": "88.1.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {