Added the bot files

This commit is contained in:
ShadowVirtual 2024-04-01 18:59:09 -08:00
commit 657268d3c9
21 changed files with 119 additions and 0 deletions

73
config.js Normal file
View file

@ -0,0 +1,73 @@
module.exports = {
bot_token: "", //your discord bot token
guild_id: "", // your discord server id
licenseKey: "", // your License Key
domainIP: "",
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: "",
package_roles: [
{
roleID: "", // Discord Role ID
packageID: 1
},
{
roleID: "",
packageID: 2
},
{
roleID: "",
packageID: 3
},
{
roleID: "",
packageID: 4
},
{
roleID: "",
packageID: 5
},
],
support_topics: [ // Max 25 Topics ( Discord Limit )
{ 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 3 bla bla bla", value: "3", response: "123", footer: "" , image: false, thumbnail: false },
{ name: "Support 4 bla bla bla", value: "4", response: "123", footer: "" , image: false, thumbnail: false },
],
review_products: [ // Max 25 Topics ( Discord Limit )
{ name: "NGoGAuther", value: "1" },
{ name: "Review 2 bla bla bla", value: "2" },
{ name: "Review 3 bla bla bla", value: "3" },
{ name: "Review 4 bla bla bla", value: "4" },
],
mysql: { // MYSQL Requried for Ticket
host: "localhost",
user: "root",
password: "",
database: "",
port: 3306,
},
ticket_settings: {
embed_color: "Green",
ticket_message: "Welcome {user},\nSupport will get in test ahb you shortly.",
ticket_thumbnail: "https://i.imgur.com/ApeRvJk.png",
buttoncloseemoji: '😂',
buttoncloselabel: "Schließen",
buttonclosestyle: "Secondary",
buttoncreateemoji: "🎫",
buttoncreatelabel: "Öffnen",
buttoncreatestyle: "Secondary",
},
};

1
helpers/api.js Normal file

File diff suppressed because one or more lines are too long

1
helpers/createTicket.js Normal file

File diff suppressed because one or more lines are too long

1
helpers/cron.js Normal file

File diff suppressed because one or more lines are too long

1
helpers/helper.js Normal file

File diff suppressed because one or more lines are too long

1
helpers/interaction.js Normal file

File diff suppressed because one or more lines are too long

1
helpers/ready.js Normal file

File diff suppressed because one or more lines are too long

1
index.js Normal file

File diff suppressed because one or more lines are too long

22
package.json Normal file
View file

@ -0,0 +1,22 @@
{
"dependencies": {
"axios": "^1.6.8",
"discord-html-transcripts": "^3.2.0",
"discord.js": "^14.14.1",
"mysql": "^2.18.1",
"request": "^2.88.2",
"systeminformation": "^5.18.3",
"terminal-kit": "^3.0.0"
},
"version": "1.2.0",
"description": "NGoGAuth",
"scripts": {
"start": "node index.js",
"test": "nodemon index.js",
"nexe": "nexe --build --verbose --resource node_modules --resource slash-commands --resource helpers --resource package.json --output ./Bot/NGoGAuth",
"obfuscate": "javascript-obfuscator . --output ./NGoGAuth/nodejs/ --exclude node_modules --dead-code-injection true --debug-protection true --self-defending true --options-preset high-obfuscation --split-strings true --transform-object-keys true",
"nexe:windows": "nexe --build --verbose --resource node_modules --resource slash-commands --resource helpers --resource package.json --output ./NGoGAuth/Bot/win-NGoGAuth --target windows-x64",
"nexe:compile": "npm run nexe:windows && npm run obfuscate"
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
slash-commands/help.js Normal file

File diff suppressed because one or more lines are too long

1
slash-commands/info.js Normal file

File diff suppressed because one or more lines are too long

1
slash-commands/link.js Normal file

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

1
slash-commands/review.js Normal file

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

6
start.bat Normal file
View file

@ -0,0 +1,6 @@
echo off
cls
title Discord Bot
echo Starting Bot
node index.js
pause