Replaced with new code
This commit is contained in:
parent
657268d3c9
commit
425f21a1f2
22 changed files with 5130 additions and 70 deletions
93
config.js
93
config.js
|
@ -1,73 +1,64 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
bot_token: "", //your discord bot token
|
bot_token: "MTIyMzk5MTMzMTkyNDM0NDk1Mg.Gw9D1I.oo70_KeMM4KsXMlBBAZ8NYOMfsCUML7DMt2SQ8", // Your Discord bot token
|
||||||
guild_id: "", // your discord server id
|
guild_id: "1199858405486100602", // Your Discord server ID
|
||||||
licenseKey: "", // your License Key
|
domainIP: "shadowhost.icu", // IP address of your domain
|
||||||
domainIP: "",
|
api_role_id: "1223991994360004698", // Role ID for verification purposes
|
||||||
api_role_id: "", // Verify Role
|
|
||||||
api_url: "https://YOURDOMAIN/api/v1",
|
|
||||||
auth_url: "https://YOURDOMAIN/oauth/discord/connect", // required Discord OAuth. AdminPanel -> Configuration -> Oauth
|
|
||||||
api_token: "", // Admin Panel -> Create a new token under API Token. The token must have all permissions
|
|
||||||
|
|
||||||
notification_channelID: "",
|
|
||||||
review_channelID: "",
|
|
||||||
|
|
||||||
|
api_url: "https://shadowhost.icu/api/v1", // Base URL for your API
|
||||||
|
auth_url: "https://shadowhost.icu/oauth/discord/connect", // URL for Discord OAuth (Required for Discord OAuth. Configure in Admin Panel -> Configuration -> Oauth)
|
||||||
|
api_token: "TS9IgrHbSB2PeJcVJdWgHamJ5E76wMDryQIbZeYTFC8MOn57dDP6ZXjSirAZ", // API token from your Admin Panel. Must have all permissions (Admin Panel -> Create a new token under API Token)
|
||||||
|
|
||||||
|
notification_channelID: "1223992373478948995", // Channel ID for sending notification messages
|
||||||
|
review_channelID: "1223992395071230003", // Channel ID for posting review messages
|
||||||
|
|
||||||
|
// Array of roles associated with specific packages
|
||||||
package_roles: [
|
package_roles: [
|
||||||
{
|
{
|
||||||
roleID: "", // Discord Role ID
|
roleID: "", // Discord Role ID for package 1
|
||||||
packageID: 1
|
packageID: 1 // Corresponding package ID
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
roleID: "",
|
roleID: "", // Discord Role ID for package 2
|
||||||
packageID: 2
|
packageID: 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
roleID: "",
|
roleID: "", // Add more roles and package IDs as needed
|
||||||
packageID: 3
|
packageID: 3
|
||||||
},
|
},
|
||||||
{
|
// Continue adding roles and package IDs
|
||||||
roleID: "",
|
|
||||||
packageID: 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
roleID: "",
|
|
||||||
packageID: 5
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
|
|
||||||
support_topics: [ // Max 25 Topics ( Discord Limit )
|
// Support topics for user assistance
|
||||||
|
support_topics: [
|
||||||
{ name: "Support 1 bla bla bla", value: "1", response: "123", footer: "" , image: false, thumbnail: false },
|
{ name: "Support 1 bla bla bla", value: "1", response: "123", footer: "" , image: false, thumbnail: false },
|
||||||
{ name: "Support 2 bla bla bla", value: "2", response: "123 \n Test \n Hilfe", image: false, thumbnail: false },
|
{ name: "Support 2 bla bla bla", value: "2", response: "123 \n Test \n Hilfe", image: false, thumbnail: false },
|
||||||
{ name: "Support 3 bla bla bla", value: "3", response: "123", footer: "" , image: false, thumbnail: false },
|
// Add more support topics as needed
|
||||||
{ name: "Support 4 bla bla bla", value: "4", response: "123", footer: "" , image: false, thumbnail: false },
|
|
||||||
],
|
],
|
||||||
|
|
||||||
review_products: [ // Max 25 Topics ( Discord Limit )
|
// Products available for review
|
||||||
{ name: "NGoGAuther", value: "1" },
|
review_products: [
|
||||||
|
{ name: "Idk", value: "1" },
|
||||||
{ name: "Review 2 bla bla bla", value: "2" },
|
{ name: "Review 2 bla bla bla", value: "2" },
|
||||||
{ name: "Review 3 bla bla bla", value: "3" },
|
// Add more review products as needed
|
||||||
{ name: "Review 4 bla bla bla", value: "4" },
|
|
||||||
],
|
],
|
||||||
|
|
||||||
mysql: { // MYSQL Requried for Ticket
|
// SQLite configuration
|
||||||
host: "localhost",
|
sqlite: {
|
||||||
user: "root",
|
dbPath: "./data/database.sqlite", // Path to your SQLite database file
|
||||||
password: "",
|
|
||||||
database: "",
|
|
||||||
port: 3306,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
ticket_settings: {
|
// Settings for the ticket system
|
||||||
embed_color: "Green",
|
ticket_settings: {
|
||||||
ticket_message: "Welcome {user},\nSupport will get in test ahb you shortly.",
|
embed_color: "Green", // Embed color for the ticket messages
|
||||||
ticket_thumbnail: "https://i.imgur.com/ApeRvJk.png",
|
ticket_message: "Welcome {user},\nSupport will get in touch with you shortly.", // Welcome message for new tickets
|
||||||
|
ticket_thumbnail: "https://i.imgur.com/ApeRvJk.png", // Thumbnail image for ticket messages
|
||||||
buttoncloseemoji: '😂',
|
|
||||||
buttoncloselabel: "Schließen",
|
|
||||||
buttonclosestyle: "Secondary",
|
|
||||||
|
|
||||||
buttoncreateemoji: "🎫",
|
|
||||||
buttoncreatelabel: "Öffnen",
|
|
||||||
buttoncreatestyle: "Secondary",
|
|
||||||
},
|
|
||||||
|
|
||||||
|
buttoncloseemoji: '😂', // Emoji for the close button
|
||||||
|
buttoncloselabel: "Close", // Label for the close button
|
||||||
|
buttonclosestyle: "Secondary", // Style for the close button
|
||||||
|
|
||||||
|
buttoncreateemoji: "🎫", // Emoji for the create ticket button
|
||||||
|
buttoncreatelabel: "Open Ticket", // Label for the create ticket button
|
||||||
|
buttoncreatestyle: "Secondary", // Style for the create ticket button
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
8
eggactyl_config.yml
Normal file
8
eggactyl_config.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
version: 2
|
||||||
|
lang: en
|
||||||
|
software:
|
||||||
|
type: discord_node
|
||||||
|
node_version: "16"
|
||||||
|
package_manager: npm
|
||||||
|
bot:
|
||||||
|
start_file: index.js
|
190
helpers/api.js
190
helpers/api.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
170
helpers/cron.js
170
helpers/cron.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
228
index.js
228
index.js
File diff suppressed because one or more lines are too long
2530
package-lock.json
generated
Normal file
2530
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -6,7 +6,8 @@
|
||||||
"mysql": "^2.18.1",
|
"mysql": "^2.18.1",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"systeminformation": "^5.18.3",
|
"systeminformation": "^5.18.3",
|
||||||
"terminal-kit": "^3.0.0"
|
"terminal-kit": "^3.0.0",
|
||||||
|
"sqlite3": "^5.1.7"
|
||||||
},
|
},
|
||||||
|
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue