 findByNumber = (source, number) ->
   return source.filter((obj) ->
     return +obj.number == +number;
-  )[0];+  )[0];
+
+bold = (text, adapter) ->
+  switch adapter
+    when "discord"
+      "**#{text}**"
+    when "slack"
+      "*#{text}*"
+    else
+      "#{text}"
  robot.respond /wsc q ([1-9]$|[1-9]\d$|10[0-7]$)/im, (msg) ->
    questions = wscQuestions()
    question = findByNumber(questions, msg.match[1])

    msg.send "**#{question.question}**"

  robot.respond /wsc a ([1-9]$|[1-9]\d$|10[0-7]$)/im, (msg) ->
    questions = wscQuestions()

    msg.send "#{question.answer}"

  robot.respond /wsc qa ([1-9]$|[1-9]\d$|10[0-7]$)/im, (msg) ->
    msg.send getQuestionAndAnswer(msg.match[1], robot.adapterName)

  robot.respond /wsc proof ([1-9]$|[1-9]\d$|10[0-7]$)/im, (msg) ->
    msg.send getQuestionProofs(msg.match[1], robot.adapterName)

  robot.respond /wsc full ([1-9]$|[1-9]\d$|10[0-7]$)/im, (msg) ->
    number = msg.match[1]
    qa = getQuestionAndAnswer(number, robot.adapterName)
    proofs = getQuestionProofs(number, robot.adapterName)

    msg.send """
    #{qa}
    #{proofs}
    """

