Skip to content

Commit

Permalink
add reciple config
Browse files Browse the repository at this point in the history
  • Loading branch information
catplvsplus committed Dec 10, 2023
1 parent 2afd636 commit 522e1fb
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions test/reciple.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// @ts-check
import { CooldownPrecondition, CommandPermissionsPrecondition } from 'reciple';
import { IntentsBitField } from 'discord.js';
import { cliVersion } from 'reciple';

/**
* @satisfies {import('reciple').RecipleConfig}
*/
export const config = {
token: process.env.TOKEN ?? '',
commands: {
contextMenuCommand: {
enabled: true,
enableCooldown: true,
acceptRepliedInteractions: false,
registerCommands: {
registerGlobally: true,
registerToGuilds: []
}
},
messageCommand: {
enabled: true,
enableCooldown: true,
commandArgumentSeparator: ' ',
prefix: '!'
},
slashCommand: {
enabled: true,
enableCooldown: true,
acceptRepliedInteractions: false,
registerCommands: {
registerGlobally: true,
registerToGuilds: []
}
}
},
applicationCommandRegister: {
enabled: true,
allowRegisterGlobally: true,
allowRegisterToGuilds: true,
registerEmptyCommands: true,
registerToGuilds: []
},
client: {
intents: [
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMembers,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.MessageContent,
]
},
logger: {
enabled: true,
debugmode: null,
coloredMessages: true,
disableLogPrefix: false,
logToFile: {
enabled: true,
logsFolder: './logs',
file: 'latest.log'
}
},
modules: {
dirs: ['./modules'],
exclude: [],
filter: file => true,
disableModuleVersionCheck: false
},
preconditions: [
CooldownPrecondition.create(),
CommandPermissionsPrecondition.create()
],
cooldownSweeperOptions: {
timer: 1000 * 60 * 60
},
checkForUpdates: true,
version: `^8.3.0`
};

0 comments on commit 522e1fb

Please sign in to comment.