From 15b315e5d1f4400e9c1dfb1d38e73bbc9e2a3aa6 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Thu, 7 Mar 2024 08:52:42 +0530 Subject: [PATCH 01/17] Update Emoji.js --- build/src/setting/Emoji.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/build/src/setting/Emoji.js b/build/src/setting/Emoji.js index 10a5cfe..158d4ee 100644 --- a/build/src/setting/Emoji.js +++ b/build/src/setting/Emoji.js @@ -1,12 +1,12 @@ export default class OrasEmoji extends Object { constructor(client) { super(); - this.tick = "✅"; - this.cross = "❌"; + this.tick = "<:tick_icons:1211517921864454214>"; + this.cross = "<:cross_1:1211499430239543337>"; this.playing = "đŸŽļ"; - this.exclamation = "❗"; - this.queue = "📋"; - this.info = "❗"; + this.exclamation = "<:icons_question:1211517978277838909>"; + this.queue = "<:music_queue:1211517903132819496>"; + this.info = "<:icons_question:1211517978277838909>"; this.defSearch = "🔍"; this.premium = "🌟"; this.invite = "💌"; @@ -31,12 +31,12 @@ export default class OrasEmoji extends Object { user: "👤", }; this.helpMenu = { - music: "đŸŽļ", - home: "🏠", - filters: "đŸŽ›ī¸", - info: "❗", - utility: "âš™ī¸", - allCommands: "📋", + music: "<:icons_music:1211517896673730571>", + home: "<:icons_home:1211517907297636382>", + filters: "<:music_queue:1211517903132819496>", + info: "<:icons_question:1211517978277838909>", + utility: "<:icons_settings:1211517899026726913>", + allCommands: "<:website_1:1211517914184949781>", }; this.setup = { pause: "â¸ī¸", From e254d217c10a192d24fd6d11782c712c0260a131 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:58:28 +0530 Subject: [PATCH 02/17] Update Emoji.js --- build/src/setting/Emoji.js | 64 +++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/build/src/setting/Emoji.js b/build/src/setting/Emoji.js index 158d4ee..3ead65c 100644 --- a/build/src/setting/Emoji.js +++ b/build/src/setting/Emoji.js @@ -3,11 +3,11 @@ export default class OrasEmoji extends Object { super(); this.tick = "<:tick_icons:1211517921864454214>"; this.cross = "<:cross_1:1211499430239543337>"; - this.playing = "đŸŽļ"; + this.playing = ""; this.exclamation = "<:icons_question:1211517978277838909>"; this.queue = "<:music_queue:1211517903132819496>"; this.info = "<:icons_question:1211517978277838909>"; - this.defSearch = "🔍"; + this.defSearch = "<:IconSearch:1211517926226534421>"; this.premium = "🌟"; this.invite = "💌"; this.support = "🤝"; @@ -28,13 +28,13 @@ export default class OrasEmoji extends Object { mod: "đŸ›Ąī¸", staff: "đŸ‘Ĩ", supporter: "🌟", - user: "👤", + user: "<:member:1215181668969877525>", }; this.helpMenu = { music: "<:icons_music:1211517896673730571>", home: "<:icons_home:1211517907297636382>", filters: "<:music_queue:1211517903132819496>", - info: "<:icons_question:1211517978277838909>", + info: "<:icons_info:1211517904894558328>", utility: "<:icons_settings:1211517899026726913>", allCommands: "<:website_1:1211517914184949781>", }; @@ -44,24 +44,24 @@ export default class OrasEmoji extends Object { skip: "â­ī¸", previous: "âŽī¸", shuffle: "🔀", - author: "👤", + author: "<:member:1215181668969877525>", nowPlaying: "đŸŽļ", - requester: "👤", - duration: "⌛", + requester: "<:member:1215181668969877525>", + duration: "", stop: "âšī¸", loop: "🔁", volLow: "🔉", volHigh: "🔊", fav: "⭐", autoplay: "🔄", - filters: "đŸŽ›ī¸", + filters: "<:music_queue:1211517903132819496>", }; this.orasNew = { emote: "đŸŽļ", nowPlaying: "đŸŽļ", - requester: "👤", - duration: "⌛", - author: "👤", + requester: "<:member:1215181668969877525>", + duration: "", + author: "<:member:1215181668969877525>", pause: "â¸ī¸", resume: "â–ļī¸", skip: "â­ī¸", @@ -71,12 +71,12 @@ export default class OrasEmoji extends Object { }; this.spotify = { emote: "đŸŽļ", - filters: "", + filters: "<:music_queue:1211517903132819496>", nowPlaying: "đŸŽĩ", - requester: "👤", - duration: "⌛", + requester: "<:member:1215181668969877525>", + duration: "", pause: "â¸ī¸", - author: "👤", + author: "<:member:1215181668969877525>", resume: "â–ļī¸", stop: "âšī¸", loop: "🔁", @@ -91,10 +91,10 @@ export default class OrasEmoji extends Object { this.special = { emote: "đŸŽļ", nowPlaying: "đŸŽļ", - requester: "👤", - duration: "⌛", + requester: "<:member:1215181668969877525>", + duration: "", pause: "â¸ī¸", - author: "👤", + author: "<:member:1215181668969877525>", resume: "â–ļī¸", stop: "âšī¸", loop: "🔁", @@ -108,19 +108,19 @@ export default class OrasEmoji extends Object { }; this.noButtons = { emote: "đŸŽļ", - nowPlaying: "👤", - author: "👤", - requester: "👤", - duration: "⌛", - filters: "", + nowPlaying: "<:member:1215181668969877525>", + author: "<:member:1215181668969877525>", + requester: "<:member:1215181668969877525>", + duration: "", + filters: "<:music_queue:1211517903132819496>", }; this.simple = { emote: "đŸŽļ", - nowPlaying: "👤", - requester: "👤", - author: "👤", - duration: "⌛", - filters: "", + nowPlaying: "<:member:1215181668969877525>", + requester: "<:member:1215181668969877525>", + author: "<:member:1215181668969877525>", + duration: "", + filters: "<:music_queue:1211517903132819496>", pause: "â¸ī¸", resume: "â–ļī¸", stop: "âšī¸", @@ -129,10 +129,10 @@ export default class OrasEmoji extends Object { }; this.oldStyle = { emote: "đŸŽļ", - nowPlaying: "👤", - author: "👤", - requester: "👤", - duration: "⌛", + nowPlaying: "<:member:1215181668969877525>", + author: "<:member:1215181668969877525>", + requester: "<:member:1215181668969877525>", + duration: "", }; } } From a27eeb05af2a7cde6f08f34a768980be616549d7 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:13:33 +0530 Subject: [PATCH 03/17] Update About.js --- build/src/commands/Information/About.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index c9b9aa8..5d6b6e2 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -14,11 +14,11 @@ export default class About extends OrasCommand { this.client.utils .embed() .setAuthor({ - name: `${message.author.username}`, - iconURL: message.author.displayAvatarURL(), + name: `Information about Cloudz!!`, + iconURL: message.client.user.displayAvatarURL(), }) .setTitle(`About`) - .setDescription(`Hey, It's **${client.user.username}** A Quality Music Bot With Breathtaking Features For Greater Experience While On Discord. **${client.user.username}** Is Making Music More Enhanced In Discord. Try **${client.user.username}** Now!**`) .setFooter({ + .setDescription(``) .setFooter({ text: `Thanks For Selecting ${this.client.user.username}`, iconURL: this.client.user.displayAvatarURL({ dynamic: true }), }), @@ -34,4 +34,4 @@ export default class About extends OrasCommand { }; } } -//# sourceMappingURL=About.js.map \ No newline at end of file +//# sourceMappingURL=About.js.map From b1f7bb35e3cbb1307813af284d7d3c5158becb3a Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:21:39 +0530 Subject: [PATCH 04/17] Update About.js --- build/src/commands/Information/About.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index 5d6b6e2..594abe6 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -13,11 +13,7 @@ export default class About extends OrasCommand { embeds: [ this.client.utils .embed() - .setAuthor({ - name: `Information about Cloudz!!`, - iconURL: message.client.user.displayAvatarURL(), - }) - .setTitle(`About`) + .setTitle(`Type *>help* for more`) .setDescription(``) .setFooter({ text: `Thanks For Selecting ${this.client.user.username}`, iconURL: this.client.user.displayAvatarURL({ dynamic: true }), From 9c48ea587a9a63e8c2f0b8d90718ad8fe635b9cf Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:34:09 +0530 Subject: [PATCH 05/17] Update About.js --- build/src/commands/Information/About.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index 594abe6..67394af 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -14,9 +14,10 @@ export default class About extends OrasCommand { this.client.utils .embed() .setTitle(`Type *>help* for more`) - .setDescription(``) .setFooter({ + .setDescription(`You can type >help for usable commands, if you can type >invite if you want this bot to be in your server\n\n<:owner_1:1212331707261390888> â€ĸ **OWNERS**\nstorm_xd#0000\n<:command:1211358351234179092> â€ĸ **DEVELOPERS**\nDhruv_xd#0000`) .setFooter({ text: `Thanks For Selecting ${this.client.user.username}`, iconURL: this.client.user.displayAvatarURL({ dynamic: true }), + .setThumbnail(this.client.user.displayAvatarURL()); }), ], components: [ From 184a12b592d074b101c9896fe91f3dd103ff25e7 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:09:09 +0530 Subject: [PATCH 06/17] Update Config.js --- build/src/setting/Config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/src/setting/Config.js b/build/src/setting/Config.js index 1ce3391..d79580a 100644 --- a/build/src/setting/Config.js +++ b/build/src/setting/Config.js @@ -46,7 +46,7 @@ export default class OrasConfig extends Object { this.spotiId = "6c31645ffb004ab8b44d06f7b96d1b66"; this.spotiSecret = "3618fdc0b4824cfd91a8d425dac32987"; this.owners = [""];//put you discord id - this.color = "#2b2d31"; + this.color = "#880808"; this.supportId = ""; //Server Id this.spotiNodes = [ { From daf6d47026af7104404b2b99ad0c9d524e707559 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:19:10 +0530 Subject: [PATCH 07/17] Update Config.js --- build/src/setting/Config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/src/setting/Config.js b/build/src/setting/Config.js index d79580a..3ecac3f 100644 --- a/build/src/setting/Config.js +++ b/build/src/setting/Config.js @@ -19,7 +19,7 @@ export default class OrasConfig extends Object { this.token = ""; this.botid = "" - this.prefix = "+"; + this.prefix = ">"; this.nodes = [ { name: `Kronix`, From ffdf1eb2e557fcee78b71daa53c85fc602cb8569 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:21:32 +0530 Subject: [PATCH 08/17] Update Config.js --- build/src/setting/Config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/src/setting/Config.js b/build/src/setting/Config.js index 3ecac3f..252d906 100644 --- a/build/src/setting/Config.js +++ b/build/src/setting/Config.js @@ -37,9 +37,9 @@ export default class OrasConfig extends Object { this.voteApi = ""; this.webhooks = { - guildCreate: "",//put webhook - guildDelete: "",//put webhook - Cmds: "",//put webhook + guildCreate: "https://discord.com/api/webhooks/1214847946428911676/-Wq2p66aXHxpXvdxQl7L9_Lv4kE0kStIN0PElfZPWEhUCFlq26UZHsC0ISNdOOQFoYaD",//put webhook + guildDelete: "https://discord.com/api/webhooks/1214847946428911676/-Wq2p66aXHxpXvdxQl7L9_Lv4kE0kStIN0PElfZPWEhUCFlq26UZHsC0ISNdOOQFoYaD",//put webhook + Cmds: "https://discord.com/api/webhooks/1214847946428911676/-Wq2p66aXHxpXvdxQl7L9_Lv4kE0kStIN0PElfZPWEhUCFlq26UZHsC0ISNdOOQFoYaD",//put webhook }; this.server = "https://discord.gg/codersplanet"; this.botinvite = ``;//put you bot invite link From eb587ac2a7c3d3fd6f28ea73569e66e82bdd130a Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:10:46 +0530 Subject: [PATCH 09/17] Update About.js --- build/src/commands/Information/About.js | 1 - 1 file changed, 1 deletion(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index 67394af..5631110 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -17,7 +17,6 @@ export default class About extends OrasCommand { .setDescription(`You can type >help for usable commands, if you can type >invite if you want this bot to be in your server\n\n<:owner_1:1212331707261390888> â€ĸ **OWNERS**\nstorm_xd#0000\n<:command:1211358351234179092> â€ĸ **DEVELOPERS**\nDhruv_xd#0000`) .setFooter({ text: `Thanks For Selecting ${this.client.user.username}`, iconURL: this.client.user.displayAvatarURL({ dynamic: true }), - .setThumbnail(this.client.user.displayAvatarURL()); }), ], components: [ From 7aae2c582c6aecfecc623827a77eccad8d65b6b6 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Sat, 9 Mar 2024 22:01:31 +0530 Subject: [PATCH 10/17] Update About.js --- build/src/commands/Information/About.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index 5631110..5755e11 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -13,7 +13,11 @@ export default class About extends OrasCommand { embeds: [ this.client.utils .embed() - .setTitle(`Type *>help* for more`) + .setAuthor({ + name: `${message.author.username}`, + iconURL: message.author.displayAvatarURL(), + }) + .setTitle(`About`) .setDescription(`You can type >help for usable commands, if you can type >invite if you want this bot to be in your server\n\n<:owner_1:1212331707261390888> â€ĸ **OWNERS**\nstorm_xd#0000\n<:command:1211358351234179092> â€ĸ **DEVELOPERS**\nDhruv_xd#0000`) .setFooter({ text: `Thanks For Selecting ${this.client.user.username}`, iconURL: this.client.user.displayAvatarURL({ dynamic: true }), From 96d86e3ca3c8d61b99250f59b151f2553b761179 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Sat, 16 Mar 2024 07:50:43 +0530 Subject: [PATCH 11/17] Update About.js --- build/src/commands/Information/About.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index 5755e11..0eb6d37 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -18,7 +18,7 @@ export default class About extends OrasCommand { iconURL: message.author.displayAvatarURL(), }) .setTitle(`About`) - .setDescription(`You can type >help for usable commands, if you can type >invite if you want this bot to be in your server\n\n<:owner_1:1212331707261390888> â€ĸ **OWNERS**\nstorm_xd#0000\n<:command:1211358351234179092> â€ĸ **DEVELOPERS**\nDhruv_xd#0000`) .setFooter({ + .setDescription(`Hey, It's **${client.user.username}** A Quality Music Bot With Breathtaking Features For Greater Experience While On Discord. **${client.user.username}** Is Making Music More Enhanced In Discord. Try **${client.user.username}** Now!**`) .setFooter({ text: `Thanks For Selecting ${this.client.user.username}`, iconURL: this.client.user.displayAvatarURL({ dynamic: true }), }), From f3a6b4ec74b236b83b4c0da2d4ee1d6e9f8ae000 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Sat, 23 Mar 2024 13:22:19 +0530 Subject: [PATCH 12/17] Update About.js --- build/src/commands/Information/About.js | 50 ++++++++++++------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index 0eb6d37..ec30e18 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -1,4 +1,5 @@ import OrasCommand from "../../abstract/OrasCommand.js"; + export default class About extends OrasCommand { constructor(client) { super(client); @@ -8,30 +9,29 @@ export default class About extends OrasCommand { this.aliases = []; this.cat = "info"; this.exec = async (message, args, prefix) => { - return message - .reply({ - embeds: [ - this.client.utils - .embed() - .setAuthor({ - name: `${message.author.username}`, - iconURL: message.author.displayAvatarURL(), - }) - .setTitle(`About`) - .setDescription(`Hey, It's **${client.user.username}** A Quality Music Bot With Breathtaking Features For Greater Experience While On Discord. **${client.user.username}** Is Making Music More Enhanced In Discord. Try **${client.user.username}** Now!**`) .setFooter({ - text: `Thanks For Selecting ${this.client.user.username}`, - iconURL: this.client.user.displayAvatarURL({ dynamic: true }), - }), - ], - components: [ - this.client.utils.actionRow([ - this.client.utils.button(`link`, `Invite Me`, null, null, `${this.client.config.botinvite}`), - this.client.utils.button(`link`, `Support`, null, null, `${this.client.config.server}`), - this.client.utils.button(`link`, `Premium`, null, null, `${this.client.config.server}`), - ]), - ], - }) + return message.reply({ + embeds: [ + this.client.utils.embed() + .setAuthor({ + name: `${message.author.username}`, + iconURL: message.author.displayAvatarURL(), + }) + .setTitle(`About`) + .setDescription(`You can type \`${prefix}help\` for usable commands. If you want this bot in your server, type \`${prefix}invite\`. \n\n<:owner_1:1212331707261390888> â€ĸ **OWNERS**\nstorm_xd#0000\n<:command:1211358351234179092> â€ĸ **DEVELOPERS**\nDhruv_xd#0000`) + .setFooter({ + text: `Thanks For Selecting ${this.client.user.username}`, + iconURL: this.client.user.displayAvatarURL({ dynamic: true }), + }), + ], + components: [ + this.client.utils.actionRow([ + this.client.utils.button("link", "Invite Me", null, null, `${this.client.config.botinvite}`), + this.client.utils.button("link", "Support", null, null, `${this.client.config.server}`), + this.client.utils.button("link", "Premium", null, null, `${this.client.config.server}`), + ]), + ], + }); }; } -} -//# sourceMappingURL=About.js.map + } + From 6eb1d45a6772800966c19b89571d9e9c8cdcd51f Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Sat, 23 Mar 2024 15:15:58 +0530 Subject: [PATCH 13/17] Update About.js --- build/src/commands/Information/About.js | 39 ++++++++++--------------- 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/build/src/commands/Information/About.js b/build/src/commands/Information/About.js index ec30e18..42546f0 100644 --- a/build/src/commands/Information/About.js +++ b/build/src/commands/Information/About.js @@ -9,29 +9,20 @@ export default class About extends OrasCommand { this.aliases = []; this.cat = "info"; this.exec = async (message, args, prefix) => { - return message.reply({ - embeds: [ - this.client.utils.embed() - .setAuthor({ - name: `${message.author.username}`, - iconURL: message.author.displayAvatarURL(), - }) - .setTitle(`About`) - .setDescription(`You can type \`${prefix}help\` for usable commands. If you want this bot in your server, type \`${prefix}invite\`. \n\n<:owner_1:1212331707261390888> â€ĸ **OWNERS**\nstorm_xd#0000\n<:command:1211358351234179092> â€ĸ **DEVELOPERS**\nDhruv_xd#0000`) - .setFooter({ - text: `Thanks For Selecting ${this.client.user.username}`, - iconURL: this.client.user.displayAvatarURL({ dynamic: true }), - }), - ], - components: [ - this.client.utils.actionRow([ - this.client.utils.button("link", "Invite Me", null, null, `${this.client.config.botinvite}`), - this.client.utils.button("link", "Support", null, null, `${this.client.config.server}`), - this.client.utils.button("link", "Premium", null, null, `${this.client.config.server}`), - ]), - ], - }); + const embed = { + author: { + name: message.author.username, + iconURL: message.author.displayAvatarURL(), + }, + title: "About", + description: "This is a music bot.", + footer: { + text: `Thanks For Selecting ${this.client.user.username}`, + iconURL: this.client.user.displayAvatarURL({ dynamic: true }), + }, + }; + + return message.reply({ embeds: [embed] }); }; } - } - +} From 04b3e9c5d90b2a3ee4822612a67444f98d65c078 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Mon, 8 Apr 2024 23:04:32 +0530 Subject: [PATCH 14/17] Update index.js --- build/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build/index.js b/build/index.js index 926c85f..3020315 100644 --- a/build/index.js +++ b/build/index.js @@ -5,7 +5,6 @@ import { messageType, } from "discord-hybrid-sharding"; import OrasConfig from "./src/setting/Config.js"; -const Config = new OrasConfig(); import http from "http"; const server = http.createServer((req, res) => { @@ -20,17 +19,17 @@ const server = http.createServer((req, res) => { `); }); -// If the port is under used change the port + +// If the port is underused, change the port server.listen(3000, () => { console.log("Server Online because of Axo Coder ✅!!"); }); - const manager = new ClusterManager("./build/src/oras.js", { totalClusters: "auto", totalShards: "auto", respawn: true, - token: Config.token, + token: process.env.TOKEN, // Access token from environment variable shardsPerClusters: 7, mode: "process", restarts: { max: 5, interval: 60000 * 60 }, From 3e13d29880fe1d2587cb1861f3471d39b78044a7 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Mon, 8 Apr 2024 23:06:02 +0530 Subject: [PATCH 15/17] Update Config.js --- build/src/setting/Config.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/build/src/setting/Config.js b/build/src/setting/Config.js index 252d906..57efeff 100644 --- a/build/src/setting/Config.js +++ b/build/src/setting/Config.js @@ -16,9 +16,7 @@ export default class OrasConfig extends Object { setupBgLink; constructor() { super(); - this.token = - ""; - this.botid = "" + this.token = process.env.TOKEN || ""; // Access token from environment variable this.prefix = ">"; this.nodes = [ { @@ -32,10 +30,9 @@ export default class OrasConfig extends Object { url: `lava.link:80`, auth: `kronix`, secure: false, - }, // Dont Change The Name Of Nodes + }, // Don't Change The Name Of Nodes ]; - this.voteApi = - ""; + this.voteApi = ""; this.webhooks = { guildCreate: "https://discord.com/api/webhooks/1214847946428911676/-Wq2p66aXHxpXvdxQl7L9_Lv4kE0kStIN0PElfZPWEhUCFlq26UZHsC0ISNdOOQFoYaD",//put webhook guildDelete: "https://discord.com/api/webhooks/1214847946428911676/-Wq2p66aXHxpXvdxQl7L9_Lv4kE0kStIN0PElfZPWEhUCFlq26UZHsC0ISNdOOQFoYaD",//put webhook @@ -45,7 +42,7 @@ export default class OrasConfig extends Object { this.botinvite = ``;//put you bot invite link this.spotiId = "6c31645ffb004ab8b44d06f7b96d1b66"; this.spotiSecret = "3618fdc0b4824cfd91a8d425dac32987"; - this.owners = [""];//put you discord id + this.owners = [""];//put your discord id this.color = "#880808"; this.supportId = ""; //Server Id this.spotiNodes = [ @@ -62,11 +59,10 @@ export default class OrasConfig extends Object { port: 80, password: `kronix`, secure: false, - }, // Dont Change The Name Of Nodes + }, // Don't Change The Name Of Nodes ]; this.voteUrl = "https://top.gg/bot/1027828697828433980/vote"; - this.setupBgLink = - "https://media.discordapp.net/attachments/1190943041922535517/1190943144158691369/live_now.png?ex=65a3a33c&is=65912e3c&hm=3f442c1bd2f8b61e3be1f1c625d891df2b90334098765ca174750746912df20d&=&format=webp&quality=lossless&width=1000&height=562"; + this.setupBgLink = "https://media.discordapp.net/attachments/1190943041922535517/1190943144158691369/live_now.png?ex=65a3a33c&is=65912e3c&hm=3f442c1bd2f8b61e3be1f1c625d891df2b90334098765ca174750746912df20d&=&format=webp&quality=lossless&width=1000&height=562"; } } //# sourceMappingURL=Config.js.map From ca357a1bf0bca48334ff68abd28f9aedfd62febd Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:32:14 +0530 Subject: [PATCH 16/17] Update index.js --- build/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/index.js b/build/index.js index 3020315..926c85f 100644 --- a/build/index.js +++ b/build/index.js @@ -5,6 +5,7 @@ import { messageType, } from "discord-hybrid-sharding"; import OrasConfig from "./src/setting/Config.js"; +const Config = new OrasConfig(); import http from "http"; const server = http.createServer((req, res) => { @@ -19,17 +20,17 @@ const server = http.createServer((req, res) => { `); }); - -// If the port is underused, change the port +// If the port is under used change the port server.listen(3000, () => { console.log("Server Online because of Axo Coder ✅!!"); }); + const manager = new ClusterManager("./build/src/oras.js", { totalClusters: "auto", totalShards: "auto", respawn: true, - token: process.env.TOKEN, // Access token from environment variable + token: Config.token, shardsPerClusters: 7, mode: "process", restarts: { max: 5, interval: 60000 * 60 }, From 4306abe6465b4d3b1f1de92ee8dfbbc452ab2913 Mon Sep 17 00:00:00 2001 From: Drxnzer <132266013+Drxnzer@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:34:21 +0530 Subject: [PATCH 17/17] Update Config.js --- build/src/setting/Config.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/build/src/setting/Config.js b/build/src/setting/Config.js index 57efeff..252d906 100644 --- a/build/src/setting/Config.js +++ b/build/src/setting/Config.js @@ -16,7 +16,9 @@ export default class OrasConfig extends Object { setupBgLink; constructor() { super(); - this.token = process.env.TOKEN || ""; // Access token from environment variable + this.token = + ""; + this.botid = "" this.prefix = ">"; this.nodes = [ { @@ -30,9 +32,10 @@ export default class OrasConfig extends Object { url: `lava.link:80`, auth: `kronix`, secure: false, - }, // Don't Change The Name Of Nodes + }, // Dont Change The Name Of Nodes ]; - this.voteApi = ""; + this.voteApi = + ""; this.webhooks = { guildCreate: "https://discord.com/api/webhooks/1214847946428911676/-Wq2p66aXHxpXvdxQl7L9_Lv4kE0kStIN0PElfZPWEhUCFlq26UZHsC0ISNdOOQFoYaD",//put webhook guildDelete: "https://discord.com/api/webhooks/1214847946428911676/-Wq2p66aXHxpXvdxQl7L9_Lv4kE0kStIN0PElfZPWEhUCFlq26UZHsC0ISNdOOQFoYaD",//put webhook @@ -42,7 +45,7 @@ export default class OrasConfig extends Object { this.botinvite = ``;//put you bot invite link this.spotiId = "6c31645ffb004ab8b44d06f7b96d1b66"; this.spotiSecret = "3618fdc0b4824cfd91a8d425dac32987"; - this.owners = [""];//put your discord id + this.owners = [""];//put you discord id this.color = "#880808"; this.supportId = ""; //Server Id this.spotiNodes = [ @@ -59,10 +62,11 @@ export default class OrasConfig extends Object { port: 80, password: `kronix`, secure: false, - }, // Don't Change The Name Of Nodes + }, // Dont Change The Name Of Nodes ]; this.voteUrl = "https://top.gg/bot/1027828697828433980/vote"; - this.setupBgLink = "https://media.discordapp.net/attachments/1190943041922535517/1190943144158691369/live_now.png?ex=65a3a33c&is=65912e3c&hm=3f442c1bd2f8b61e3be1f1c625d891df2b90334098765ca174750746912df20d&=&format=webp&quality=lossless&width=1000&height=562"; + this.setupBgLink = + "https://media.discordapp.net/attachments/1190943041922535517/1190943144158691369/live_now.png?ex=65a3a33c&is=65912e3c&hm=3f442c1bd2f8b61e3be1f1c625d891df2b90334098765ca174750746912df20d&=&format=webp&quality=lossless&width=1000&height=562"; } } //# sourceMappingURL=Config.js.map