Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 5b2ef0a

Browse files
Updated the location of the users list
Apparently the location of the users list has changed and this script has not been updated to show that. The help for this script also says that it will mention every person in the room. This will in fact mention everyone on the server.
1 parent 325bdc7 commit 5b2ef0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/yell.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (robot) ->
2121
_ = require 'underscore'
2222

2323
robot.respond /yell (.*)/i, (msg) ->
24-
users = _.reject((_.values _.pluck robot.brain.users, 'name'), (name) -> name == msg.message.user.name)
24+
users = _.reject((_.values _.pluck robot.brain.data.users, 'name'), (name) -> name == msg.message.user.name)
2525
msg.send if users.length then users.join(', ') + ": #{msg.match[1]}" else "If a tree falls in a forest and no one is around to hear it, does it make a sound?"
2626

2727

0 commit comments

Comments
 (0)