forked from foresthoffman/bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.go
More file actions
38 lines (32 loc) · 793 Bytes
/
doc.go
File metadata and controls
38 lines (32 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* doc.go
*
* Copyright (c) 2017 Forest Hoffman. All Rights Reserved.
* License: MIT License (see the included LICENSE file)
*/
/*
The bot package provides a set of functions that control a basic Twitch.tv chat bot. The
package also exposes an interface which can be used to create a custom chat bot.
Basic usage:
```
package main
import (
"github.com/foresthoffman/bot"
"time"
)
func main() {
// Replace the channel name, bot name, and the path to the private directory with your respective
// values.
myBot := bot.BasicBot{
Channel: "twitch",
MsgRate: time.Duration(20/30) * time.Millisecond,
Name: "TwitchBot",
Port: "6667",
PrivatePath: "../private/oauth.json",
Server: "irc.chat.twitch.tv",
}
myBot.Start()
}
```
*/
package bot