Examples: SlackKit Examples
Example applications built with SlackKit.
Leaderbot
A basic leaderboard scoring bot, in the spirit of PlusPlus, built with SlackKit.
To configure it, enter your bot’s 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 bot’s API token in main.swift:
let slackbot = RobotOrNotBot(token: "xoxb-SLACK_API_TOKEN")
It renders a robot or not verdict when asked @bot THING.