Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/benzhaomin/cancerigo
- Owner: Benzhaomin
- License: gpl-3.0
- Created: 2020-03-21T16:21:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T16:22:00.000Z (almost 5 years ago)
- Last Synced: 2023-03-01T19:01:08.751Z (almost 2 years ago)
- Topics: golang, twitchtv
- Language: Go
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.