· 6 years ago · Apr 02, 2020, 01:38 AM
1/*
2 Welcome to the WISP-JS configuration file.
3 I have tried to comment everything in
4 great detail for you.
5 Please take the time to read through
6 before asking for help. */
7
8/*------------------*\
9 |--- Authentication ---|
10 \*------------------*/
11
12// You can create your API key here : https://your.panel.gg/account/security
13// All users (clients/support ops/admins) can create these.
14exports.WISPAPIKey = "0ozClfB9wWqBQ4GqVJBacUIl4Rlld3g6xkWGDR1M5XXXXXX"; // Your api key
15
16// If you don't know anything about making a bot dont worry, it's easy.
17// Follow this tutorial : https://discordpy.readthedocs.io/en/latest/discord.html
18// You'll find this key in step 7.
19exports.BotToken = "Njk1MDc0OTUyMzY5NjY4MTU3.XoU6TA.IhKfAjrLtj-1jf22usC_XXXXXX"; // Your bot token.
20
21// This is your host's panel url.
22exports.PanelURL = "https://french-host.panel.gg/";
23
24/*------------------*\
25 |-- Front End Config --|
26 \*------------------*/
27
28// This will start every command.
29exports.prefix = "!";
30
31// These images will appear at the top of their respective embed.
32exports.icons = {
33 status: "https://img.maineiac.dev/wjs_icons/ico_status.png",
34 players: "https://img.maineiac.dev/wjs_icons/ico_players.png",
35 cmd: "https://img.maineiac.dev/wjs_icons/ico_command.png",
36 power: "https://img.maineiac.dev/wjs_icons/ico_power.png",
37 help: "https://img.maineiac.dev/wjs_icons/ico_help.png",
38 error: "https://img.maineiac.dev/wjs_icons/ico_error.png",
39 serverlist: "https://img.maineiac.dev/wjs_icons/ico_servers.png",
40}
41
42// Command permissions
43// This will only work with role ids. You can get these by doing the following :
44// Ensure you're in developer mode, if not go to User Settings>Appearance>Advanced,
45// and hit the button for Developer Mode.
46// Then go to Your Server>Server Settings>Roles and right click the role you'd
47// like to copy.
48
49// Note : You can disable any of these commands by entering no values.
50// By default, power and cmd have the value 'roleid' therefore,
51// they will not work for any user, including yourself.
52// This is the same as having no values at all, ie : power: []
53
54exports.permissions = {
55 status: ['*'], // * = No permissions required
56 players: ['*'],
57 cmd: ['199622400676069376', "357757576441757696"], // If you need to, keep adding roles.
58 power: ['199622400676069376']
59 // Don't try to add more commands unless you know what you're doing.
60 // You'll break stuff.
61}
62
63
64/* Server id aliases
65Commands will be performed on a server by using their alias as a command.
66You can find your servers id by checking the URL while looking at it's console.
67
68 Example : https://your.panel.gg/server/a2e56ffz
69 a2e56ffz = ID
70 You can also find it by just looking at the WISP index (client panel, not the admin panel)
71 It's called the "UUID"
72 Screenshot : https://maineiac.isbad.gg/PpDEyTv
73 If your server is a gmod darkrp server and it's id is a2e56ffz your alias would
74 look something like this :
75 darkrp: "a2e56ffz"
76 If you have more servers you can add them. This doesn't have a cap.
77 Just add a comma at the end of each one. Example :
78
79 darkrp: "a2e56ffz",
80 ttt: "c2r88cz5"
81
82*/
83exports.servers = { // This supports more servers, just keep adding.
84 darkrp: "a4bf9a03", // !alias1 [command]
85 minecraft: "4550b1aa", // !anotherserveralias [command]
86 anotherminecraft: "4c47d3c0" // !thesecanbeanything [command]
87 //HINT : REMEMBER THE COMMA
88};
89
90// If you receive an error, look at it before creating an issue.
91// If it mentions this file it's your fault.
92
93// At the time of this commit (March 25, 2020) error catching for this is trash
94// You'll probably have problems setting this up. Free free to contact
95// Maineiac#0001 @ https://discord.gg/cJqZS8M