mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
More dead commands
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
const Command = require('../../framework/Command');
|
||||
|
||||
module.exports = class LatlmesCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'latlmes',
|
||||
group: 'edit-text',
|
||||
memberName: 'latlmes',
|
||||
description: 'Creates a Latlmes fake link that redirects to a rickroll.',
|
||||
credit: [
|
||||
{
|
||||
name: 'Latlmes',
|
||||
url: 'https://www.latlmes.com/',
|
||||
reason: 'API'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'section',
|
||||
prompt: 'What section of the news should the link display?',
|
||||
type: 'string',
|
||||
max: 100,
|
||||
parse: query => encodeURIComponent(query.replaceAll(' ', '-').toLowerCase())
|
||||
},
|
||||
{
|
||||
key: 'query',
|
||||
prompt: 'What would you like the link to display as?',
|
||||
type: 'string',
|
||||
max: 500,
|
||||
parse: query => encodeURIComponent(query.replaceAll(' ', '-').toLowerCase())
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { section, query }) {
|
||||
return msg.say(`http://www.latlmes.com/${section}/${query}-1`);
|
||||
}
|
||||
};
|
||||
@@ -1,42 +0,0 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class YodaCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'yoda',
|
||||
aliases: ['yoda-speak'],
|
||||
group: 'edit-text',
|
||||
memberName: 'yoda',
|
||||
description: 'Converts text to Yoda speak.',
|
||||
credit: [
|
||||
{
|
||||
name: 'richchurcher',
|
||||
url: 'https://github.com/richchurcher',
|
||||
reason: 'API',
|
||||
reasonURL: 'https://github.com/richchurcher/yoda-api'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'sentence',
|
||||
prompt: 'What sentence would you like to convert to Yoda speak?',
|
||||
type: 'string',
|
||||
max: 500
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg, { sentence }) {
|
||||
try {
|
||||
const { body } = await request
|
||||
.get('https://yoda-api.appspot.com/api/v1/yodish')
|
||||
.query({ text: sentence });
|
||||
if (!body.yodish) return msg.reply('Empty, this message is. Try again later, you must.');
|
||||
return msg.say(body.yodish);
|
||||
} catch (err) {
|
||||
return msg.reply(`Being a jerk again, Yoda is: \`${err.message}\`. Try again later, you must.`);
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user