die
This commit is contained in:
parent
56a80c763e
commit
75843272d8
1 changed files with 1 additions and 0 deletions
1
index.ts
1
index.ts
|
@ -41,6 +41,7 @@ client.on("messageCreate", async (message) => {
|
||||||
if (message.author.bot) return;
|
if (message.author.bot) return;
|
||||||
if (message.content.startsWith("\\")) return;
|
if (message.content.startsWith("\\")) return;
|
||||||
if (message.channel.type != ChannelType.GuildText) 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
|
// "adapted" from https://github.com/ryanccn/blahaj/blob/main/src/chat.ts
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue