-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
96 lines (74 loc) · 2.27 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
94
95
96
const { AoiClient, LoadCommands } = require("aoi.js");
const bot = new AoiClient({
token: process.env.TOKEN,
prefix: "!", //You can change this!
intents: ["MessageContent", "Guilds", "GuildMessages", "GuildBans", "GuildWebhooks", "GuildPresences", "GuildMembers"],
events: ["onMessage", "onInteractionCreate", "onJoin"],
database: {
type: "aoi.db",
db: require("aoi.db"),
tables: ["main"],
path: "./database/",
extraOptions: {
dbType: "KeyValue"
}
}
});
const loader = new LoadCommands(bot);
loader.load(bot.cmd, "./Commands/")
//SLASH COMMAND (PING)
bot.interactionCommand({
name: "ping",
prototype: "slash",
type: "interaction",
code: `$interactionReply[🏓 Pong! $pingms;;;;everyone;true]`
});
bot.status({
text: "!help",
type: "WATCHING",
status: "DND",
time: 12
});
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send('Use Uptime robot to make your bot 24/7')
})
app.listen(3000)
// @<bot> (prefix command)
bot.command({
name: "<@1093080763450277898>",
aliases: ["<@1093080763450277898>"],
nonPrefixed: true,
code: `My prefix is **!**`
});
//SLASH COMMAND (USERINFO)
bot.interactionCommand({
name: "user",
type: "interaction",
prototype: 'slash',
code: `
$interactionReply[;{newEmbed:
{color:Random}
{author:$username:$userAvatar[$findUser[$slashOption[user];true]]}
{title:$username[$findUser[$slashOption[user];true]]'s Info}
$image[$userAvatar[$findMember[$message]]]
{field:Username:\`$username[$findUser[$slashOption[user];true]]\`:true}
{field:Nickname:\`$nickname[$findUser[$slashOption[user];true]]\`:true}
{field:Tag:\`#$discriminator[$findUser[$slashOption[user];true]]\`:true}
{field:UID:\`$findUser[$slashOption[user];true]\`:true}
{field:Avatar:[Download]($userAvatar[$findUser[$slashOption[user];true]]):true}
{field:Roles:
$userRoles[$findUser[$slashOption[user];true];$guildID;mention;, ]}}]`
});
//SkyOPG :)
//Welcome (MAIN)
bot.joinCommand({
channel: "$getGuildVar[wchannel]",
code: `
$title[Welcome <@$authorID>!]
$image[https://zono-api.dacooladi.repl.co/wc?avatar=$Useravatar&user=$username&discriminator=$discriminator[$authorID]
`})
bot.variables({
wchannel: " "
})