Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benzhaomin/cancerigo

A simple Go library used to award "cancer points" to chat messages from Twitch.
https://github.com/benzhaomin/cancerigo

golang twitchtv

Last synced: about 2 months ago
JSON representation

A simple Go library used to award "cancer points" to chat messages from Twitch.

Awesome Lists containing this project

README

        

# Cancerigo

A simple library used to award "cancer points" to chat messages from Twitch.

Golang re-implementation of [TwichCancer/symptom](https://github.com/Benzhaomin/twitchcancer/tree/master/twitchcancer/symptom).

## Usage

Basically, this lib can be summarized by its main function `func Diagnose(message string) (points int)`.

```go
>>> Diagnose("some message with lots of interesting things and Kappa Kappa emotes")
5
```

## Dev

- `make test` to run tests.
- `make bench` to run bencharmks.
- `make generate` to generate the list of emotes in a go map.
- `make emotes` to update the list of emotes from remote sources.