twitch-bot/internal/template/numeric/numeric.go
2021-11-19 22:53:30 +01:00

10 lines
287 B
Go

package numeric
import "github.com/Luzifer/twitch-bot/plugins"
func Register(args plugins.RegistrationArguments) error {
args.RegisterTemplateFunction("multiply", plugins.GenericTemplateFunctionGetter(multiply))
return nil
}
func multiply(m1, m2 float64) float64 { return m1 * m2 }