-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
30 lines (30 loc) · 831 Bytes
/
index.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
import DiscordJS, {Intents} from 'discord.js'; //npm i discord.js
import WOKCommands from 'wokcommands'; //npm i wokcommands
import path from 'path'; //npm i path
const client = new DiscordJS.Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES
]
});
client.on('ready', () => {
console.log('louiml.net creating your bot')
client.user?.setPresence({
status: "idle",
activities: [
{
name: `loui on the top`
}
]
})
new WOKCommands(client, {
commandDir: path.join(__dirname, 'commands'),
typeScript: true,
testServers: ['the id of your server'],
mongoUri: 'your mongoURL',
dbOptions: {
keepAlive: true
},
})
});
client.login('bot token');