mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Repeat Command
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
|
||||
module.exports = class RepeatCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'repeat',
|
||||
group: 'textedit',
|
||||
memberName: 'repeat',
|
||||
description: 'Repeat something over and over and over and over (etc).',
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to repeat over and over and over and over?',
|
||||
type: 'string',
|
||||
parse: text => text.repeat(2000).substr(0, 1999)
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
return msg.say(`\u180E${text}`);
|
||||
}
|
||||
};
|
||||
@@ -6,7 +6,6 @@ module.exports = class SayCommand extends Command {
|
||||
name: 'say',
|
||||
aliases: [
|
||||
'copy',
|
||||
'repeat',
|
||||
'echo'
|
||||
],
|
||||
group: 'textedit',
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "18.3.4",
|
||||
"version": "18.4.0",
|
||||
"description": "A Discord Bot",
|
||||
"main": "shardingmanager.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user