Rate Limit
This commit is contained in:
parent
29cea0caf6
commit
055bfc0020
1 changed files with 10 additions and 4 deletions
14
src/index.ts
14
src/index.ts
|
@ -1,5 +1,5 @@
|
||||||
import './lib/setup';
|
import './lib/setup';
|
||||||
import { LogLevel, SapphireClient } from '@sapphire/framework';
|
import { LogLevel, SapphireClient, BucketScope } from '@sapphire/framework';
|
||||||
import { ActivityType, GatewayIntentBits } from 'discord.js';
|
import { ActivityType, GatewayIntentBits } from 'discord.js';
|
||||||
|
|
||||||
const client = new SapphireClient({
|
const client = new SapphireClient({
|
||||||
|
@ -8,8 +8,8 @@ const client = new SapphireClient({
|
||||||
status: 'online',
|
status: 'online',
|
||||||
activities: [
|
activities: [
|
||||||
{
|
{
|
||||||
name: "I'm just here for the vibes my dudes...",
|
name: 'BOAT PARADE! BOAT PARADE! BOAT PARADE!',
|
||||||
type: ActivityType.Playing
|
type: ActivityType.Listening
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -18,7 +18,13 @@ const client = new SapphireClient({
|
||||||
level: LogLevel.Debug
|
level: LogLevel.Debug
|
||||||
},
|
},
|
||||||
intents: [GatewayIntentBits.DirectMessages, GatewayIntentBits.GuildMessages, GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent],
|
intents: [GatewayIntentBits.DirectMessages, GatewayIntentBits.GuildMessages, GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent],
|
||||||
loadMessageCommandListeners: true
|
loadMessageCommandListeners: true,
|
||||||
|
defaultCooldown: {
|
||||||
|
delay: 10_000,
|
||||||
|
filteredCommands: ['ping', 'wryna'],
|
||||||
|
limit: 2,
|
||||||
|
scope: BucketScope.Guild
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue