mirror of
https://github.com/lyx0/nourybot-matrix.git
synced 2024-11-13 19:49:54 +01:00
16 lines
384 B
Go
16 lines
384 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/lyx0/nourybot-matrix/pkg/common"
|
||
|
)
|
||
|
|
||
|
func Preview(channel string) string {
|
||
|
imageHeight := common.GenerateRandomNumberRange(1040, 1080)
|
||
|
imageWidth := common.GenerateRandomNumberRange(1890, 1920)
|
||
|
|
||
|
reply := fmt.Sprintf("https://static-cdn.jtvnw.net/previews-ttv/live_user_%s-%vx%v.jpg", channel, imageWidth, imageHeight)
|
||
|
return reply
|
||
|
}
|