-
Notifications
You must be signed in to change notification settings - Fork 59
/
config.js
111 lines (90 loc) · 2.99 KB
/
config.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
const port = process.env.port || 3000;
const ip = require("ip"); // Only gets your IP, does nothing else
const config = {
"botName": "Tsuyo",
"owners": ["191517443519152129", "493922020783030282"],
"devs": [],
"mods": [],
"support": [],
"helpers": [],
"blacklisted": [""],
"globalBan": [""],
"token": "process.env.BOT_TOKEN",
// LINKS:
"github": "https://github.com/ddinan/Tsuyo",
"supportServer": "https://discord.gg/3hbeQgY",
"botInvite": "https://discordapp.com/oauth2/authorize?client_id=492871769485475840&scope=bot&permissions=1506142455",
// Dashboard settings
"dashboardEnabled": false, // Off by default
"port": port,
"clientId": process.env.CLIENT_ID,
"clientSecret": process.env.CLIENT_SECRET,
"scopes": ["identify", "guilds"],
"redirectUri": "http://" + ip.address() + ":" + port + "/authorize/callback",
"defaultSettings": {
"prefix": ";;",
"language": "en-US",
"modLogChannel": "logs",
"modRole": "Moderator",
"adminRole": "Administrator",
"muteRole": "Muted",
"noPermissionNotice": "true",
"pointsEnabled": "false",
"deniedChannel": "denied-suggestions",
"acceptedChannel": "accepted-suggestions",
"welcomeChannel": "general",
"welcomeMessage": "Welcome to the server, {{mention}}!",
"welcomeEnabled": "false",
"logMessageUpdates": "false",
"logEmojiUpdates": "false",
"logMemberUpdates": "false",
"logModerated": "false",
"starboardChannel": "starboard",
"censorSwears": "false",
"censorLinks": "false",
"censorSpam": "false",
"maxWarnsBeforeBan": 3
},
permLevels: [{
level: 0,
name: "Blacklisted",
check: () => true
},
{
level: 1,
name: "User",
check: (message) => !config.blacklisted.includes(message.author.id) || !config.globalBan.includes(message.author.id)
},
{
level: 2,
name: "Server Owner",
check: (message) => message.channel.type === "text" ? (message.guild.ownerID === message.author.id ? true : false) : false
},
{
level: 3,
name: "Bot Helper",
check: (message) => config.helpers.includes(message.author.id)
},
{
level: 4,
name: "Bot Support",
check: (message) => config.support.includes(message.author.id)
},
{
level: 5,
name: "Bot Moderator",
check: (message) => config.mods.includes(message.author.id)
},
{
level: 6,
name: "Bot Developer",
check: (message) => config.devs.includes(message.author.id)
},
{
level: 7,
name: "Bot Owner",
check: (message) => config.owners.includes(message.author.id)
}
]
};
module.exports = config;