Skip to content

Commit d7405fc

Browse files
Added element and delay information to list command
1 parent 920a60b commit d7405fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NotifierBot/Sources/Notifier/JFUtils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ struct JFUtils {
6363
if entries.isEmpty {
6464
list += "_None_"
6565
} else if listArea && listURLs {
66-
list += entries.map({ "- \($0.name) (Offset: \($0.area.x)/\($0.area.y), Size: \($0.area.width)x\($0.area.height))\n \($0.url)" }).joined(separator: "\n").escaped()
66+
list += entries.map({ "- \($0.name) (Delay: \($0.delay), Offset: \($0.area.x)/\($0.area.y), Size: \($0.area.width)x\($0.area.height), Element: '\($0.element)')\n \($0.url)" }).joined(separator: "\n").escaped()
6767
} else if listURLs {
6868
list += entries.map({ "- \($0.name): \($0.url)" }).joined(separator: "\n").escaped()
6969
} else if listArea {
70-
list += entries.map({ "- \($0.name) (Offset: \($0.area.x)/\($0.area.y), Size: \($0.area.width)x\($0.area.height))" }).joined(separator: "\n").escaped()
70+
list += entries.map({ "- \($0.name) (Delay: \($0.delay), Offset: \($0.area.x)/\($0.area.y), Size: \($0.area.width)x\($0.area.height), Element: '\($0.element)'" }).joined(separator: "\n").escaped()
7171
} else {
7272
list += entries.map({ "- \($0.name)"}).joined(separator: "\n").escaped()
7373
}

0 commit comments

Comments
 (0)