-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
15 changed files
with
177 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
const User = require("../../database/Schemas/User"); | ||
|
||
exports.run = async (client, message, args) => { | ||
User.findOne({ _id: message.author.id }, async function (err, user) { | ||
const USER = client.users.cache.get(args[0]) || message.mentions.members.first() || message.author | ||
User.findOne({ _id: USER.id }, async function (err, user) { | ||
let coins = user.coins; | ||
|
||
message.quote( | ||
`${ | ||
message.author | ||
}, seu saldo é de **${coins.toLocaleString()} Tabcoins**.` | ||
}, ${USER.id == message.author.id ? `Você possui ` : `o usuário possui`}**${coins.toLocaleString()} coins** no momento.` | ||
); | ||
}); | ||
}; | ||
|
||
exports.help = { | ||
name: "atm", | ||
aliases: ["coins"], | ||
description: "Comando para saber seu saldo", | ||
usage: "<prefix>atm", | ||
category: "Economia" | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
const { MessageEmbed } = require("discord.js"); | ||
const Guild = require("../../database/Schemas/Guild"); | ||
|
||
exports.run = async(client, message, args) => { | ||
Guild.findOne({ _id: message.guild.id }, async function (err, server) { | ||
|
||
const Config = [] | ||
const Economia = [] | ||
const information = [] | ||
const Moderation = [] | ||
const owner = [] | ||
|
||
const { commands } = message.client | ||
|
||
const AJUDA = new MessageEmbed() | ||
.setAuthor(`${message.author.username}`,message.author.displayAvatarURL({ dynamic: true }) | ||
) | ||
.setColor("#fb00ff") | ||
.setTimestamp() | ||
.setFooter( | ||
`Comando requisitado por ${message.author.username}`, | ||
message.author.displayAvatarURL({ dynamic: true }) | ||
) | ||
|
||
|
||
if(args[0]) { | ||
const name = args[0].toLowerCase() | ||
const comando = commands.get(name) || commands.find((cmd) => cmd.help.aliases && cmd.help.aliases.includes(name)) | ||
|
||
if(!comando) { | ||
return message.quote(`${message.author}, não consegui encontrar nem um comando com o nome **\`${name}\`**.`) | ||
} | ||
|
||
AJUDA.addField( `Comando:`, comando.help.name) | ||
|
||
if(comando.help.aliases) | ||
AJUDA.addField( `Aliases:`, comando.help.aliases.join(", ")) | ||
|
||
if(comando.help.description) | ||
AJUDA.addField( `Descrição:`, comando.help.description) | ||
|
||
if(comando.help.usage) | ||
AJUDA.addField( `Modo de usar:`, comando.help.usage) | ||
|
||
message.quote(AJUDA) | ||
} else { | ||
|
||
const HELP = new MessageEmbed() | ||
.setColor("#fb00ff") | ||
.setTimestamp() | ||
.setDescription(`**${message.author.username}**, lista de todos os meus comandos. \n caso queira saber mais sobre algum use **${server.prefix}help <comando>**.`) | ||
|
||
commands.map((cmd) => { | ||
if(cmd.help.category === "Config") | ||
Config.push(cmd.help.name) | ||
|
||
else if(cmd.help.category === "Economia") | ||
Economia.push(cmd.help.name) | ||
|
||
else if(cmd.help.category === "information") | ||
information.push(cmd.help.name) | ||
|
||
else if(cmd.help.category === "Moderation") | ||
Moderation.push(cmd.help.name) | ||
|
||
else if(cmd.help.category === "owner") | ||
owner.push(cmd.help.name) | ||
|
||
}) | ||
|
||
HELP.addFields( | ||
{name: "Configuração", value: Config.map((x) => `\`${x}\``).join(", ")}, | ||
{name: "Econimia", value: Economia.map((x) => `\`${x}\``).join(", ")}, | ||
{name: "Informações", value: information.map((x) => `\`${x}\``).join(", ")}, | ||
{name: "Moderação", value: Moderation.map((x) => `\`${x}\``).join(", ")} | ||
) | ||
message.quote(HELP) | ||
} | ||
|
||
|
||
|
||
}) | ||
} | ||
|
||
exports.help = { | ||
name: "help", | ||
aliases: ["ajuda"], | ||
description: "Comando para listar todos os comandos do bot", | ||
usage: "<prefix>help", | ||
category: "information" | ||
}; | ||
|
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,10 +1,13 @@ | ||
exports.run = (client, message, args) => { | ||
|
||
message.channel.send(`${message.author} Pong, meu ping é de: **${client.ws.ping}ms**.`) | ||
|
||
} | ||
message.channel.send( | ||
`${message.author} Pong, meu ping é de: **${client.ws.ping}ms**.` | ||
); | ||
}; | ||
|
||
exports.help = { | ||
name: 'ping', | ||
aliases: ["pong"] | ||
} | ||
name: "ping", | ||
aliases: ["pong"], | ||
description: "Comando para saber o ping do bot", | ||
usage: "<prefix>ping", | ||
category: "information" | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
exports.run = async (client, message, args) => { | ||
if (message.author.id !== "438397085834936320") return; | ||
if (!args[0]) return; | ||
|
||
let litchdelicia = args.join(" "); | ||
let litchtotoso = eval(litchdelicia); | ||
if (typeof litchtotoso !== "string") | ||
litchtotoso = require("util").inspect(litchtotoso, { depth: 0 }); | ||
message.channel.send( | ||
`Entrada: \`\`\`js\n${litchdelicia}\`\`\`\n Saída: \`\`\`js\n${litchtotoso}\`\`\`` | ||
); | ||
}; | ||
|
||
exports.help = { | ||
name: "eval", | ||
aliases: [], | ||
description: "Comando para testar códigos", | ||
usage: "<prefix>eval <<código>>", | ||
category: "owner" | ||
}; |