Skip to content

Commit c9c291b

Browse files
authored
Add files via upload
1 parent 4cfd60e commit c9c291b

30 files changed

+861
-861
lines changed

commands/⚙️ Settings/commands.js

+197-197
Large diffs are not rendered by default.

commands/⚙️ Settings/language.js

+211-211
Large diffs are not rendered by default.

commands/⚙️ Settings/premium.js

+62-62
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
1-
const { MessageEmbed, MessageActionRow, MessageButton } = require(`discord.js`);
2-
const config = require(`${process.cwd()}/botconfig/config.json`);
3-
var ee = require(`${process.cwd()}/botconfig/embed.json`);
4-
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
5-
module.exports = {
6-
name: `premium`,
7-
category: `⚙️ Settings`,
8-
description: `Requests Premium for this Server`,
9-
usage: `premium`,
10-
memberpermissions: [`ADMINISTRATOR`],
11-
type: "bot",
12-
run: async (client, message, args, cmduser, text, prefix) => {
13-
14-
let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
15-
try{
16-
if(client.premium.get("global", "guilds").includes(message.guild.id)){
17-
return message.reply(`❌ **This Guild is already a \`PREMIUM-GUILD\`**`)
18-
}
19-
let theowner = "NO OWNER DATA! ID: ";
20-
await message.guild.fetchOwner().then(({ user }) => {
21-
theowner = user;
22-
}).catch(() => {})
23-
let embed = new MessageEmbed()
24-
.setColor("GREEN")
25-
.setTitle(`✅ A new Server requests **PREMIUM**`)
26-
.addField("Guild Info", `>>> \`\`\`${message.guild.name} (${message.guild.id})\`\`\``)
27-
.addField("Owner Info", `>>> \`\`\`${theowner ? `${theowner.tag} (${theowner.id})` : `${theowner} (${message.guild.ownerId})`}\`\`\``)
28-
.addField("Member Count", `>>> \`\`\`${message.guild.memberCount}\`\`\``)
29-
.addField("Requested By:", `>>> \`\`\`${message.author.tag} (${message.author.id})\`\`\``)
30-
.setThumbnail(message.guild.iconURL({dynamic: true}))
31-
.setFooter(`${message.author.id}-${message.guild.id}`, message.author.displayAvatarURL({dynamic: true}))
32-
for(const owner of config.ownerIDS){
33-
client.users.fetch(owner).then(user => {
34-
user.send({ embeds: [embed], components: [
35-
new MessageActionRow().addComponents([
36-
new MessageButton().setStyle("SUCCESS").setEmoji("✅").setCustomId("PREMIUM-ACCEPT").setLabel("Accept"),
37-
new MessageButton().setStyle("DANGER").setEmoji("❌").setCustomId("PREMIUM-DENY").setLabel("Deny")
38-
])
39-
] }).catch(() => {});
40-
}).catch(() => {});
41-
}
42-
return message.reply(`✅ **APPLIED FOR PREMIUM**`)
43-
} catch (e) {
44-
console.log(String(e.stack).grey.bgRed)
45-
return message.reply({embeds : [new MessageEmbed()
46-
.setColor(es.wrongcolor)
47-
.setFooter(es.footertext, es.footericon)
48-
.setTitle(client.la[ls].common.erroroccur)
49-
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
50-
]});
51-
}
52-
}
53-
};
54-
/**
55-
* @INFO
56-
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
57-
* @INFO
58-
* Work for Milrato Development | https://milrato.dev
59-
* @INFO
60-
* Please mention him / Milrato Development, when using this Code!
61-
* @INFO
62-
*/
1+
const { MessageEmbed, MessageActionRow, MessageButton } = require(`discord.js`);
2+
const config = require(`${process.cwd()}/botconfig/config.json`);
3+
var ee = require(`${process.cwd()}/botconfig/embed.json`);
4+
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
5+
module.exports = {
6+
name: `premium`,
7+
category: `⚙️ Settings`,
8+
description: `Requests Premium for this Server`,
9+
usage: `premium`,
10+
memberpermissions: [`ADMINISTRATOR`],
11+
type: "bot",
12+
run: async (client, message, args, cmduser, text, prefix) => {
13+
14+
let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
15+
try{
16+
if(client.premium.get("global", "guilds").includes(message.guild.id)){
17+
return message.reply(`❌ **This Guild is already a \`PREMIUM-GUILD\`**`)
18+
}
19+
let theowner = "NO OWNER DATA! ID: ";
20+
await message.guild.fetchOwner().then(({ user }) => {
21+
theowner = user;
22+
}).catch(() => {})
23+
let embed = new MessageEmbed()
24+
.setColor("GREEN")
25+
.setTitle(`✅ A new Server requests **PREMIUM**`)
26+
.addField("Guild Info", `>>> \`\`\`${message.guild.name} (${message.guild.id})\`\`\``)
27+
.addField("Owner Info", `>>> \`\`\`${theowner ? `${theowner.tag} (${theowner.id})` : `${theowner} (${message.guild.ownerId})`}\`\`\``)
28+
.addField("Member Count", `>>> \`\`\`${message.guild.memberCount}\`\`\``)
29+
.addField("Requested By:", `>>> \`\`\`${message.author.tag} (${message.author.id})\`\`\``)
30+
.setThumbnail(message.guild.iconURL({dynamic: true}))
31+
.setFooter(`${message.author.id}-${message.guild.id}`, message.author.displayAvatarURL({dynamic: true}))
32+
for(const owner of config.ownerIDS){
33+
client.users.fetch(owner).then(user => {
34+
user.send({ embeds: [embed], components: [
35+
new MessageActionRow().addComponents([
36+
new MessageButton().setStyle("SUCCESS").setEmoji("✅").setCustomId("PREMIUM-ACCEPT").setLabel("Accept"),
37+
new MessageButton().setStyle("DANGER").setEmoji("❌").setCustomId("PREMIUM-DENY").setLabel("Deny")
38+
])
39+
] }).catch(() => {});
40+
}).catch(() => {});
41+
}
42+
return message.reply(`✅ **APPLIED FOR PREMIUM**`)
43+
} catch (e) {
44+
console.log(String(e.stack).grey.bgRed)
45+
return message.reply({embeds : [new MessageEmbed()
46+
.setColor(es.wrongcolor)
47+
.setFooter(es.footertext, es.footericon)
48+
.setTitle(client.la[ls].common.erroroccur)
49+
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
50+
]});
51+
}
52+
}
53+
};
54+
/**
55+
* @INFO
56+
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
57+
* @INFO
58+
* Work for Milrato Development | https://milrato.dev
59+
* @INFO
60+
* Please mention him / Milrato Development, when using this Code!
61+
* @INFO
62+
*/

commands/⚙️ Settings/reset.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { MessageEmbed } = require(`discord.js`);
2-
const { databasing } = require("../../handlers/functions");
2+
const { databasing } = require(`${process.cwd()}/handlers/functions`);
33
const config = require(`${process.cwd()}/botconfig/config.json`);
44
var ee = require(`${process.cwd()}/botconfig/embed.json`);
55
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);

commands/⚙️ Settings/setup-music.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ var Discord = require(`discord.js`);
33
var config = require(`${process.cwd()}/botconfig/config.json`);
44
var ee = require(`${process.cwd()}/botconfig/embed.json`);
55
var emoji = require(`${process.cwd()}/botconfig/emojis.json`);
6-
var radios = require(`../../botconfig/radiostations.json`);
7-
var playermanager = require(`../../handlers/playermanager`);
6+
var radios = require(`${process.cwd()}/botconfig/radiostations.json`);
7+
var playermanager = require(`${process.cwd()}/handlers/playermanager`);
88
var { stations, databasing } = require(`${process.cwd()}/handlers/functions`);
99
const { MessageButton, MessageActionRow, MessageSelectMenu } = require('discord.js')
1010
module.exports = {
+44-44
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
const {
2-
MessageEmbed
3-
} = require("discord.js");
4-
const config = require(`${process.cwd()}/botconfig/config.json`);
5-
var ee = require(`${process.cwd()}/botconfig/embed.json`);
6-
const emoji = require("../../botconfig/emojis.json");
7-
module.exports = {
8-
name: "toggledisabled",
9-
aliases: [ "toggleshowdisabled" ],
10-
category: "⚙️ Settings",
11-
description: "Toggles if the Bot help Message should show Disabled Commands or not [DEFAULT: true]",
12-
usage: "toggledisabled",
13-
type: "bot",
14-
run: async (client, message, args, cmduser, text, prefix) => {
15-
16-
let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
17-
try {
18-
19-
client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "showdisabled"), `showdisabled`);
20-
return message.reply({embeds : [new MessageEmbed()
21-
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
22-
.setFooter(es.footertext, es.footericon)
23-
.setTitle(`<a:yes:833101995723194437> ${client.settings.get(message.guild.id, "showdisabled") ? "Enabled": "Disabled"} Disabled-Cmds Showing`)
24-
.setDescription(`${client.settings.get(message.guild.id, "showdisabled") ? "I will now show disabled commands in the Help Menu" : "I will not show disabled Commands in the Help Menu"}`.substr(0, 2048))
25-
]});
26-
} catch (e) {
27-
console.log(String(e.stack).grey.bgRed)
28-
return message.reply({embeds :[new MessageEmbed()
29-
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
30-
.setTitle(client.la[ls].common.erroroccur)
31-
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
32-
]} );
33-
}
34-
}
35-
};
36-
/**
37-
* @INFO
38-
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
39-
* @INFO
40-
* Work for Milrato Development | https://milrato.dev
41-
* @INFO
42-
* Please mention him / Milrato Development, when using this Code!
43-
* @INFO
44-
*/
1+
const {
2+
MessageEmbed
3+
} = require("discord.js");
4+
const config = require(`${process.cwd()}/botconfig/config.json`);
5+
var ee = require(`${process.cwd()}/botconfig/embed.json`);
6+
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
7+
module.exports = {
8+
name: "toggledisabled",
9+
aliases: [ "toggleshowdisabled" ],
10+
category: "⚙️ Settings",
11+
description: "Toggles if the Bot help Message should show Disabled Commands or not [DEFAULT: true]",
12+
usage: "toggledisabled",
13+
type: "bot",
14+
run: async (client, message, args, cmduser, text, prefix) => {
15+
16+
let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
17+
try {
18+
19+
client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "showdisabled"), `showdisabled`);
20+
return message.reply({embeds : [new MessageEmbed()
21+
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
22+
.setFooter(es.footertext, es.footericon)
23+
.setTitle(`<a:yes:833101995723194437> ${client.settings.get(message.guild.id, "showdisabled") ? "Enabled": "Disabled"} Disabled-Cmds Showing`)
24+
.setDescription(`${client.settings.get(message.guild.id, "showdisabled") ? "I will now show disabled commands in the Help Menu" : "I will not show disabled Commands in the Help Menu"}`.substr(0, 2048))
25+
]});
26+
} catch (e) {
27+
console.log(String(e.stack).grey.bgRed)
28+
return message.reply({embeds :[new MessageEmbed()
29+
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
30+
.setTitle(client.la[ls].common.erroroccur)
31+
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
32+
]} );
33+
}
34+
}
35+
};
36+
/**
37+
* @INFO
38+
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
39+
* @INFO
40+
* Work for Milrato Development | https://milrato.dev
41+
* @INFO
42+
* Please mention him / Milrato Development, when using this Code!
43+
* @INFO
44+
*/

commands/⚙️ Settings/toggleplaymessage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { MessageEmbed } = require("discord.js");
22
const config = require(`${process.cwd()}/botconfig/config.json`);
33
var ee = require(`${process.cwd()}/botconfig/embed.json`);
4-
const emoji = require("../../botconfig/emojis.json");
4+
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
55
module.exports = {
66
name: "toggleplaymessage",
77
aliases: ["toggleplaymsg", "playmessage", "playmsg", "toggleprunning", "pruning", "prunning", "toggeldebug", "debug"],
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
const {
2-
MessageEmbed
3-
} = require("discord.js");
4-
const config = require(`${process.cwd()}/botconfig/config.json`);
5-
var ee = require(`${process.cwd()}/botconfig/embed.json`);
6-
const emoji = require("../../botconfig/emojis.json");
7-
module.exports = {
8-
name: "toggleunknowncommandinfo",
9-
aliases: ["toggleunknowncmdinfo", "toggleunknowninfo", "unknowncmdinfo", "unknowninfo", "unknowncommandinfo"],
10-
category: "⚙️ Settings",
11-
description: "Toggles if the Bot should send you an Informational Message, when the Command is NOT FOUND",
12-
usage: "toggleunknowncommandinfo",
13-
type: "bot",
14-
run: async (client, message, args, cmduser, text, prefix) => {
15-
16-
let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
17-
try {
18-
19-
client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "unkowncmdmessage"), `unkowncmdmessage`);
20-
return message.reply({embeds : [new MessageEmbed()
21-
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
22-
.setFooter(es.footertext, es.footericon)
23-
.setTitle(eval(client.la[ls]["cmds"]["settings"]["toggleunknowncommandinfo"]["variable1"]))
24-
.setDescription(`${client.settings.get(message.guild.id, "unkowncmdmessage") ? "I will now send an Information when the Command is not found" : "I will not send Information of Unknown Commands"}`.substr(0, 2048))
25-
]});
26-
} catch (e) {
27-
console.log(String(e.stack).grey.bgRed)
28-
return message.reply({embeds :[new MessageEmbed()
29-
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
30-
.setTitle(client.la[ls].common.erroroccur)
31-
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
32-
]} );
33-
}
34-
}
35-
};
36-
/**
37-
* @INFO
38-
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
39-
* @INFO
40-
* Work for Milrato Development | https://milrato.dev
41-
* @INFO
42-
* Please mention him / Milrato Development, when using this Code!
43-
* @INFO
44-
*/
1+
const {
2+
MessageEmbed
3+
} = require("discord.js");
4+
const config = require(`${process.cwd()}/botconfig/config.json`);
5+
var ee = require(`${process.cwd()}/botconfig/embed.json`);
6+
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
7+
module.exports = {
8+
name: "toggleunknowncommandinfo",
9+
aliases: ["toggleunknowncmdinfo", "toggleunknowninfo", "unknowncmdinfo", "unknowninfo", "unknowncommandinfo"],
10+
category: "⚙️ Settings",
11+
description: "Toggles if the Bot should send you an Informational Message, when the Command is NOT FOUND",
12+
usage: "toggleunknowncommandinfo",
13+
type: "bot",
14+
run: async (client, message, args, cmduser, text, prefix) => {
15+
16+
let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
17+
try {
18+
19+
client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "unkowncmdmessage"), `unkowncmdmessage`);
20+
return message.reply({embeds : [new MessageEmbed()
21+
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
22+
.setFooter(es.footertext, es.footericon)
23+
.setTitle(eval(client.la[ls]["cmds"]["settings"]["toggleunknowncommandinfo"]["variable1"]))
24+
.setDescription(`${client.settings.get(message.guild.id, "unkowncmdmessage") ? "I will now send an Information when the Command is not found" : "I will not send Information of Unknown Commands"}`.substr(0, 2048))
25+
]});
26+
} catch (e) {
27+
console.log(String(e.stack).grey.bgRed)
28+
return message.reply({embeds :[new MessageEmbed()
29+
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
30+
.setTitle(client.la[ls].common.erroroccur)
31+
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
32+
]} );
33+
}
34+
}
35+
};
36+
/**
37+
* @INFO
38+
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
39+
* @INFO
40+
* Work for Milrato Development | https://milrato.dev
41+
* @INFO
42+
* Please mention him / Milrato Development, when using this Code!
43+
* @INFO
44+
*/

commands/🎶 Music/addprevious.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
const config = require(`${process.cwd()}/botconfig/config.json`);
66
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
77
const ee = require(`${process.cwd()}/botconfig/embed.json`);
8-
const playermanager = require(`../../handlers/playermanager`);
8+
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
99
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
1010
module.exports = {
1111
name: `addprevious`,

commands/🎶 Music/addsimilar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
const config = require(`${process.cwd()}/botconfig/config.json`);
66
var ee = require(`${process.cwd()}/botconfig/embed.json`);
77
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
8-
const playermanager = require(`../../handlers/playermanager`);
8+
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
99
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
1010
module.exports = {
1111
name: `addsimilar`,

commands/🎶 Music/autoplay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
const config = require(`${process.cwd()}/botconfig/config.json`);
66
const ee = require(`${process.cwd()}/botconfig/embed.json`);
77
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
8-
const playermanager = require(`../../handlers/playermanager`);
8+
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
99
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
1010
module.exports = {
1111
name: `autoplay`,

commands/🎶 Music/join.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
const config = require(`${process.cwd()}/botconfig/config.json`);
66
const ee = require(`${process.cwd()}/botconfig/embed.json`);
77
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
8-
const playermanager = require(`../../handlers/playermanager`);
8+
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
99
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
1010
module.exports = {
1111
name: `join`,

commands/🎶 Music/play.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
const config = require(`${process.cwd()}/botconfig/config.json`);
66
const ee = require(`${process.cwd()}/botconfig/embed.json`);
77
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
8-
const playermanager = require(`../../handlers/playermanager`);
8+
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
99
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
1010
module.exports = {
1111
name: `play`,

commands/🎶 Music/playlist.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
const config = require(`${process.cwd()}/botconfig/config.json`);
66
const ee = require(`${process.cwd()}/botconfig/embed.json`);
77
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
8-
const playermanager = require(`../../handlers/playermanager`);
8+
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
99
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
1010
module.exports = {
1111
name: `playlist`,

commands/🎶 Music/playmusicmix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
const config = require(`${process.cwd()}/botconfig/config.json`);
66
const ee = require(`${process.cwd()}/botconfig/embed.json`);
77
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
8-
const playermanager = require(`../../handlers/playermanager`);
8+
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
99
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
1010
module.exports = {
1111
name: `playmusicmix`,

0 commit comments

Comments
 (0)