Commit f795a3b8545d07c7310845811f1837487e04a4ec
1 parent
3a28f93e6c
Exists in
master
Add message blacklist
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
lib/transport.js
... | ... | @@ -64,6 +64,10 @@ bot.on('chat', (partner, msg) => { |
64 | 64 | return; |
65 | 65 | } |
66 | 66 | |
67 | + if (msg.toLowerCase().indexOf('perintah salah')) { | |
68 | + return; | |
69 | + } | |
70 | + | |
67 | 71 | if (customPing.isPongMessage(msg)) { |
68 | 72 | if (config.custom_ping && config.custom_ping.verbose) { |
69 | 73 | logger.verbose(`${MODULE_NAME} 70CDD087: Got PONG message`, { |