This repository was archived by the owner on Jun 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
47 lines (39 loc) · 1.27 KB
/
Copy pathindex.js
File metadata and controls
47 lines (39 loc) · 1.27 KB
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
const { CommandoClient, SQLiteProvider } = require('discord.js-commando');
const Discord = require('discord.js');
const path = require('path');
const sqlite = require('sqlite');
const config = require('./data/config.json');
class kofliClient extends CommandoClient {
constructor(options) {
super(options);
this.config = require('./data/config.json');
}
}
global.client = new kofliClient({
commandPrefix: config.prefix,
unknownCommandResponse: false,
owner: config.owner,
disableEveryone: false,
fetchAllMembers: true
});
sqlite.open(path.join(__dirname, "settings.sqlite3")).then((db) => {
client.setProvider(new SQLiteProvider(db));
});
client.registry
.registerDefaultTypes()
.registerGroups([
['grup', 'Ana komutlar.'],
['bilgilendirme', 'Bilgi almak için kullanılan komutlar.'],
['lilmoderation', 'Modere için kullanılan komutlar'],
['ayarlar', 'Ayarlar'],
['admin', 'Special command for bot owner.']
])
.registerDefaultGroups()
.registerDefaultCommands()
.registerCommandsIn(path.join(__dirname, 'commands'));
client.on('ready', () => {
console.log('Launching Koply v2');
console.log('Koply v2 launched.')
client.user.setActivity(config.aktif);
});
client.login(config.token);