Skip to content

Commit

Permalink
Merge branch 'release/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneQi committed Feb 27, 2017
2 parents bac1b28 + 8a7401f commit b138921
Show file tree
Hide file tree
Showing 7 changed files with 221 additions and 352 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: generics
dist: trusty
sudo: required
script:
- swift build
before_install:
- TOOLCHAIN_TYPE=swift-3.0.2-release
- TOOLCHAIN_VERSION=swift-3.0.2-RELEASE
- sudo apt-get install clang uuid-dev libcurl4-openssl-dev
- wget https://swift.org/builds/${TOOLCHAIN_TYPE}/ubuntu1404/${TOOLCHAIN_VERSION}/${TOOLCHAIN_VERSION}-ubuntu14.04.tar.gz
- tar -zxvf ${TOOLCHAIN_VERSION}-ubuntu14.04.tar.gz
- sudo mv ${TOOLCHAIN_VERSION}-ubuntu14.04 /usr/swift
- export PATH=/usr/swift/usr/bin:"${PATH}"
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import PackageDescription
let package = Package(
name: "ZEGBot",
dependencies: [
.Package(url: "https://github.com/PerfectlySoft/Perfect.git", versions: Version(0,0,0)..<Version(10,0,0))
,
.Package(url: "https://github.com/IBM-Swift/SwiftyJSON.git", majorVersion: 15),
.Package(url: "https://github.com/PerfectlySoft/Perfect-CURL.git", versions: Version(0,0,0)..<Version(10,0,0))
]
)
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ZEGBot

[![Build Status](https://travis-ci.org/ShaneQi/ZEGBot.svg?branch=master)](https://travis-ci.org/ShaneQi/ZEGBot) ![Swift Version](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat) ![Platforms](https://img.shields.io/badge/Platforms-OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat) ![License](https://img.shields.io/badge/License-Apache-lightgrey.svg?style=flat)

This library wraps the JSON decoding processing, making it easy to decode incoming JSON String to manipulatable objects.

This library wraps the processing of converting objects to Telegram Bot API request parameters and the processing of performing request, making it easy to handle incoming update.
Expand All @@ -16,9 +18,14 @@ Add this project as a dependency in your Package.swift file.
```
## Quick Start

[ZEGBot-Template](https://github.com/ShaneQi/ZEGBot-Template) - an empty starter project.

Or you can just put the following code into `main.swift` of your project.

```swift
import ZEGBot

// Don't forget to fill in your bot token.
let bot = ZEGBot(token: "TYPE YOUR TOKEN HERE")

bot.run(with: {
Expand Down
Loading

0 comments on commit b138921

Please sign in to comment.