A modular Twitch bot made in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
780 B

2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
  1. # twitchbot
  2. Go Twitch Bot Api wrapper, with an easy to use interface.
  3. # Example
  4. ```go
  5. package main
  6. import (
  7. "github.com/witer33/twitchbot"
  8. )
  9. func main() {
  10. bot := twitchbot.NewBot("oauth:abcdef", "mybot", []string{"channel"})
  11. bot.OnMessage(func(bot *twitchbot.Bot, message *twitchbot.Message) {
  12. if message.Message == "!ping" {
  13. message.Reply("pong")
  14. message.Delete()
  15. }
  16. })
  17. bot.Run()
  18. }
  19. ```
  20. # TODO: Migrate from python bot
  21. * Urban Dictionary definition requests, !urban and mod only, filter words
  22. * Standard Dictionary, !define to pull a max number of defintions (store in DB?)
  23. * Temperature, !temp to convert xF or xC values provided
  24. * Twitter Shoutouts, !tso obtain the given Twitch users probable twitter URL
  25. # TODO: New
  26. * Twitch Channel Point reactions (DB?)