-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.js
More file actions
46 lines (39 loc) · 974 Bytes
/
index.js
File metadata and controls
46 lines (39 loc) · 974 Bytes
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
"use strict";
const Dingy = require("di-ngy");
const commands = require("./lib/commands");
const onInit = require("./lib/events/onInit");
const onConnect = require("./lib/events/onConnect");
const onMessage = require("./lib/events/onMessage");
const config = {
name: "slash-hack",
prefix: "\\",
token: process.env.DISCORD_KEY,
adminIds: [
"128985967875850240"
],
files: {
data: {
dir: "./data/",
storage: [
"lisa",
"tag_storage",
"tictactoe"
]
}
},
options: {
enableDefaultCommands: true,
commandsAreCaseSensitive: true,
answerToMissingCommand: false,
answerToMissingArgs: false,
answerToMissingPerms: false,
sendFilesForLongReply: true,
logLevel: "debug"
}
};
const bot = new Dingy(config, commands, {}, {
onInit,
onConnect,
onMessage
});
bot.connect();