Skip to content

Commit

Permalink
Disable train wrecker
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Keller committed Feb 10, 2018
1 parent 7a42d4c commit 5bb20d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sources/FireAlarm/startup.swift
Expand Up @@ -232,9 +232,7 @@ func main() throws {

listener = ChatListener(commands: commands)
listener.onShutdown { shutDown(reason: $0, rooms: rooms) }
rooms.forEach { room in
let trainWrecker = TrainWrecker(room: room)
room.onMessage { message, isEdit in
rooms.forEach { room in room.onMessage { message, isEdit in
let content = message.content.lowercased()
if (content == "@bots alive") {
do {
Expand All @@ -247,7 +245,6 @@ func main() throws {
room.postMessage("[🚃](https://www.youtube.com/watch?v=dQw4w9WgXcQ)")
}

if !isEdit { trainWrecker.process(message: message) }
listener.processMessage(room, message: message, isEdit: isEdit)
}
}
Expand Down

0 comments on commit 5bb20d7

Please sign in to comment.