-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathbots.go
More file actions
21 lines (17 loc) · 698 Bytes
/
bots.go
File metadata and controls
21 lines (17 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package slacker
// BotMode instruct the bot on how to handle incoming events that
// originated from a bot.
type BotMode int
const (
// BotModeIgnoreAll instructs our bot to ignore any activity coming
// from other bots, including our self.
BotModeIgnoreAll BotMode = iota
// BotModeIgnoreApp will ignore any events that originate from a
// bot that is associated with the same App (ie. share the same App ID) as
// this bot. OAuth scope `user:read` is required for this mode.
BotModeIgnoreApp
// BotModeIgnoreNone will not ignore any bots, including our self.
// This can lead to bots "talking" to each other so care must be taken when
// selecting this option.
BotModeIgnoreNone
)