Some changes
This commit is contained in:
parent
5e83b1ace4
commit
e346743cae
3
main.go
3
main.go
@ -48,12 +48,9 @@ func main() {
|
|||||||
config = utils.GetConfig()
|
config = utils.GetConfig()
|
||||||
|
|
||||||
var chat_prefix = config.GetString("prefix")
|
var chat_prefix = config.GetString("prefix")
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
log.Printf("Initializing Bot...")
|
log.Printf("Initializing Bot...")
|
||||||
|
|
||||||
bot, err = tgbotapi.NewBotAPI(config.GetString("telegram.key"))
|
bot, err = tgbotapi.NewBotAPI(config.GetString("telegram.key"))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
1
test.html
Normal file
1
test.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="8635a202-94bb-49cc-a983-d69a45ca4be1";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
|
@ -18,10 +18,6 @@ func GetConfig() *viper.Viper {
|
|||||||
c.SetDefault("debug", true)
|
c.SetDefault("debug", true)
|
||||||
c.SetDefault("admins", []interface{}{})
|
c.SetDefault("admins", []interface{}{})
|
||||||
|
|
||||||
c.SetDefault("redis.host", "localhost:6379")
|
|
||||||
c.SetDefault("redis.db", 0)
|
|
||||||
c.SetDefault("redis.password", "")
|
|
||||||
|
|
||||||
c.SetDefault("crisp.identifier", "")
|
c.SetDefault("crisp.identifier", "")
|
||||||
c.SetDefault("crisp.key", "")
|
c.SetDefault("crisp.key", "")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user