Added the bot files
This commit is contained in:
commit
657268d3c9
21 changed files with 119 additions and 0 deletions
73
config.js
Normal file
73
config.js
Normal 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
1
helpers/api.js
Normal file
File diff suppressed because one or more lines are too long
1
helpers/createTicket.js
Normal file
1
helpers/createTicket.js
Normal file
File diff suppressed because one or more lines are too long
1
helpers/cron.js
Normal file
1
helpers/cron.js
Normal file
File diff suppressed because one or more lines are too long
1
helpers/helper.js
Normal file
1
helpers/helper.js
Normal file
File diff suppressed because one or more lines are too long
1
helpers/interaction.js
Normal file
1
helpers/interaction.js
Normal file
File diff suppressed because one or more lines are too long
1
helpers/ready.js
Normal file
1
helpers/ready.js
Normal file
File diff suppressed because one or more lines are too long
1
index.js
Normal file
1
index.js
Normal file
File diff suppressed because one or more lines are too long
22
package.json
Normal file
22
package.json
Normal 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"
|
||||
}
|
||||
}
|
1
slash-commands/create-question.js
Normal file
1
slash-commands/create-question.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/create-ticket-option.js
Normal file
1
slash-commands/create-ticket-option.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/help.js
Normal file
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
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
1
slash-commands/link.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/remove-question.js
Normal file
1
slash-commands/remove-question.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/remove-ticket-option.js
Normal file
1
slash-commands/remove-ticket-option.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/review.js
Normal file
1
slash-commands/review.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/send-ticket-message.js
Normal file
1
slash-commands/send-ticket-message.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/settings.js
Normal file
1
slash-commands/settings.js
Normal file
File diff suppressed because one or more lines are too long
1
slash-commands/support.js
Normal file
1
slash-commands/support.js
Normal file
File diff suppressed because one or more lines are too long
6
start.bat
Normal file
6
start.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
echo off
|
||||
cls
|
||||
title Discord Bot
|
||||
echo Starting Bot
|
||||
node index.js
|
||||
pause
|
Loading…
Reference in a new issue