feat: hltb plugin
This commit is contained in:
parent
c53942ac53
commit
f13598a329
24 changed files with 940 additions and 17 deletions
|
@ -26,7 +26,7 @@ func NewTwitterExpander() *TwitterExpander {
|
|||
}
|
||||
|
||||
// OnMessage handles incoming messages
|
||||
func (p *TwitterExpander) OnMessage(msg *model.Message, config map[string]interface{}) []*model.MessageAction {
|
||||
func (p *TwitterExpander) OnMessage(msg *model.Message, config map[string]interface{}, cache model.CacheInterface) []*model.MessageAction {
|
||||
// Skip empty messages
|
||||
if strings.TrimSpace(msg.Text) == "" {
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue