mirror-nourybot/pkg/common/counter.go

17 lines
303 B
Go
Raw Normal View History

2022-08-07 17:24:47 +02:00
package common
var (
tempCommands = 0
)
// CommandUsed is called on every command incremenenting tempCommands.
func CommandUsed() {
tempCommands++
}
// GetCommandsUsed returns the amount of commands that have been used
// since the last restart.
func GetCommandsUsed() int {
return tempCommands
}