forked from git.klmp200.net/ALFRED
des trucs pas termine qui fonctionne plus ou moins
This commit is contained in:
parent
99a6cd2a14
commit
8301e1dfaa
7 changed files with 233 additions and 2 deletions
22
plugin/test.go
Normal file
22
plugin/test.go
Normal 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
22
plugin/test2.go
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue