Skip to content

JohnMurray/slackrbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlackrBot

Build Status

A library for building Slack bots in Rust.

A simple example for getting started

SlackRBot::new("UNIQUE_CLIENT_ID", "UNIQUE_CLIENT_SECRET", vec!["channels:read", "channels:write"])
    .handle(|m: Message| {
        match m {
            Connect              => // join channels
            ChannelJoin(channel) => // say hello!
            _                    => // do nothing
        }
    })
    .listen(port);

About

A simple library for building slack bots in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages