-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
perhaps if plotsbot knows somebody's been in the chatroom before, they don't need to offer the "idle" response?
what do you think? I think the welcome behavior has a routine to "recognize" people who aren't new, right? Maybe we could modularize that and re-use it, like if user.recognized() ...
The behavior is pretty simple, here -- just collects who's been "greeted":
plotsbot/src/behaviors/greet.js
Lines 4 to 9 in d87ef5d
| let greeted = []; | |
| const greetAction = (channel, username, botNick) => { | |
| if(!utils.contains(greeted, username)) { | |
| greeted.push(username); | |
| return `Welcome to Publiclab, ${username}! Here's a link to the Code of Conduct that's in effect in this, and all other spaces of Public Lab: https://publiclab.org/conduct. For a quick walkthrough, send the message: \`${botNick} help\``; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels