From 3c61c156137984cf61d3517d4d9633ca6de072f6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 30 Mar 2025 15:08:04 -0400 Subject: Bot now scans for threads and automatically joins them --- bot/src/events/ThreadCreate.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bot/src/events/ThreadCreate.js (limited to 'bot/src/events/ThreadCreate.js') diff --git a/bot/src/events/ThreadCreate.js b/bot/src/events/ThreadCreate.js new file mode 100644 index 0000000..61cb217 --- /dev/null +++ b/bot/src/events/ThreadCreate.js @@ -0,0 +1,8 @@ +import { Events } from 'discord.js'; + +export default { + name: Events.ThreadCreate, + async execute(thread) { + await thread.join(thread.id); + } +}; -- cgit v1.2.3