Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions scripts/bpgames.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Description:
# The tracking system for the BP Games
#
# Commands:
# bigblue what are the BP Games - The rules?
# bigblue who is the Game Master - Me.
#
# Notes:
# TODO: Point tracking system with limited access (only Game Master)

rules = [
"1. The Games are played between all project teams (including Blue Ops and Chairs).",
"2. Each team must have a unique banner.",
"3. Each team must have a unique chant.",
"4. The team with the most points at the end of the semester wins.",
"5. Anything can become a point challenge.",
"6. Every two weeks, there is a main point challenge called THE EQUALIZER.",
"7. No one can assign points except for the Game Master.",
"8. There are no rules.",
"9. Just kidding. There are. These are the rules.",
"10. Have fun."
]

gamemaster = ["@merrymelissday"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mispelled @jsonderulo

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but actually though, you misspelled your name haha


module.exports = (robot) ->
robot.respond /(.*) BP Games$/i, (msg) ->
text = msg.message.text
msg.send rules.join('\n')

module.exports = (robot) ->
robot.respond /(.*) Game Master$/i, (msg) ->
text = msg.message.text
msg.send gamemaster.join('\n')