Skip to content

Commit

Permalink
fix useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Dec 31, 2024
1 parent 7453b46 commit aeb5f35
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Events/BotEvents/messageEvents/messageCreate/antivirus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,7 @@ export default async (msg: Discord.Message) => {

const result = await run(msg.content);
if (!('url' in result)) {
if (msg.inGuild()) {
log(
settings?.linklogging && settings?.linklogchannels.length
? settings.linklogchannels
: msg.channel,
msg,
await client.util.getLanguage(msg.guildId),
result,
);
return;
}
if (msg.inGuild()) return;

await API.channels.deleteOwnMessageReaction(
msg.channelId,
Expand Down

0 comments on commit aeb5f35

Please sign in to comment.