ALFRED/plugin/test.go
2018-07-24 14:04:08 +02:00

23 lines
333 B
Go

package main
import (
tb "gopkg.in/tucnak/telebot.v2"
"log"
)
type plugin string
func (g plugin) Load() {
log.Println("plugin test loaded!")
}
func (g plugin) HandleMessage(bot *tb.Bot, msg string) {
log.Println("test message: " + msg)
}
func (g plugin) Unload() {
log.Println("plugin test unloaded!")
}
var Plugin plugin