5 // Created by Hori,Masaki on 2017/01/08.
6 // Copyright © 2017年 Hori,Masaki. All rights reserved.
11 final class IgnoreCommand: JSONCommand {
13 private static let ignores: [String] = {
15 guard let url = Bundle.main.url(forResource: "IgnoreCommand", withExtension: "plist"),
16 let array = NSArray(contentsOf: url) as? [String] else {
18 fatalError("Can not read IgnoreCommand.plist")
24 override class func canExecuteAPI(_ api: API) -> Bool {
26 if api.includs(in: ignores) { return true }
27 if api.isRanking() { return true }
32 override func execute() {