forked from git.klmp200.net/ALFRED
23 lines
336 B
Go
23 lines
336 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
tb "gopkg.in/tucnak/telebot.v2"
|
||
|
"log"
|
||
|
)
|
||
|
|
||
|
type plugin string
|
||
|
|
||
|
func (g plugin) Load() {
|
||
|
log.Println("plugin test2 loaded!")
|
||
|
}
|
||
|
|
||
|
func (g plugin) HandleMessage(bot *tb.Bot, msg string) {
|
||
|
log.Println("test2 message: " + msg)
|
||
|
}
|
||
|
|
||
|
func (g plugin) Unload() {
|
||
|
log.Println("plugin test2 unloaded!")
|
||
|
}
|
||
|
|
||
|
var Plugin plugin
|