clessy-ng/modules/module.go
Hamcha 42de49b13d
Some checks failed
continuous-integration/drone/push Build is failing
Use db not files!
2022-03-25 20:06:13 +01:00

17 lines
266 B
Go

package modules
import (
"git.fromouter.space/hamcha/tg"
"github.com/cockroachdb/pebble"
)
type ModuleOptions struct {
API *tg.Telegram
Name string
KV *pebble.DB
}
type Module interface {
Initialize(options ModuleOptions) error
OnUpdate(tg.APIUpdate)
}