Skip to content

Commit

Permalink
sonarlint stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwasonline committed May 17, 2024
1 parent c94edb4 commit c730e47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 1 addition & 10 deletions src/events/messageCreate.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { ChannelType, Events, ThreadAutoArchiveDuration } from "discord.js";
import { ChannelType, Events } from "discord.js";
import { ModelInteractions } from "../util/models/index.js";
import { existsSync, mkdirSync, unlinkSync, writeFileSync } from "node:fs";
import { v4 } from "uuid";
import path from "node:path";
// import { Environment } from '../util/helpers.js';

// const env = new Environment();

const callTextChannel = async ({ client, message }) => {
const modelInteractions = new ModelInteractions({
Expand Down Expand Up @@ -95,7 +92,6 @@ const callTextChannel = async ({ client, message }) => {
} catch (e) {
await message.react("❌").catch(() => false);
}
return;
} else {
const responseMsg = await message
?.reply({
Expand All @@ -122,7 +118,6 @@ const callTextChannel = async ({ client, message }) => {
};

const callThreadChannel = async ({ client, message }) => {
const channel = message.channel;
message.reply("herro").catch(() => null);
};

Expand All @@ -137,9 +132,5 @@ export default {
if (message.channel.type === ChannelType.GuildText) {
void callTextChannel({ client, message });
}

if (message.channel.type === ChannelType.PublicThread) {
// void callThreadChannel({ client, message });
}
},
};
1 change: 0 additions & 1 deletion src/util/helpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import process from "node:process";
import { fetch } from "undici";

export const whitelisted = ["181944866987704320", "532053122017787924"];

Expand Down

0 comments on commit c730e47

Please sign in to comment.