Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion XBot/BotConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class BotConfiguration {
public var publicKey:String
public var privateKey:String
public var deviceIds:[String]
public var preTrigger:[String]

public var performsTestAction:Bool = false
public var performsAnalyzeAction:Bool = false
Expand All @@ -42,7 +43,8 @@ public class BotConfiguration {
branch:String,
publicKey:String,
privateKey:String,
deviceIds:[String]
deviceIds:[String],
preTrigger:[String]
) {

self.name = name
Expand All @@ -53,6 +55,7 @@ public class BotConfiguration {
self.publicKey = publicKey
self.privateKey = privateKey
self.deviceIds = deviceIds
self.preTrigger = preTrigger
}

var groupDictionaryRepresentation:NSDictionary {
Expand Down Expand Up @@ -110,6 +113,11 @@ public class BotConfiguration {
"builtFromClean":1,
"testingDeviceIDs": self.deviceIds,
"triggers":[
["phase":1,
"scriptBody": self.preTrigger,
"type":1,
"name":"Run Script"
],
["phase":2,
"scriptBody":"",
"type":2,
Expand Down