mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
18 lines
284 B
Go
18 lines
284 B
Go
|
package main
|
||
|
|
||
|
func (nb *nourybot) connect() error {
|
||
|
nb.twitchClient.Join("nourybot")
|
||
|
|
||
|
err := nb.twitchClient.Connect()
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
nb.twitchClient.Say("nourybot", "xd")
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (nb *nourybot) onConnect() {
|
||
|
nb.twitchClient.Say("nourybot", "xd")
|
||
|
}
|