clessy-ng/modules/module.go
Hamcha 53caadf9d9
All checks were successful
continuous-integration/drone/push Build is passing
Add unsplash
2022-03-27 03:21:07 +02:00

19 lines
335 B
Go

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