feat: added help command
This commit is contained in:
parent
4fc5ae63a1
commit
bd9854676d
10 changed files with 414 additions and 7 deletions
|
@ -70,7 +70,7 @@ func NewHLTB() *HLTBPlugin {
|
|||
BasePlugin: plugin.BasePlugin{
|
||||
ID: "fun.hltb",
|
||||
Name: "How Long To Beat",
|
||||
Help: "Get game completion times from HowLongToBeat.com using !hltb <game name>",
|
||||
Help: "Get game completion times from HowLongToBeat.com using `!hltb <game name>`",
|
||||
},
|
||||
httpClient: &http.Client{
|
||||
Timeout: 10 * time.Second,
|
||||
|
|
|
@ -23,6 +23,11 @@ func NewLoquito() *LoquitoPlugin {
|
|||
}
|
||||
}
|
||||
|
||||
// GetHelp returns the plugin help text
|
||||
func (p *LoquitoPlugin) GetHelp() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// OnMessage handles incoming messages
|
||||
func (p *LoquitoPlugin) OnMessage(msg *model.Message, config map[string]interface{}, cache model.CacheInterface) []*model.MessageAction {
|
||||
if !strings.Contains(strings.ToLower(msg.Text), "lo quito") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue