From f763a95472b5f4f1ac2f671f08f622ca23932424 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 12 Jan 2025 02:54:21 -0700 Subject: [PATCH] bwuuuuh --- index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/index.js b/index.js index c406145..2ac90a7 100644 --- a/index.js +++ b/index.js @@ -460,14 +460,7 @@ xmpp.on("stanza", (stanza) => { let channel = discord.channels.cache.get(row.channelid); if (!channel) return console.log(`${colors.red("[ERROR]")} Channel ${row.channelid} not found`); - if (!channel.permissionsFor(discord.user).has(Discord.PermissionFlagsBits.SendMessages)) { - const logs = await channel.guild.fetchAuditLogs({ type: Discord.AuditLogEvent.BotAdd }); - const user = logs.entries.find(entry => entry.target.id === discord.user.id)?.executor; - if (user) { - user.send(`I don't have permission to send messages in the channel ${channel.name} (${channel.id}) in the guild ${channel.guild.name} (${channel.guild.id}). Please update my permissions.`); - } - return; - } + // fetch the product text trySend = () => { fetch(`https://mesonet.agron.iastate.edu/api/1/nwstext/${product_id_raw}`).then((res) => {