all repos — gopipe @ 5a91c6dec0ac3e5f50ca3c46af1228c0d8120223

Embed YouTube videos on Telegram, Discord and more!

src/globals/globals.go (view raw)

 1package globals
 2
 3import (
 4	"bytes"
 5	"net/http"
 6	"time"
 7
 8	"github.com/birabittoh/myks"
 9	"github.com/kkdai/youtube/v2"
10	"github.com/utking/extemplate"
11)
12
13var (
14	Debug bool
15	Proxy bool
16	Port  string
17
18	C  = http.DefaultClient
19	YT = youtube.Client{}
20	XT = extemplate.New()
21
22	KS  = myks.New[youtube.Video](3 * time.Hour)
23	PKS *myks.KeyStore[bytes.Buffer]
24
25	AdminUser string
26	AdminPass string
27)