Archived
1

Initial commit

This commit is contained in:
2018-11-29 20:32:51 +04:00
commit ca1c52fc39
365 changed files with 81160 additions and 0 deletions

12
internal/config/proxy.go Normal file
View File

@@ -0,0 +1,12 @@
// Fantasy World Zookeeper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package config
// Proxy handles settings for Telegram SOCKS5 proxy
type Proxy struct {
Enabled bool `yaml:"enabled"`
Address string `yaml:"address,omitempty"`
Username string `yaml:"username,omitempty"`
Password string `yaml:"password,omitempty"`
}

10
internal/config/struct.go Normal file
View File

@@ -0,0 +1,10 @@
// Fantasy World Zookeeper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package config
// Struct is a main configuration structure that holds all other
// structs within.
type Struct struct {
Telegram Telegram `yaml:"telegram"`
}

View File

@@ -0,0 +1,11 @@
// Fantasy World Zookeeper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package config
// Telegram represents bot's Telegram configuration
type Telegram struct {
Token string `yaml:"token"`
Webhook Webhook `yaml:"webhook"`
Proxy Proxy `yaml:"proxy"`
}

View File

@@ -0,0 +1,11 @@
// Fantasy World Zookeeper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package config
// Webhook handles settings for Telegram webhook
type Webhook struct {
Enabled bool `yaml:"enabled"`
Domain string `yaml:"domain,omitempty"`
Listen string `yaml:"listen,omitempty"`
}