diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-07 20:22:54 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-07 20:22:54 -0400 |
commit | f366181069e1fd4daf7cf379d10c44c25fad84c2 (patch) | |
tree | 1dcfb4ab82769ad0e96a4fe5c6416bf2e6661701 /src/listeners/message | |
parent | 35d03eb54fe81c1d5c0359db67455b82f754e3f4 (diff) | |
download | tanzanite-f366181069e1fd4daf7cf379d10c44c25fad84c2.tar.gz tanzanite-f366181069e1fd4daf7cf379d10c44c25fad84c2.tar.bz2 tanzanite-f366181069e1fd4daf7cf379d10c44c25fad84c2.zip |
autothread inprovements
Diffstat (limited to 'src/listeners/message')
-rw-r--r-- | src/listeners/message/autoThread.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/listeners/message/autoThread.ts b/src/listeners/message/autoThread.ts index bdc18d5..ec8bfcb 100644 --- a/src/listeners/message/autoThread.ts +++ b/src/listeners/message/autoThread.ts @@ -7,7 +7,7 @@ export default class autoThreadListener extends BushListener { public constructor() { super('autoThread', { emitter: 'client', - event: 'messageCreate', + event: 'messageInvalid', category: 'message' }); } @@ -15,6 +15,14 @@ export default class autoThreadListener extends BushListener { public override async exec(...[message]: BushClientEvents['messageCreate']): Promise<Promise<void> | undefined> { if (!client.config.isProduction) return; if (!message.guild || !message.channel) return; + if (!['DEFAULT', 'REPLY'].includes(message.type)) return; + if ( + message.author.bot && + message.author.id === '444871677176709141' && //fire + message.content.includes('has been banished from') && + message.content.includes('<:yes:822211477624586260>') + ) + return; // todo: make these configurable etc... if (message.guild.id !== '516977525906341928') return; // mb if (message.channel.id !== '714332750156660756') return; // neu-support-1 |