des trucs pas termine qui fonctionne plus ou moins

This commit is contained in:
KLIPFEL Arthur 2018-07-24 14:04:08 +02:00
parent 99a6cd2a14
commit 8301e1dfaa
7 changed files with 233 additions and 2 deletions

22
plugin/test.go Normal file
View file

@ -0,0 +1,22 @@
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

22
plugin/test2.go Normal file
View file

@ -0,0 +1,22 @@
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