-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cfd60e
commit c9c291b
Showing
30 changed files
with
861 additions
and
861 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.