Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/douglascdev/buttifier
Go package that uses randomness to turn syllables into "butt" or a custom word.
https://github.com/douglascdev/buttifier
butt buttsbot go golang twitch
Last synced: 4 months ago
JSON representation
Go package that uses randomness to turn syllables into "butt" or a custom word.
- Host: GitHub
- URL: https://github.com/douglascdev/buttifier
- Owner: douglascdev
- Created: 2024-08-08T18:07:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T22:11:56.000Z (5 months ago)
- Last Synced: 2024-09-18T02:38:33.165Z (5 months ago)
- Topics: butt, buttsbot, go, golang, twitch
- Language: Go
- Homepage: https://github.com/douglascdev/buttifier
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# buttifier
![]()
Replace syllables with `butt`(default) or a custom word. Made for a twitch bot.
## Installation
```bash
go get github.com/douglascdev/buttifier
```## Usage
```go
package mainimport "github.com/douglascdev/buttifier"
func main() {
buttifier, err := buttifier.New()// 50% chance of buttifying the sentence passed to ButtifySentence
buttifier.ButtificationProbability = 0.5
// buttify about 30% of the syllables
buttifier.ButtificationRate = 0.3
// what each buttified syllable should be replaced with
buttifier.ButtWord = "butt"if err != nil {
panic(err)
}
newSentence, didButtify := buttifier.ButtifySentence("Someone did that something something")
if didButtify {
// Someone butt that something something
println(newSentence)
return
}
println("Did not buttify sentence")
}
```