Skip to content

Commit

Permalink
add 2 buttons to the check list keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mingtsay committed Oct 3, 2019
1 parent 926bceb commit b7f4671
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/org/moztw/bot/telegram/space/Keyboard.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ internal class Keyboard {
getKeyboard(arrayOf(
arrayOf((if (data and 1 > 0) "" else "🖼") + " 白板彙整拍照", (if (data and 2 > 0) "" else "🎥") + " 投影機關機"),
arrayOf((if (data and 4 > 0) "" else "🔮") + " 兩台冷氣關機", (if (data and 8 > 0) "" else "🔌") + " 關延長線開關"),
arrayOf((if (data and 16 > 0) "" else "🔓") + " 鎖上窗戶", (if (data and 32 > 0) "" else "💡") + " 關閉電燈"),
arrayOf((if (data and 16 > 0) "" else "🔓") + " 鎖上窗戶", (if (data and 64 > 0) "" else "🔌") + " 移除飲水機電源"),
arrayOf((if (data and 32 > 0) "" else "💡") + " 關閉電燈", (if (data and 128 > 0) "" else "🚪") + " 檢查門是否關妥"),
arrayOf("❌ 點此關閉工寮關門檢查列表")
), arrayOf(
arrayOf("list:" + Integer.toHexString(data xor 1), "list:" + Integer.toHexString(data xor 2)),
arrayOf("list:" + Integer.toHexString(data xor 4), "list:" + Integer.toHexString(data xor 8)),
arrayOf("list:" + Integer.toHexString(data xor 16), "list:" + Integer.toHexString(data xor 32)),
arrayOf("list:" + Integer.toHexString(data xor 16), "list:" + Integer.toHexString(data xor 64)),
arrayOf("list:" + Integer.toHexString(data xor 32), "list:" + Integer.toHexString(data xor 128)),
arrayOf("hide")
))

Expand Down

0 comments on commit b7f4671

Please sign in to comment.