Skip to content

Commit

Permalink
Disable train wrecker; fix #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
double-fault committed Aug 8, 2018
1 parent 791d373 commit d747581
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/FireAlarm/startup.swift
Expand Up @@ -250,7 +250,7 @@ func main() throws {
listener = ChatListener(commands: commands)
listener.onShutdown { shutDown(reason: $0, rooms: rooms + trollRooms) }
rooms.forEach { room in
let trainWrecker = TrainWrecker(room: room)
//let trainWrecker = TrainWrecker(room: room)
room.onMessage { message, isEdit in
let content = message.content.lowercased()
if (content == "@bots alive") {
Expand All @@ -264,9 +264,9 @@ func main() throws {
room.postMessage("[🚃](https://www.youtube.com/watch?v=dQw4w9WgXcQ)")
}

if (message.room.roomID == 111347 || message.room.roomID == 123602) {
if !isEdit { trainWrecker.process(message: message) }
}
//if (message.room.roomID == 111347 || message.room.roomID == 123602) {
// if !isEdit { trainWrecker.process(message: message) }
//}

listener.processMessage(room, message: message, isEdit: isEdit)
}
Expand Down

0 comments on commit d747581

Please sign in to comment.