-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoresponse.js
117 lines (117 loc) · 4.62 KB
/
autoresponse.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
module.exports = [
{
keywords: [["Failed opening required '/var/www/pterodactyl/vendor/autoload.php'"]],
response: {
"title": "Composer core dependency install interrupted or failed",
"footer": "",
"body": [
"Your composer core dependency install `composer install --no-dev --optimize-autoloader` was interrupted or failed. Try again and post here any errors that you might receive. If the command doesn't work, go to https://discord.gg/pterodactyl and ask for support there"
]
}
},
{
keywords: [
["ran", "optimize"],
["Route", "not defined"],
["RouteNotFoundException"]
],
response: {
"title": "Did you run php artisan optimize?",
"footer": "And yes running 2 commands twice somehow fixes it",
"body": [
"If yes, you should run the following commands:",
"```",
"php artisan optimize",
"composer dump-autoload --optimize",
"```",
"```",
"php artisan optimize",
"composer dump-autoload --optimize",
"```"
]
}
},
{
keywords: [["500 SERVER ERROR"]],
response: {
"title": "Getting Panel Logs",
"footer": "",
"body": [
"Get your panel logs with this simple command:",
"```",
"tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc pteropaste.com 99",
"```"
]
}
},
{
keywords: [["Base table or view not found: 1146 Table 'panel.billing"], ["401 Unauthorized"]],
response: {
"title": "Problems with installing Billing v1",
"footer": "",
"body": [
"Seems you don't own/haven't bought Billing v2. You can buy it on https://wemx.net",
"",
"If you need to install the installer for Billing v1, you have to download it where you bought ([PterodactylMarket](https://pterodactylmarket.com/resource/336), [Pterodactyl-Resources](https://pterodactyl-resources.com/resources/resource/13), [BuiltByBit](https://https://builtbybit.com/resources/21909))",
"",
"If you already have an installer and need to install Billing v1, run",
"```",
"php artisan billing:install legacy",
"```"
]
}
},
{
keywords: [["domains do not match"]],
response: {
"title": "Setting up Pterodactyl properly",
"footer": "If you need to change the URL, open up a ticket",
"body": [
"When the license was created it was assigned to a Panel URL, it must match in `/var/www/pterodactyl/.env` at `APP_URL`",
"",
"For example if your license has been created for `https://example.com`, in the config it should like this:",
"```do",
"APP_URL=\"https://example.com\"",
"```"
]
}
},
{
keywords: [["you use a proxy"]],
response: {
"title": "Installing an Addon/a Theme",
"footer": "",
"body": [
"Seems that you use a proxy, it could be Cloudflare, or your own. If you want to keep it, open up a ticket at <#898665521640267869> and send the error there",
"",
"After the commands that the Staff ran, you can install the Addon/Theme now"
]
}
},
{
keywords: [["Undefined array key 1"]],
response: {
"title": "Installing Billing",
"footer": "",
"body": [
"You have to install the installer once again. Run these commands aswell as replace `<license_key>` with your License Key",
"",
"```do",
"wget -O Billing-installer.zip https://wemx.net/api/installer/<license_key>",
"unzip Billing-installer.zip && rm Billing-installer.zip",
"php artisan billing:install",
"```"
]
}
},
{
keywords: [["cannot open /html"]],
response: {
"title": "Installing Unix Theme",
"footer": "",
"body": [
"This is a problem with the Unix Installer. Please see [this message](https://discord.com/channels/760945720470667294/850426169748488203/1043138667704762438) for a fix"
]
}
}
];