mirror of
https://code.chipmunk.land/Plovie/plobot.git
synced 2026-02-04 14:53:09 +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) => {
|
bot.handlers.push((username) => (words) => {
|
||||||
if (words[1] === 'joined') {
|
if (words.join(' ').endsWith('joined the game')) {
|
||||||
bot.onjoinList = JSON.parse(
|
bot.onjoinList = JSON.parse(
|
||||||
require('fs').readFileSync(
|
require('fs').readFileSync(
|
||||||
require('path').join(__dirname, 'list.json'),
|
require('path').join(__dirname, 'list.json'),
|
||||||
|
|||||||
Reference in New Issue
Block a user