-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
127 lines (108 loc) · 2.9 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send(`<center><p class="nome">music bot 🟢online</p><br><img src="https://cdn.discordapp.com/icons/816316117701885962/278233ccafd8b231de4c221783c27c6a.png?size=2048"style="border-radius: 50%;max-height: 100px;border-width: medium;
border-style: solid;
border-color: #F00;border-top-color: #54ff00;border-right-color: #54ff00;
}"></center>
<style>
.online {
color: #54ff00;
max-height: 50px;
}
.nome {
color: #fff;
max-height: 50px;
}
body {
background: url(https://cdn.discordapp.com/attachments/810690445641383936/836942493756817408/background.png);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
</style>`)
})
app.listen(3000)
const Aoijs = require('aoi.js');
const config = require('./config.json');
const bot = new Aoijs.Bot({
sharding: false,
shardAmount: 2,
token: config.token,
prefix: ['$getServerVar[prefix]', 'b1']
});
//canal warn
bot.onMessage({
guildOnly: true
});
const fs = require('fs');
const folders = fs.readdirSync('./comandos/');
for (const files of folders) {
const folder = fs
.readdirSync(`./comandos/${files}/`)
.filter(file => file.endsWith('.js'));
for (const commands of folder) {
const command = require(`./comandos/${files}/${commands}`);
bot.command({
name: command.name,
aliases: command.aliases,
code: command.code
});
}
}
// variaveis
bot.variables({
prefix: '!!',
id: ''
})
bot.command({
name: '<@!820441070412365825>',//id do seu bot!!!
code: `$title[meu nome e $username[$clientID]]
$description[meu prefixo e \`$getServerVar[prefix]\`
o meu criador e o <@!$botOwnerID>]
$footer[$getServerVar[prefix]help para ver minha lista de comandos]
$color[RANDOM]
`,
nonPrefixed: true
});
bot.readyCommand({
channel: "824266947054927924",
code: `
$log[]
$log[criado por appmakerparana]
`
})
bot.status({
text: "use $getvar[prefix]help",
type: "PLAYING",
time: 5
})
//eventos
bot.musicStartCommand({
channel: '$channelID',
code: `
$author[tocando agora;https://cdn.discordapp.com/attachments/812081910532538419/812082048432341052/cd.gif]
$color[RANDOM]
$thumbnail[$songInfo[thumbnail]]
$addField[Duração;\`$songInfo[duration]\`;yes]
$addField[infos;[link da musica]($songInfo[url])
**artista**
[$songInfo[publisher]]($songInfo[publisher_url]);yes]
$addField[titulo;\`$songInfo[title]\`;yes]
`
});
bot.musicEndCommand({
channel: '$channelID',
code: `
$description[musica acabou]
$footer[saindo da call;https://cdn.discordapp.com/attachments/812081910532538419/812082048432341052/cd.gif]
$color[RANDOM]
`
})
bot.command({
name: 'setprefixo',
code: `$setServerVar[prefix;$message] $description[o novo prefixo do server e \`$message\`]
$onlyPerms[admin; <@$authorID> \`verificamos que voce não tem permissao de adm\`]
$argsCheck[1;informe um argumento valido]
`
});