This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
108 lines (106 loc) · 3.52 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
const Aoijs = require("aoi.js")
require('dotenv').config();
const bot = new Aoijs.Bot({
sharding: false, //true or false
shardAmount: 2, //Shard amount
mobile: true, //true or false - Discord Mobile Status
//dbhToken: "API KEY", // Remove // if using, get an API Key from their Server
token: process.env.TOKEN, //Discord Bot Token
prefix: ["$getServerVar[prefix]"], //Change PREFIX to your Prefix
/* respondOnEdit: {command:true,alwaysExecute:false,nonPrefixed:false,timeLimit:60000},
intents: ["GUILDS","GUILD_MESSAGES"],
autoUpdate:true */
})
//переменные
bot.variables({
prefix: "p!",
chatbot: "off",
chatbot_channel: "",
webhook_id: "0",
webhook_token: "",
pause: "0"
})
//ивенты
/* bot.musicStartCommand({
channel: "$channelID",
code: `
Сейчас играет "**$songInfo[title]**"
`})
bot.musicEndCommand({
channel: "$channelID",
code: ``}) */
bot.onMessage() // Allows Commands to Executed
/* const loader = new aoijs.LoadCommands(bot)
loader.load(bot.cmd,"./commands/") */
bot.loadCommands(`./commands/`)
/* bot.readyCommand({ //проверка на наличие новой версии библиотеки при каждом запуске бота
channel: "906867817545084938",
code: `<@!$botOwnerID>, доступна новая версия библиотеки aoi.js \`$jsonRequest[https://api.leref.ga/package/version;version;]\`, желательно поменять её в **package.json** или вырезать эту строчку об напоминании
$onlyIf[$jsonRequest[https://api.leref.ga/package/version;version;$packageVersion]!=5.0.1;Ещё один блядский запуск бота с версией 4.6.0]
$onlyIf[$jsonRequest[https://api.leref.ga/package/version;version;$packageVersion]!=$packageVersion;]
$onlyIf[$jsonRequest[https://api.leref.ga/package/version;status;]==200;Сделать запрос на наличие новой версии библиотеки не удалось.]
`}) */
//напоминание о существовании проекта (нужно только для разрабов)
bot.loopCommand({
code: `
<@!694849711437250581> дебикс когда займёшься то?
https://github.com/IgordosDev/pepegabot/projects/1#column-16653650
`,
channel: "906867817545084938",
executeOnStartup: false,
every: 259200000
})
bot.command({
name: "ping",
code: `
$title[🏓 Pong!]
$description[\`$botPing\` ms.
Websocket: \`$ping\` ms.]
$footer[Uptime: $uptime]
$color[DD2E44]
`
})
//реакции(не все) Tanaka#7762
bot.command({
name: "$alwaysExecute",
code: `$addCmdReactions[♂️]
$onlyIfMessageContains[$noMentionMessage;ass;fuck;master;]
`
}, {
name: "$alwaysExecute",
code: `$addCmdReactions[😂]
$onlyIfMessageContains[$toLowercase[$noMentionMessage];sus;]
`})
//предупреждение рейтлимитов
bot.rateLimitCommand({
channel: "906868027398692904",
code: `$title[Рейтлимиты!]
$description[Limit: $rateLimit[limit]
Method: $rateLimit[method]
Path: $rateLimit[path]
Route: $rateLimit[route]]
$addTimestamp
`
})
// Status
bot.status({
text: "raifu_hardwave",
type: "STREAMING",
url: "https://twitch.tv/raifu_hardwave",
time: 120
})
bot.status({
text: "Lords of Lockerroom",
type: "WATCHING",
time: 120
})
bot.status({
text: "Need For Speed Most Wanted: Pepega Edition",
type: "PLAYING",
time: 180
})
bot.status({
text: "прочитанных шутках кота джокера",
type: "COMPETING",
time: 120
})