Files
SlackKit/Examples
2019-01-27 11:57:06 -05:00
..
2019-01-27 11:57:06 -05:00
2019-01-27 11:57:06 -05:00
2019-01-27 11:57:06 -05:00

Examples: SlackKit Examples

Swift Version Plaforms License MIT SwiftPM compatible Carthage compatible CocoaPods compatible

Example applications built with SlackKit.

Leaderbot

A basic leaderboard scoring bot, in the spirit of PlusPlus, built with SlackKit.

To configure it, enter your bots API token in main.swift for the Leaderboard bot:

let bot = Leaderbot(apiToken: "xoxb-SLACK_BOT_TOKEN")

It adds a point for every @user++ or thing++, subtracts a point for every @user-- or thing--, and shows a leaderboard when asked @botname leaderboard.

Robot-or-Not Bot

A bot that renders verdicts on if something is a robot or not.

To configure it, enter your bots API token in main.swift:

let slackbot = RobotOrNotBot(token: "xoxb-SLACK_API_TOKEN")

It renders a robot or not verdict when asked @bot THING.

Step By Step Tutorial