-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/swift4' into develop
- Loading branch information
Showing
17 changed files
with
789 additions
and
1,193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// main.swift | ||
// ZEGBotExample | ||
// | ||
// Created by Shane Qi on 9/28/17. | ||
// | ||
|
||
import ZEGBot | ||
import Foundation | ||
|
||
let bot = ZEGBot(token: "TYPE YOUR TOKEN HERE") | ||
|
||
bot.run { updateResult, bot in | ||
switch updateResult { | ||
case .success(let update): | ||
dump(update) | ||
case .failure(let error): | ||
dump(error) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
// swift-tools-version:4.0 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "ZEGBot", | ||
dependencies: [ | ||
.Package(url: "https://github.com/IBM-Swift/SwiftyJSON.git", majorVersion: 15) | ||
] | ||
products: [ | ||
.library( | ||
name: "ZEGBot", | ||
targets: ["ZEGBot"]), | ||
.executable( | ||
name: "ZEGBotExample", | ||
targets: ["ZEGBotExample"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "ZEGBot", | ||
dependencies: [], | ||
path: "./Sources"), | ||
.target( | ||
name: "ZEGBotExample", | ||
dependencies: ["ZEGBot"], | ||
path: "./Example"), | ||
.testTarget( | ||
name: "ZEGBotTests", | ||
dependencies: ["ZEGBot"]), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.