Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sobhan-SRZA authored Dec 25, 2022
1 parent 1872ae9 commit 3c1edf5
Show file tree
Hide file tree
Showing 73 changed files with 6,984 additions and 1,039 deletions.
29 changes: 29 additions & 0 deletions LISENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2022, Sobhan-SRZA(Mr.SIN RE#1528) & Persian Caesar
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12 changes: 6 additions & 6 deletions commands/Help 🆘/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ module.exports = {
.setColor(client.colors.none)
.setDescription(`**this embed show you bot commands and categorys.**`)
.addField(`Commands[\`${client.commands.size}\`] & SlashCommands[\`${client.slashCommands.size}\`] Categories `,`${'**' + client.categories.map(i => '`' + i + '`').join(' , ') + '**'}`,false)
.addField(`Help 🆘 [${client.commands.filter(c => c.category === 'Help 🆘').size}]`,`This category of commands is to request help from bot founders and see all bot commands.`,false)
.addField(`Infos 📊 [${client.commands.filter(c => c.category === 'Infos 📊').size}]`,`Using these commands, you can get the information you want about the bot.`,false)
.addField(`Setup 💻 [${client.commands.filter(c => c.category === 'Setup 💻').size}]`,`Using these bot commands, you can configure the bot on your server.\nThese commands are for server admins only.`,false)
.addField(`Ticket 🎫 [${client.commands.filter(c => c.category === 'Ticket 🎫').size}]`,`With these bot commands, you can create private channels to communicate with admins and other important people, which we call these channels, channel tickets. These commands are all related to ticket channels.`,false)
.addField(`VIP 💎 [${client.commands.filter(c => c.category === 'VIP 💎').size}]`,`This batch of bot commands is for important people who have purchased bot premium.\nIn order to use these commands, you need to buy the bot insurance premium to become one of the special people.\n(These commands are locked for others)`,false)
.addField(`Owner 👑 [${client.commands.filter(c => c.category === 'Owner 👑').size}]`,`This category of bot commands is only for founders and cannot be used by other people.\nThese commands are for editing the bot and setting it up.`,false)
.addField(`Help 🆘 [${client.commands.filter(c => c.category === 'Help 🆘').size}]`,`This category of commands is to request help from bot founders and see all bot commands.`,true)
.addField(`Infos 📊 [${client.commands.filter(c => c.category === 'Infos 📊').size}]`,`Using these commands, you can get the information you want about the bot.`,true)
.addField(`Setup 💻 [${client.commands.filter(c => c.category === 'Setup 💻').size}]`,`Using these bot commands, you can configure the bot on your server.\nThese commands are for server admins only.`,true)
.addField(`Ticket 🎫 [${client.commands.filter(c => c.category === 'Ticket 🎫').size}]`,`With these bot commands, you can create private channels to communicate with admins and other important people, which we call these channels, channel tickets. These commands are all related to ticket channels.`,true)
.addField(`VIP 💎 [${client.commands.filter(c => c.category === 'VIP 💎').size}]`,`This batch of bot commands is for important people who have purchased bot premium.\nIn order to use these commands, you need to buy the bot insurance premium to become one of the special people.\n(These commands are locked for others)`,true)
.addField(`Owner 👑 [${client.commands.filter(c => c.category === 'Owner 👑').size}]`,`This category of bot commands is only for founders and cannot be used by other people.\nThese commands are for editing the bot and setting it up.`,true)
.setThumbnail(client.user.displayAvatarURL({ dynamic: true }))
.setTimestamp()
.addField('Important Links', `**[Invite Me](${client.config.discord.invite}) | [Support Server](${client.config.discord.server_support||"https://discord.gg/5GYNec4urW"})**`,false)
Expand Down
14 changes: 7 additions & 7 deletions commands/Help 🆘/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ const choice = args.slice().join(" ");
}
}
/**
* @INFO
* Bot Coded by Mr.SIN RE#1528 :) | https://discord.gg/rsQGcSfyJs
* @INFO
* Work for SIZAR Team | https://discord.gg/rsQGcSfyJs
* @INFO
* Please Mention Us SIZAR Team, When Using This Code!
* @INFO
* @Info
* Bot Coded by Mr.SIN RE#1528 :) | https://dsc.gg/persian-caesar
* @Info
* Work for Persian Caesar | https://dsc.gg/persian-caesar
* @Info
* Please Mention Us "Persian Caesar", When Have Problem With Using This Code!
* @Info
*/
25 changes: 12 additions & 13 deletions commands/Infos 📊/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let infoEmbed = new Discord.MessageEmbed()
.addField(`${bot.emotes.id}| ID:`,`${bot.emotes.reply}** User Id: ${bot.user.id}**`,true)
.addField(`${bot.emotes.tag}| Tag:`, `${bot.emotes.reply}**${bot.user.tag}**`,true)
.addField(bot.emotes.ping+"| Ping",`**${bot.emotes.reply} User Ping Is: \`${Math.round(bot.ws.ping)}MS\`**`,true)
.addField(bot.emotes.uptime+"| Uptime", `${bot.emotes.reply}** Time Of Bot Online: \`${days} days, ${hours} hours, ${minutes} minutes, ${seconds} seconds\`** || ** _<t:${Math.floor((new Date().getTime() - Math.floor(bot.uptime))/1000)}:F> / <t:${Math.floor((new Date().getTime() - Math.floor(bot.uptime))/1000)}:D> / <t:${Math.floor((new Date().getTime() - Math.floor(bot.uptime))/1000)}:R>_**`,true)
.addField(bot.emotes.uptime+"| Uptime", `${bot.emotes.reply}** Time Of Bot Online: <t:${Math.floor((new Date().getTime() - Math.floor(bot.uptime))/1000)}:D> / <t:${Math.floor((new Date().getTime() - Math.floor(bot.uptime))/1000)}:R>_**`,true)
.addField(`${bot.emotes.status}| Status:`,`${bot.emotes.reply}** Bot Status Is: ${statuses[bot.user.presence.status]} ${bot.user.presence.status}**`,true)
.addField(bot.emotes.activity+'| Activity:',`${bot.emotes.reply}** Bot Activity Is: ${userstatus}**`,true)
.addField(`${bot.emotes.date}| Date of Join Discord:`,`${bot.emotes.reply}** Time Of Bot Created: <t:${Date.parse(bot.user.createdAt) / 1000}:R>**`,true)
Expand All @@ -60,17 +60,16 @@ let infoEmbed = new Discord.MessageEmbed()
.addField(bot.emotes.guild+"| Servers",`${bot.emotes.reply}** Count Of Bot Servers Is: \`${bot.guilds.cache.size}\`**`, true)
.addField(bot.emotes.voice_channel+"| Voice Channels", `${bot.emotes.reply}** Count Of Bot Voice Channel Is: \`${bot.channels.cache.filter((ch) => ch.type === "GUILD_VOICE").size}\`**`,true)
.addField(bot.emotes.text_channel+"| Text Channels", `${bot.emotes.reply}** Count Of Bot Text Channel Is: \`${bot.channels.cache.filter((ch) => ch.type === "GUILD_TEXT").size}\`**`,true)
.addField(bot.emotes.connect+"| Connected Channels", `${bot.emotes.reply}** Count Of Bot Joined Voices Is: \`${connectedchannelsamount}\`**`,true)
.addField(bot.emotes.version+"Version",`${bot.emotes.reply}** Bot Version Is: \`${require("../../package.json").version}\`**`,true)
.addField(bot.emotes.version+"Version",`${bot.emotes.reply}** Bot Version Is: \`${require(`${process.cwd()}/package.json`).version}\`**`,true)
.addField(bot.emotes.disJS+"Discord.js",`${bot.emotes.reply}** Bot Usage Discord.js Version Is: \`Version ${Discord.version}\`**`,true)
.addField(bot.emotes.node+"Node.js",`${bot.emotes.reply}** Bot Usage Node.js Version Is: \`Version ${process.version}\`**`,true)
.addField(bot.emotes.cpu+"| CPU", `${bot.emotes.reply}** Bot Usage CPU Model Is: \`\`\`js\nModel: ${os.cpus().map((i) => `${i.model}`)[0]}\`\`\`\n CPU Usages: \`${percent.toFixed(2)}%\`**`,true)
.addField(bot.emotes.shard+"| Shards", `${bot.emotes.reply}>** Bot Shards Percent Is: \`${bot.ws.shards.size}%\`**`,true)
.addField(bot.emotes.shard+"| Shards", `${bot.emotes.reply}** Bot Shards Percent Is: \`${bot.ws.shards.size}%\`**`,true)
.addField(bot.emotes.cros+"| Cores", `${bot.emotes.reply}** Bot Cores Percent Is: \`${os.cpus().length}%\`**`,true)
.addField(bot.emotes.arch+"| Architecture", `${bot.emotes.reply}** Bot Architecture Is: \`${os.arch()}\`**`,true)
.addField(bot.emotes.platform+"| Platform", `${bot.emotes.reply}** Bot Usage Platform Is: \`${os.platform()}\`**`,true)
.addField(`${bot.emotes.commands}| Commands Count`, `${bot.emotes.reply}** Bot Commands Count Is: \`${bot.commands.size}\`**`,true)
.addField(`${bot.emotes.category}| Category Count:`, `${bot.emotes.reply}** Bot Category Count Is: \`${(bot.categories.size)}\`**`,true)
.addField(`${bot.emotes.commands}| Commands Count`, `${bot.emotes.reply}** Bot Commands Count Is: Commands[\`${bot.commands.size}\`] & SlashCommands[\`${bot.slashCommands.size}\`]**`,true)
.addField(`${bot.emotes.category}| Category Count:`, `${bot.emotes.reply}** Bot Category Count Is: \`${(bot.categories.length)}\`**`,true)
.setTimestamp()
message.reply({embeds:[infoEmbed]})
})
Expand All @@ -80,11 +79,11 @@ let infoEmbed = new Discord.MessageEmbed()
}
}
/**
* @INFO
* Bot Coded by Mr.SIN RE#1528 :) | https://discord.gg/rsQGcSfyJs
* @INFO
* Work for SIZAR Team | https://discord.gg/rsQGcSfyJs
* @INFO
* Please Mention Us SIZAR Team, When Using This Code!
* @INFO
* @Info
* Bot Coded by Mr.SIN RE#1528 :) | https://dsc.gg/persian-caesar
* @Info
* Work for Persian Caesar | https://dsc.gg/persian-caesar
* @Info
* Please Mention Us "Persian Caesar", When Have Problem With Using This Code!
* @Info
*/
14 changes: 7 additions & 7 deletions commands/Infos 📊/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ let inviteEmbed = new MessageEmbed()
}
}
/**
* @INFO
* Bot Coded by Mr.SIN RE#1528 :) | https://discord.gg/rsQGcSfyJs
* @INFO
* Work for SIZAR Team | https://discord.gg/rsQGcSfyJs
* @INFO
* Please Mention Us SIZAR Team, When Using This Code!
* @INFO
* @Info
* Bot Coded by Mr.SIN RE#1528 :) | https://dsc.gg/persian-caesar
* @Info
* Work for Persian Caesar | https://dsc.gg/persian-caesar
* @Info
* Please Mention Us "Persian Caesar", When Have Problem With Using This Code!
* @Info
*/
14 changes: 7 additions & 7 deletions commands/Infos 📊/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ module.exports = {
}
}
/**
* @INFO
* Bot Coded by Mr.SIN RE#1528 :) | https://discord.gg/rsQGcSfyJs
* @INFO
* Work for SIZAR Team | https://discord.gg/rsQGcSfyJs
* @INFO
* Please Mention Us SIZAR Team, When Using This Code!
* @INFO
* @Info
* Bot Coded by Mr.SIN RE#1528 :) | https://dsc.gg/persian-caesar
* @Info
* Work for Persian Caesar | https://dsc.gg/persian-caesar
* @Info
* Please Mention Us "Persian Caesar", When Have Problem With Using This Code!
* @Info
*/
11 changes: 10 additions & 1 deletion commands/Infos 📊/prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@ module.exports = {
cooldown: 10,
run: async function(bot, message, args, prefix){
}
}
}
/**
* @Info
* Bot Coded by Mr.SIN RE#1528 :) | https://dsc.gg/persian-caesar
* @Info
* Work for Persian Caesar | https://dsc.gg/persian-caesar
* @Info
* Please Mention Us "Persian Caesar", When Have Problem With Using This Code!
* @Info
*/
14 changes: 7 additions & 7 deletions commands/Owner 👑/say.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ run: async function(bot, message, args, prefix){
}
}
/**
* @INFO
* Bot Coded by Mr.SIN RE#1528 :) | https://discord.gg/rsQGcSfyJs
* @INFO
* Work for SIZAR Team | https://discord.gg/rsQGcSfyJs
* @INFO
* Please Mention Us SIZAR Team, When Using This Code!
* @INFO
* @Info
* Bot Coded by Mr.SIN RE#1528 :) | https://dsc.gg/persian-caesar
* @Info
* Work for Persian Caesar | https://dsc.gg/persian-caesar
* @Info
* Please Mention Us "Persian Caesar", When Have Problem With Using This Code!
* @Info
*/
140 changes: 10 additions & 130 deletions commands/Owner 👑/serverlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,137 +39,17 @@ run: async function(bot, message, args, prefix){
]
})

let i0 = 0;
let i1 = 10;
let page = 1;

let description =
`Total Servers - ${bot.guilds.cache.size}\n\n` +
bot.guilds.cache
.sort((a, b) => b.memberCount - a.memberCount)
.map(r => r)
.map((r, i) => `**${i + 1}** - ${r.name} | ${r.memberCount} Members\nID - ${r.id}`)
.slice(0, 10)
.join("\n");

let embed = new MessageEmbed()
.setAuthor({
name: message.author.tag,
iconURL: message.author.displayAvatarURL({ dynamic: true })
})
.setColor(bot.colors.none)
.setFooter(bot.user.username)
.setTitle(`Page - ${page}/${Math.ceil(bot.guilds.cache.size / 10)}`)
.setDescription(description);

let msg = await message.reply({
embeds:[embed]
});
await msg.react("⬅");
await msg.react("➡");
await msg.react("❌");

let collector = msg.createReactionCollector(
(reaction, user) => user.id === message.author.id
);

collector.on("collect", async (reaction, user) => {
if (reaction.emoji.name === "⬅") {
// Updates variables
i0 = i0 - 10;
i1 = i1 - 10;
page = page - 1;

// if there is no guild to display, delete the message
if (i0 + 1 < 0) {
console.log(i0)
return msg.delete();
}
if (!i0 || !i1) {
return msg.delete();
}

description =
`Total Servers - ${bot.guilds.cache.size}\n\n` +
bot.guilds.cache
.sort((a, b) => b.memberCount - a.memberCount)
.map(r => r)
.map(
(r, i) => `**${i + 1}** - ${r.name} | ${r.memberCount} Members`
)
.slice(i0, i1)
.join("\n");


// Update the embed with new informations
embed
.setTitle(
`Page - ${page}/${Math.round(bot.guilds.cache.size / 10 + 1)}`
)
.setDescription(description);

// Edit the message
msg.edit(embed);
}

if (reaction.emoji.name === "➡") {
// Updates variables
i0 = i0 + 10;
i1 = i1 + 10;
page = page + 1;

// if there is no guild to display, delete the message
if (i1 > bot.guilds.cache.size + 10) {
return msg.delete();
}
if (!i0 || !i1) {
return msg.delete();
}

description =
`Total Servers - ${bot.guilds.cache.size}\n\n` +
bot.guilds.cache
.sort((a, b) => b.memberCount - a.memberCount)
.map(r => r)
.map(
(r, i) => `**${i + 1}** - ${r.name} | ${r.memberCount} Members`
)
.slice(i0, i1)
.join("\n");

// Update the embed with new informations
embed
.setTitle(
`Page - ${page}/${Math.round(bot.guilds.cache.size / 10 + 1)}`
)
.setDescription(description);

// Edit the message
msg.edit(embed);
}

if (reaction.emoji.name === "❌") {
return msg.delete();
}

// Remove the reaction when the user react to the message
await reaction.users.remove(message.author.id);
});
const Guilds = bot.guilds.cache.array().map((G, I) => `${I + 1}. **${G.name}** - **${G.id}**`).join("\n");
if (!Guilds) return message.reply("No Guild");
return message.reply(Guilds, { split: { char: "\n" } });
}
}
/**
*
const Guilds = bot.guilds.cache.array().map((G, I) => `${I + 1}. **${G.name}** - **${G.id}**`).join("\n");
if (!Guilds) return message.channel.send("No Guild");
return message.channel.send(Guilds, { split: { char: "\n" } });
*/
/**
* @INFO
* Bot Coded by Mr.SIN RE#1528 :) | https://discord.gg/rsQGcSfyJs
* @INFO
* Work for SIZAR Team | https://discord.gg/rsQGcSfyJs
* @INFO
* Please Mention Us SIZAR Team, When Using This Code!
* @INFO
* @Info
* Bot Coded by Mr.SIN RE#1528 :) | https://dsc.gg/persian-caesar
* @Info
* Work for Persian Caesar | https://dsc.gg/persian-caesar
* @Info
* Please Mention Us "Persian Caesar", When Have Problem With Using This Code!
* @Info
*/
Loading

0 comments on commit 3c1edf5

Please sign in to comment.