diff --git a/src/features/autothread.ts b/src/features/autothread.ts index 3f2e2ea..ca2f2cb 100644 --- a/src/features/autothread.ts +++ b/src/features/autothread.ts @@ -13,7 +13,7 @@ import { threadStats } from "../features/stats"; import { createNewThreadName } from "../helpers/threads"; const CHECKS = ["☑️", "✔️", "✅"]; -const IDLE_TIMEOUT = 36; +const IDLE_TIMEOUT = 72; const STAFF_ACCEPT_THRESHOLD = 2; const autoThread: ChannelHandlers = { diff --git a/src/features/promotion-threads.ts b/src/features/promotion-threads.ts index 7e3b253..7a2700c 100644 --- a/src/features/promotion-threads.ts +++ b/src/features/promotion-threads.ts @@ -1,10 +1,9 @@ import ogs from "open-graph-scraper"; -import { sleep } from "../helpers/misc"; import { ChannelHandlers } from "../types"; import { threadStats } from "../features/stats"; import { format } from "date-fns"; import fetch from "node-fetch"; -import { ChannelType, MessageType } from "discord.js"; +import { ChannelType } from "discord.js"; const promotionThread: ChannelHandlers = { handleMessage: async ({ msg }) => { @@ -15,18 +14,6 @@ const promotionThread: ChannelHandlers = { return; } - // Delete top-level replies - if (msg.type === MessageType.Reply) { - msg.author.send(msg.content); - const reply = await msg.reply( - "This is a thread-only channel! Please reply in that message’s thread. Your message has been DM’d to you.", - ); - msg.delete(); - threadStats.threadReplyRemoved(msg.channelId); - sleep(5).then(() => reply.delete()); - return; - } - const [firstLink] = msg.content.match( /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g,