-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
73 lines (69 loc) · 1.61 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import {
ActivityType,
GatewayIntentBits,
MessageMentionOptions,
Partials,
PresenceData,
WebSocketOptions,
} from 'discord.js'
import { version } from '../package.json'
import { CommandOptions } from './types/Command'
import { ComponentOptions } from './types/Component'
const intents: GatewayIntentBits[] | number = [3247863 | (1 << 24) | (1 << 25)] // All Intents
const partials: Array<Partials> = [
Partials.Channel,
Partials.GuildMember,
Partials.Message,
Partials.User,
Partials.ThreadMember,
Partials.GuildScheduledEvent,
]
const allowedMentions: MessageMentionOptions = {
parse: ['roles', 'users', 'everyone'],
repliedUser: true,
}
const presence: PresenceData = {
status: 'idle',
activities: [
{
name: `v${version}`,
state: 'by gamestwolife',
type: ActivityType.Custom,
},
],
}
const ws: WebSocketOptions = { large_threshold: 250 }
export const config = {
token: 'your-token-here',
mongoURL:
'mongodb+srv://[username]:<password>@[uri]/<db_name>?retryWrites=true&w=majority',
clientId: 'client-id-here',
publicKey: 'client-public-key-here',
guildId: 'guild-id-here',
developers: ['ID Developer'],
colors: {
info: 0x5bc0de,
success: 0xf0ad4e,
warn: 0x22bb33,
error: 0xbb2124,
},
defaultCommandOptions: {
cooldown: 0,
ownerOnly: false,
devGuildOnly: true,
bot_permissions: [],
user_permissions: []
} as CommandOptions,
defaultComponentOptions: {
cooldown: 0,
ownerOnly: false,
devGuildOnly: true,
bot_permissions: [],
user_permissions: []
} as ComponentOptions,
intents: intents,
partials: partials,
allowedMentions: allowedMentions,
presence: presence,
ws: ws,
}