This commit is contained in:
Skye 2023-03-10 20:55:50 +09:00
parent 56a80c763e
commit 75843272d8
Signed by: me
GPG key ID: 0104BC05F41B77B8

View file

@ -41,6 +41,7 @@ client.on("messageCreate", async (message) => {
if (message.author.bot) return;
if (message.content.startsWith("\\")) return;
if (message.channel.type != ChannelType.GuildText) return;
if (message.content == "die") process.exit(1);
// "adapted" from https://github.com/ryanccn/blahaj/blob/main/src/chat.ts