mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 01:05:15 +00:00
13 lines
332 B
Go
13 lines
332 B
Go
|
package interact
|
||
|
|
||
|
// Responder defines the logic of responding the message
|
||
|
type Responder func(message string, reply Reply, ctxObjects ...interface{}) error
|
||
|
|
||
|
type TextMessageResponder interface {
|
||
|
SetTextMessageResponder(responder Responder)
|
||
|
}
|
||
|
|
||
|
type CommandResponder interface {
|
||
|
AddCommand(command *Command, responder Responder)
|
||
|
}
|