summaryrefslogtreecommitdiff
path: root/src/commands/user
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-27 08:00:29 -0700
committer8cy <[email protected]>2020-04-27 08:00:29 -0700
commit0d35c0116c38d1f8642e4c8d8f36509f7500bb05 (patch)
tree24532f9d04bd1465b5b4d21bde18d86812646f45 /src/commands/user
parentadd welcome command, v7.8.0 (diff)
downloaddep-core-0d35c0116c38d1f8642e4c8d8f36509f7500bb05.tar.xz
dep-core-0d35c0116c38d1f8642e4c8d8f36509f7500bb05.zip
A New World, v8.0.0
- change some formatting - add throttling to all commands - change timout in welcome and clear - add another edge case to welcome and darling - use new mongo.connect params for stability - move some commands around - remove some tsingnores for idk in total, epic update 8)
Diffstat (limited to 'src/commands/user')
-rw-r--r--src/commands/user/nickname.ts7
-rw-r--r--src/commands/user/pfp.ts7
2 files changed, 12 insertions, 2 deletions
diff --git a/src/commands/user/nickname.ts b/src/commands/user/nickname.ts
index ffc8d18..3833f68 100644
--- a/src/commands/user/nickname.ts
+++ b/src/commands/user/nickname.ts
@@ -20,7 +20,12 @@ module.exports = class NickNameUser extends Command {
'uwu!nickname sinny',
'uwu!nick s1nical',
'uwu!name s1n'
- ]
+ ],
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ guildOnly: true
});
}
run(msg: CommandoMessage, { userNick }) {
diff --git a/src/commands/user/pfp.ts b/src/commands/user/pfp.ts
index bf593fa..f6948b3 100644
--- a/src/commands/user/pfp.ts
+++ b/src/commands/user/pfp.ts
@@ -17,7 +17,12 @@ module.exports = class PFPServer extends Command {
type: 'string'
}
],
- examples: ['uwu!pfp @sin#1337']
+ examples: ['uwu!pfp @sin#1337'],
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ guildOnly: true
});
}
run(msg: CommandoMessage, { userID } ) {