Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomato6966 committed Nov 11, 2021
1 parent 4cfd60e commit c9c291b
Show file tree
Hide file tree
Showing 30 changed files with 861 additions and 861 deletions.
394 changes: 197 additions & 197 deletions commands/⚙️ Settings/commands.js

Large diffs are not rendered by default.

422 changes: 211 additions & 211 deletions commands/⚙️ Settings/language.js

Large diffs are not rendered by default.

124 changes: 62 additions & 62 deletions commands/⚙️ Settings/premium.js
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
const { MessageEmbed, MessageActionRow, MessageButton } = require(`discord.js`);
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
module.exports = {
name: `premium`,
category: `⚙️ Settings`,
description: `Requests Premium for this Server`,
usage: `premium`,
memberpermissions: [`ADMINISTRATOR`],
type: "bot",
run: async (client, message, args, cmduser, text, prefix) => {

let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
try{
if(client.premium.get("global", "guilds").includes(message.guild.id)){
return message.reply(`❌ **This Guild is already a \`PREMIUM-GUILD\`**`)
}
let theowner = "NO OWNER DATA! ID: ";
await message.guild.fetchOwner().then(({ user }) => {
theowner = user;
}).catch(() => {})
let embed = new MessageEmbed()
.setColor("GREEN")
.setTitle(`✅ A new Server requests **PREMIUM**`)
.addField("Guild Info", `>>> \`\`\`${message.guild.name} (${message.guild.id})\`\`\``)
.addField("Owner Info", `>>> \`\`\`${theowner ? `${theowner.tag} (${theowner.id})` : `${theowner} (${message.guild.ownerId})`}\`\`\``)
.addField("Member Count", `>>> \`\`\`${message.guild.memberCount}\`\`\``)
.addField("Requested By:", `>>> \`\`\`${message.author.tag} (${message.author.id})\`\`\``)
.setThumbnail(message.guild.iconURL({dynamic: true}))
.setFooter(`${message.author.id}-${message.guild.id}`, message.author.displayAvatarURL({dynamic: true}))
for(const owner of config.ownerIDS){
client.users.fetch(owner).then(user => {
user.send({ embeds: [embed], components: [
new MessageActionRow().addComponents([
new MessageButton().setStyle("SUCCESS").setEmoji("✅").setCustomId("PREMIUM-ACCEPT").setLabel("Accept"),
new MessageButton().setStyle("DANGER").setEmoji("❌").setCustomId("PREMIUM-DENY").setLabel("Deny")
])
] }).catch(() => {});
}).catch(() => {});
}
return message.reply(`✅ **APPLIED FOR PREMIUM**`)
} catch (e) {
console.log(String(e.stack).grey.bgRed)
return message.reply({embeds : [new MessageEmbed()
.setColor(es.wrongcolor)
.setFooter(es.footertext, es.footericon)
.setTitle(client.la[ls].common.erroroccur)
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
]});
}
}
};
/**
* @INFO
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
* @INFO
* Work for Milrato Development | https://milrato.dev
* @INFO
* Please mention him / Milrato Development, when using this Code!
* @INFO
*/
const { MessageEmbed, MessageActionRow, MessageButton } = require(`discord.js`);
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
module.exports = {
name: `premium`,
category: `⚙️ Settings`,
description: `Requests Premium for this Server`,
usage: `premium`,
memberpermissions: [`ADMINISTRATOR`],
type: "bot",
run: async (client, message, args, cmduser, text, prefix) => {

let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
try{
if(client.premium.get("global", "guilds").includes(message.guild.id)){
return message.reply(`❌ **This Guild is already a \`PREMIUM-GUILD\`**`)
}
let theowner = "NO OWNER DATA! ID: ";
await message.guild.fetchOwner().then(({ user }) => {
theowner = user;
}).catch(() => {})
let embed = new MessageEmbed()
.setColor("GREEN")
.setTitle(`✅ A new Server requests **PREMIUM**`)
.addField("Guild Info", `>>> \`\`\`${message.guild.name} (${message.guild.id})\`\`\``)
.addField("Owner Info", `>>> \`\`\`${theowner ? `${theowner.tag} (${theowner.id})` : `${theowner} (${message.guild.ownerId})`}\`\`\``)
.addField("Member Count", `>>> \`\`\`${message.guild.memberCount}\`\`\``)
.addField("Requested By:", `>>> \`\`\`${message.author.tag} (${message.author.id})\`\`\``)
.setThumbnail(message.guild.iconURL({dynamic: true}))
.setFooter(`${message.author.id}-${message.guild.id}`, message.author.displayAvatarURL({dynamic: true}))
for(const owner of config.ownerIDS){
client.users.fetch(owner).then(user => {
user.send({ embeds: [embed], components: [
new MessageActionRow().addComponents([
new MessageButton().setStyle("SUCCESS").setEmoji("✅").setCustomId("PREMIUM-ACCEPT").setLabel("Accept"),
new MessageButton().setStyle("DANGER").setEmoji("❌").setCustomId("PREMIUM-DENY").setLabel("Deny")
])
] }).catch(() => {});
}).catch(() => {});
}
return message.reply(`✅ **APPLIED FOR PREMIUM**`)
} catch (e) {
console.log(String(e.stack).grey.bgRed)
return message.reply({embeds : [new MessageEmbed()
.setColor(es.wrongcolor)
.setFooter(es.footertext, es.footericon)
.setTitle(client.la[ls].common.erroroccur)
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
]});
}
}
};
/**
* @INFO
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
* @INFO
* Work for Milrato Development | https://milrato.dev
* @INFO
* Please mention him / Milrato Development, when using this Code!
* @INFO
*/
2 changes: 1 addition & 1 deletion commands/⚙️ Settings/reset.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { MessageEmbed } = require(`discord.js`);
const { databasing } = require("../../handlers/functions");
const { databasing } = require(`${process.cwd()}/handlers/functions`);
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
Expand Down
4 changes: 2 additions & 2 deletions commands/⚙️ Settings/setup-music.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ var Discord = require(`discord.js`);
var config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
var emoji = require(`${process.cwd()}/botconfig/emojis.json`);
var radios = require(`../../botconfig/radiostations.json`);
var playermanager = require(`../../handlers/playermanager`);
var radios = require(`${process.cwd()}/botconfig/radiostations.json`);
var playermanager = require(`${process.cwd()}/handlers/playermanager`);
var { stations, databasing } = require(`${process.cwd()}/handlers/functions`);
const { MessageButton, MessageActionRow, MessageSelectMenu } = require('discord.js')
module.exports = {
Expand Down
88 changes: 44 additions & 44 deletions commands/⚙️ Settings/toggledisabled.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
const {
MessageEmbed
} = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require("../../botconfig/emojis.json");
module.exports = {
name: "toggledisabled",
aliases: [ "toggleshowdisabled" ],
category: "⚙️ Settings",
description: "Toggles if the Bot help Message should show Disabled Commands or not [DEFAULT: true]",
usage: "toggledisabled",
type: "bot",
run: async (client, message, args, cmduser, text, prefix) => {

let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
try {

client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "showdisabled"), `showdisabled`);
return message.reply({embeds : [new MessageEmbed()
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
.setFooter(es.footertext, es.footericon)
.setTitle(`<a:yes:833101995723194437> ${client.settings.get(message.guild.id, "showdisabled") ? "Enabled": "Disabled"} Disabled-Cmds Showing`)
.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))
]});
} catch (e) {
console.log(String(e.stack).grey.bgRed)
return message.reply({embeds :[new MessageEmbed()
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
.setTitle(client.la[ls].common.erroroccur)
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
]} );
}
}
};
/**
* @INFO
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
* @INFO
* Work for Milrato Development | https://milrato.dev
* @INFO
* Please mention him / Milrato Development, when using this Code!
* @INFO
*/
const {
MessageEmbed
} = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
module.exports = {
name: "toggledisabled",
aliases: [ "toggleshowdisabled" ],
category: "⚙️ Settings",
description: "Toggles if the Bot help Message should show Disabled Commands or not [DEFAULT: true]",
usage: "toggledisabled",
type: "bot",
run: async (client, message, args, cmduser, text, prefix) => {

let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
try {

client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "showdisabled"), `showdisabled`);
return message.reply({embeds : [new MessageEmbed()
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
.setFooter(es.footertext, es.footericon)
.setTitle(`<a:yes:833101995723194437> ${client.settings.get(message.guild.id, "showdisabled") ? "Enabled": "Disabled"} Disabled-Cmds Showing`)
.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))
]});
} catch (e) {
console.log(String(e.stack).grey.bgRed)
return message.reply({embeds :[new MessageEmbed()
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
.setTitle(client.la[ls].common.erroroccur)
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
]} );
}
}
};
/**
* @INFO
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
* @INFO
* Work for Milrato Development | https://milrato.dev
* @INFO
* Please mention him / Milrato Development, when using this Code!
* @INFO
*/
2 changes: 1 addition & 1 deletion commands/⚙️ Settings/toggleplaymessage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { MessageEmbed } = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require("../../botconfig/emojis.json");
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
module.exports = {
name: "toggleplaymessage",
aliases: ["toggleplaymsg", "playmessage", "playmsg", "toggleprunning", "pruning", "prunning", "toggeldebug", "debug"],
Expand Down
88 changes: 44 additions & 44 deletions commands/⚙️ Settings/toggleunknowncommandinfo.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
const {
MessageEmbed
} = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require("../../botconfig/emojis.json");
module.exports = {
name: "toggleunknowncommandinfo",
aliases: ["toggleunknowncmdinfo", "toggleunknowninfo", "unknowncmdinfo", "unknowninfo", "unknowncommandinfo"],
category: "⚙️ Settings",
description: "Toggles if the Bot should send you an Informational Message, when the Command is NOT FOUND",
usage: "toggleunknowncommandinfo",
type: "bot",
run: async (client, message, args, cmduser, text, prefix) => {

let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
try {

client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "unkowncmdmessage"), `unkowncmdmessage`);
return message.reply({embeds : [new MessageEmbed()
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
.setFooter(es.footertext, es.footericon)
.setTitle(eval(client.la[ls]["cmds"]["settings"]["toggleunknowncommandinfo"]["variable1"]))
.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))
]});
} catch (e) {
console.log(String(e.stack).grey.bgRed)
return message.reply({embeds :[new MessageEmbed()
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
.setTitle(client.la[ls].common.erroroccur)
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
]} );
}
}
};
/**
* @INFO
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
* @INFO
* Work for Milrato Development | https://milrato.dev
* @INFO
* Please mention him / Milrato Development, when using this Code!
* @INFO
*/
const {
MessageEmbed
} = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
module.exports = {
name: "toggleunknowncommandinfo",
aliases: ["toggleunknowncmdinfo", "toggleunknowninfo", "unknowncmdinfo", "unknowninfo", "unknowncommandinfo"],
category: "⚙️ Settings",
description: "Toggles if the Bot should send you an Informational Message, when the Command is NOT FOUND",
usage: "toggleunknowncommandinfo",
type: "bot",
run: async (client, message, args, cmduser, text, prefix) => {

let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
try {

client.settings.set(message.guild.id, !client.settings.get(message.guild.id, "unkowncmdmessage"), `unkowncmdmessage`);
return message.reply({embeds : [new MessageEmbed()
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
.setFooter(es.footertext, es.footericon)
.setTitle(eval(client.la[ls]["cmds"]["settings"]["toggleunknowncommandinfo"]["variable1"]))
.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))
]});
} catch (e) {
console.log(String(e.stack).grey.bgRed)
return message.reply({embeds :[new MessageEmbed()
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
.setTitle(client.la[ls].common.erroroccur)
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
]} );
}
}
};
/**
* @INFO
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
* @INFO
* Work for Milrato Development | https://milrato.dev
* @INFO
* Please mention him / Milrato Development, when using this Code!
* @INFO
*/
2 changes: 1 addition & 1 deletion commands/🎶 Music/addprevious.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
const config = require(`${process.cwd()}/botconfig/config.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const ee = require(`${process.cwd()}/botconfig/embed.json`);
const playermanager = require(`../../handlers/playermanager`);
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
module.exports = {
name: `addprevious`,
Expand Down
2 changes: 1 addition & 1 deletion commands/🎶 Music/addsimilar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const playermanager = require(`../../handlers/playermanager`);
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
module.exports = {
name: `addsimilar`,
Expand Down
2 changes: 1 addition & 1 deletion commands/🎶 Music/autoplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
const config = require(`${process.cwd()}/botconfig/config.json`);
const ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const playermanager = require(`../../handlers/playermanager`);
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
module.exports = {
name: `autoplay`,
Expand Down
2 changes: 1 addition & 1 deletion commands/🎶 Music/join.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
const config = require(`${process.cwd()}/botconfig/config.json`);
const ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const playermanager = require(`../../handlers/playermanager`);
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
module.exports = {
name: `join`,
Expand Down
2 changes: 1 addition & 1 deletion commands/🎶 Music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
const config = require(`${process.cwd()}/botconfig/config.json`);
const ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const playermanager = require(`../../handlers/playermanager`);
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
module.exports = {
name: `play`,
Expand Down
2 changes: 1 addition & 1 deletion commands/🎶 Music/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
const config = require(`${process.cwd()}/botconfig/config.json`);
const ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const playermanager = require(`../../handlers/playermanager`);
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
module.exports = {
name: `playlist`,
Expand Down
2 changes: 1 addition & 1 deletion commands/🎶 Music/playmusicmix.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
const config = require(`${process.cwd()}/botconfig/config.json`);
const ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const playermanager = require(`../../handlers/playermanager`);
const playermanager = require(`${process.cwd()}/handlers/playermanager`);
const { handlemsg } = require(`${process.cwd()}/handlers/functions`);
module.exports = {
name: `playmusicmix`,
Expand Down
Loading

0 comments on commit c9c291b

Please sign in to comment.