Skip to content

Commit

Permalink
updated bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
LUISDASARTIMANHAS committed Apr 29, 2024
1 parent 1e5c99c commit be4bb24
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions src/bot.js
Expand Up @@ -13,7 +13,7 @@ import { pingCommand, handlePing } from "./comandos/ping.js";
import { helpCommand, handleHelp } from "./comandos/help.js";
import { sendLogs, sendLogsEmbed } from "./comandos/sendLogs.js";
import { showServersCommand, handleShowServers } from "./comandos/showServers.js";
import { sendEmbed, handleS } from "./comandos/showServers.js";
import { sayEmbedCommand, handleSayEmbed } from "./comandos/send-embed.js";
const rawData = fs.readFileSync("./data/config.json");
const configs = JSON.parse(rawData);
const date = new Date();
Expand Down Expand Up @@ -55,9 +55,9 @@ bot.on("ready", async () => {

alterarStatus();
setInterval(alterarStatus, 60000);
// sendLogs(channelLogs, "<@1133630381153861743>");
// sendLogs(pingobrasLOG, "<@1133630381153861743>");
sendLogsEmbed(
channelLogs,
pingobrasLOG,
"**__🖥️MENSAGEM DO SERVIDOR🖥️:__**",
info,
16753920,
Expand Down Expand Up @@ -106,16 +106,15 @@ bot.on("interactionCreate", (interaction) => {
handlePing(interaction);
handleHelp(interaction);
handleShowServers(interaction,bot.guilds.cache);
handleCreatePainel(interaction);
handleSayEmbed(interaction);
});

async function main() {
const commands = [
pingCommand,
helpCommand,
sendLogs,
showServersCommand,
sendEmbed
sayEmbedCommand
];
try {
console.log("Recarregando comandos de barra /");
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/commands/send-embed.js → src/comandos/send-embed.js
Expand Up @@ -25,7 +25,7 @@ let sayEmbedCommand = new SlashCommandBuilder()
)
sayEmbedCommand = sayEmbedCommand.toJSON()

function handleSayEmbedCommand(interaction) {
function handleSayEmbed(interaction) {
if (interaction.commandName === "sayembed") {
const titulo = interaction.options.getString("title");
const descricao = interaction.options.getString("description");
Expand All @@ -51,5 +51,5 @@ function handleSayEmbedCommand(interaction) {

export {
sayEmbedCommand,
handleSayEmbedCommand
handleSayEmbed
};
2 changes: 1 addition & 1 deletion start.js
Expand Up @@ -6,7 +6,7 @@ import path from "path"
import {fileURLToPath} from 'url'
import httpsSecurity from "./modules/httpsSecurity.js"
import checkHeaderMiddleware from "./modules/checkHeaderMiddleware.js"
const port = 3000;
const port = 3080;
const params = {
limit: 100,
maxcount: 200,
Expand Down

0 comments on commit be4bb24

Please sign in to comment.