mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Add prompt limit for all args
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "127.0.0",
|
"version": "127.0.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ module.exports = class XiaoCommand extends Command {
|
|||||||
super(client, info);
|
super(client, info);
|
||||||
|
|
||||||
this.argsSingleQuotes = info.argsSingleQuotes || false;
|
this.argsSingleQuotes = info.argsSingleQuotes || false;
|
||||||
|
this.argsPromptLimit = info.argsPromptLimit || 1;
|
||||||
this.throttling = info.unknown ? null : info.throttling || { usages: 1, duration: 2 };
|
this.throttling = info.unknown ? null : info.throttling || { usages: 1, duration: 2 };
|
||||||
this.uses = 0;
|
this.uses = 0;
|
||||||
this.credit = info.credit || [];
|
this.credit = info.credit || [];
|
||||||
|
|||||||
Reference in New Issue
Block a user