mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add random number generator over range
This commit is contained in:
parent
c0634115c1
commit
33e95eed13
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ func GenerateRandomNumber(max int) int {
|
||||||
return rand.Intn(max)
|
return rand.Intn(max)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GenerateRandomNumberRange(min int, max int) int {
|
||||||
|
return (rand.Intn(max-min) + min)
|
||||||
|
}
|
||||||
|
|
||||||
// ElevatedPrivsMessage is checking a given message twitch.PrivateMessage
|
// ElevatedPrivsMessage is checking a given message twitch.PrivateMessage
|
||||||
// if it came from a moderator/vip/or broadcaster and returns a bool
|
// if it came from a moderator/vip/or broadcaster and returns a bool
|
||||||
func ElevatedPrivsMessage(message twitch.PrivateMessage) bool {
|
func ElevatedPrivsMessage(message twitch.PrivateMessage) bool {
|
||||||
|
|
Loading…
Reference in a new issue