Skip to content

Commit

Permalink
fix error maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Nov 24, 2023
1 parent 0c3b2c7 commit a4cf74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/discord/modules/shitposting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default async (bot: DiscordBot) => {
bot.discord.on("messageDelete", async msg => {
if (msg.channelId !== bot.config.channels.chat) return;
const idx = lastMsgs.indexOf(msg as Discord.Message);
if (idx !== -1) lastMsgs.splice(idx, 1);
if (idx !== -1) lastMsgs.splice(idx - 1, 1);
});

bot.discord.on("messageReactionAdd", async (reaction, user) => {
Expand Down

0 comments on commit a4cf74f

Please sign in to comment.