fix: ignore messages

This commit is contained in:
2023-03-15 21:31:37 +01:00
parent 819fff74a9
commit 204ea32f23
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ export default discordEvent({
async execute(message) {
if (message.channel.id !== process.env.CHATGPT_CHANNEL) return;
if (message.author.bot) return;
if (message.content.includes('ig')) return;
try {
await (message.channel as TextChannel).sendTyping()

View File

@@ -9,6 +9,7 @@ export default discordEvent({
const thread = message.channel as ThreadChannel
if (thread.parentId !== process.env.CHATGPT_CHANNEL) return;
if (message.author.bot) return;
if (message.content.includes('ig')) return;
try {
await thread.sendTyping()