mirror of
https://code.chipmunk.land/Plovie/plobot.git
synced 2026-02-03 22:36:07 +02:00
onjoin: Now works with name change announcements
This commit is contained in:
@@ -19,7 +19,7 @@ Example 2 (remove): ${bot.prefix}onjoin`;
|
||||
}
|
||||
|
||||
bot.handlers.push((username) => (words) => {
|
||||
if (words[1] === 'joined') {
|
||||
if (words.join(' ').endsWith('joined the game')) {
|
||||
bot.onjoinList = JSON.parse(
|
||||
require('fs').readFileSync(
|
||||
require('path').join(__dirname, 'list.json'),
|
||||
|
||||
Reference in New Issue
Block a user