hinko

command module
v0.0.0-...-8894253 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 11 Imported by: 0

README

Build Status

Hinko (slack bot)

About the project

My weekend project aimed to help me learn Go while having some fun. Makes good use of goroutines, channels, function signatures, slices, etc. It has its own database (leveldb), downloads images from the web and converts them to ASCII, plays/streams concurrent ASCII animations into posts (by posting and editing a message in the channel repeatedly), etc. I spent some time cleaning up the code (mostly to learn) but I'm sure it can be improved a lot. Enjoy!

screenshot

Slack bot for random team picking and ASCII fun

A Slack bot written in go with its own database that can help you pick random teams (e.g. for foosball, code reviews, etc.).

It features a number of ASCII art and animation experiments, along with the ability to create custom named groups and put/get values.

The bot uses reactions to confirm commands (or say they don't work) to not spam the channel.

screenshot

Try the following commands:

put key value
get key
group groupname list
group groupname create @user1 @user2 @user3 ...
group groupname add @user1 @user2 @user3 ...
group groupname remove @user1 @user2 @user3 ...
score add team1:team2 score1:score2
score get team2:team1
score reset team2:team1
randompairs @user1 @user2 @user3 ...
randompairs group
randomteams teamsize @user1 @user2 @user3 ...
randomteams teamsize group
ascii https://imageurl
shark
animate

screenshot

How do I get a Slack bot running?

Check out this great tutorial: https://rsmitty.github.io/Slack-Bot/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package ascii contains animation and image2ascii conversion experiments
Package ascii contains animation and image2ascii conversion experiments
Package commands includes all the command and subcommand processing
Package commands includes all the command and subcommand processing
Package model contains db access and data manipulation functions
Package model contains db access and data manipulation functions
Package slack contains everything needed to use the slack API
Package slack contains everything needed to use the slack API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL