-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchatbot.js
53 lines (37 loc) · 1.57 KB
/
chatbot.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
module.exports =
[
{
name: "set-chatbot",
aliases: ["set chatbot", "chatbot"],
category: "Chatbot",
description: "Sets chatbot of the server",
code: `
$description[1;> Successfully enabled the chatbot to <#$findChannel[$message;no]>]
$color[1;GREEN]
$setServerVar[chatbotChannel;$findChannel[$message;no]]
$onlyIf[$findChannel[$message;no]!=;{newEmbed:{description:\:_\: Invalid Args in \`<channel>\`
Usage:
\`set-chatbot <channel name | mention>\`}{color:RED}}]
$onlyIf[$message!=;{newEmbed:{description:Invalid Args!
Usage:
\`set-chatbot <channel mention | channel name | channel ID>\`}{color:RED}}]
$onlyIf[$findChannel[$message;no]!=$getServerVar[chatbotChannel];{newEmbed:{description:\:_\: Chat bot is already active in <#$findChannel[$message;no]>}{color:RED}}]
$onlyPerms[admin;{newEmbed:{description: Missing
\`Manage_Server\` Perms}{color:RED}}]`,
},
{
name: "reset-chatbot",
aliases: "resetchatbot",
usage: "Reset-chatbot <#chnl>",
category: "Chatbot",
description: "Resets the chatbot in the server",
code: `
$description[1;Successfully disabled chatbot in this server]
$color[1;#ff0000]
$setServerVar[chatbotChannel;]
$onlyIf[$getServerVar[chatbotChannel]!=;{newEmbed:{description:\:_\: This server has no chat bot channel!}{color:RED}}]
$onlyPerms[admin;{newEmbed:{description:\:_\: Missing
\`Manage_Server\` Perms!}{color:RED}}]
` ,
},
];