-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
44 lines (38 loc) · 1.1 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
const aoijs = require("aoi.js");
const bot = new aoijs.AoiClient({
token:
"",
prefix: "!",
intents: ["GUILDS", "GUILD_MESSAGES"],
mobilePlatform: true,
});
//status
bot.status({
text: "Watch it",
type: "STREAMING",
url: "https://www.youtube.com/watch?v=jYxo9JX5peI&t=44s",
});
//Events
bot.onMessage();
//Command Example (ping)
const loader = new aoijs.LoadCommands(bot);
loader.load(bot.cmd, "./commands/");
//Chat bot main command
bot.command({
name: "$alwaysExecute",
category: "Command Support",
code: `
$reply[$messageID;yes]
$httpRequest[https://api.affiliateplus.xyz/api/chatbot?message=$message&name=Discord&gender=Male&master=Mohit;GET;;message]
$botTyping
$cooldown[2s;{newEmbed:{description:\:_\: Don't send messages to fast, you can break me by doing it}{color:RED}}]
$onlyIf[$checkContains[$message;@everyone;@here]==false;{newEmbed:{description:\:_\: I don't disturb people!}{color:#ff0000}}]
$onlyForChannels[$getServerVar[chatbotChannel];]
$onlyIf[$getServerVar[chatbotChannel]!=;]
$suppressErrors
`,
});
bot.variables({
money: 0,
chatbotChannel: "",
});