-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
93 lines (75 loc) · 1.78 KB
/
index.js
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
const { AoiClient, LoadCommands } = require("aoi.js");
//const { AoiVoice, PlayerEvents, PluginName, Cacher, Filter } = require("@akarui/aoi.music");
const keep_alive = require('./keep_alive.js')
const lwconfig = require('./configs/lwconfig.json')
const bot = new AoiClient({
token: process.env['TOKEN'],//lwconfig.token,
prefix: "$getVar[prefix]",
intents: ["MessageContent", "Guilds", "GuildMembers", "GuildMessages", "GuildBans", "GuildWebhooks", "GuildPresences"],
events: ['onMessage',
'onJoin',
'onLeave',
'onGuildJoin',
'onGuildLeave',
'onInteractionCreate']
/*
database: {
type: "dbdjs.db",
db: require('dbdjs.db'),
path: "./database/",
tables: ['trial']
}
*/
})
/*
BU PROJE LEWAFUSE TARAFINDAN YENİ BAŞLAYANLAR İÇİN TASARLANMIŞTIR.
*/
//LwLoader
const loader = new LoadCommands(bot);
loader.load(bot.cmd, "./komutlar/")
//variables
bot.variables(require('./configs/lwvariables.js'));
/*
const voice = new AoiVoice(
LWbot,
{
cache: {
cacheType: "Memory",
enabled: true,
},
},
false, //to enable pruneMusic
);
voice.onTrackStart()
*/
//------------ REBOOT -----------//
bot.readyCommand({
channel: "",
code: `
$log[========================================]
$log[Sunucu || $guildCount]
$log[Yüklenen Komut || $commandsCount]
$log[Bot Ping || $pingms]
$log[$userTag[$clientID] || Bot AKTIF]
$log[========================================]
`
})
//--------------STATUS--------------//
bot.status({
name: lwconfig.botStatus,
type: "PLAYING",
status: "online",
time: 7
})
bot.status({
name: lwconfig.botStatus1,
type: "WATCHING",
status: "online",
time: 7
})
bot.status({
name: lwconfig.botStatus2,
type: "LISTENING",
status: "online",
time: 7
})