mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 08:08:34 +02:00
Minor Fixes
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = class MorseCommand extends Command {
|
|||||||
prompt: 'What text would you like to convert to morse?',
|
prompt: 'What text would you like to convert to morse?',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: content => {
|
validate: content => {
|
||||||
if (translator.letterTrans(content, morse).length < 1900) {
|
if (translator.letterTrans(content, morse, ' ').length < 1900) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return 'Your text to encode is too long.';
|
return 'Your text to encode is too long.';
|
||||||
|
|||||||
@@ -32,4 +32,4 @@ module.exports = class TemmieCommand extends Command {
|
|||||||
const temmized = translator.wordTrans(text, dictionary);
|
const temmized = translator.wordTrans(text, dictionary);
|
||||||
return message.say(`\u180E${temmized}`);
|
return message.say(`\u180E${temmized}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "24.0.0",
|
"version": "24.0.1",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "shardingmanager.js",
|
"main": "shardingmanager.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user