mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 10:57:08 +02:00
Snake Speak Command
This commit is contained in:
@@ -6,6 +6,7 @@ module.exports = class PirateCommand extends Command {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'pirate',
|
name: 'pirate',
|
||||||
|
aliases: ['pirate-speak'],
|
||||||
group: 'text-edit',
|
group: 'text-edit',
|
||||||
memberName: 'pirate',
|
memberName: 'pirate',
|
||||||
description: 'Converts text to pirate.',
|
description: 'Converts text to pirate.',
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
const Command = require('../../structures/Command');
|
||||||
|
|
||||||
|
module.exports = class SnakeSpeakCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'snake-speak',
|
||||||
|
aliases: ['snek-speak'],
|
||||||
|
group: 'text-edit',
|
||||||
|
memberName: 'snake-speak',
|
||||||
|
description: 'Convertsssss text to sssssnake ssssspeak.',
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'text',
|
||||||
|
prompt: 'What text would you like to convert to sssssnake ssssspeak?',
|
||||||
|
type: 'string',
|
||||||
|
validate: text => {
|
||||||
|
if (text.replace(/s/gi, 'sssss').length < 2000) return true;
|
||||||
|
return 'Invalid text, your text is too long.';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
run(msg, { text }) {
|
||||||
|
return msg.say(text.replace(/s/gi, 'sssss'));
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -6,6 +6,7 @@ module.exports = class TemmieCommand extends Command {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'temmie',
|
name: 'temmie',
|
||||||
|
aliases: ['temmie-speak'],
|
||||||
group: 'text-edit',
|
group: 'text-edit',
|
||||||
memberName: 'temmie',
|
memberName: 'temmie',
|
||||||
description: 'Converts text to Temmie speak.',
|
description: 'Converts text to Temmie speak.',
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "42.1.0",
|
"version": "42.2.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user