-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
35 lines (28 loc) · 809 Bytes
/
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
const aoijs = require("aoi.js")
const bot = new aoijs.Bot({
token: "", //tokeninizi yazın.
prefix: ["t!"], //prefix
intents: ["GUILDS", "GUILD_MESSAGES"] //intent
})
//durum ve değişkenleri ayrı bir dosyanın içinde yapıyorsunuz.
require('./ayarlar/durum')(bot)
require('./ayarlar/degiskenler')(bot)
//Event
bot.onMessage()
//Komutları dosyada okuma
const komutlar = new aoijs.LoadCommands(bot);
komutlar.load(bot.cmd,'./komutlar/')
//Aşşağıdaki yere isterseniz $log veya $denddm eklebilirsiniz örnek:
// (Not: ID'niz yerine kendi ID'nizi yazın.)
bot.readyCommand({
channel: "",
code: `
$log[
Bot Başarıyla Açıldı!
Ad: $userTag[$clientID]
Ping: $ping ms
Yapımcısı: $username[$botOwnerID]#$discriminator[$botOwnerID]
Komut yüklendi: $commandsCount
]
`
})