Skip to content

Commit

Permalink
feat(config): print logo & telegraph token
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed Jul 6, 2019
1 parent 21da2dc commit 325507d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions config/autoload.go
Expand Up @@ -27,6 +27,16 @@ type MysqlConfig struct {
}

func init() {

logo := `
__ _
/ _| | _____ _____ _ __ ___ ___
| |_| |/ _ \ \ /\ / / _ \ '__/ __/ __|
| _| | (_) \ V V / __/ | \__ \__ \
|_| |_|\___/ \_/\_/ \___|_| |___/___/
`
fmt.Println(logo)
telegramTokenCli := flag.String("k", "", "Telegram Bot Token")
telegraphTokenCli := flag.String("tk", "", "Telegraph API Token")
socks5Cli := flag.String("s", "", "Socks5 Proxy")
Expand Down
6 changes: 5 additions & 1 deletion tgraph/tgraph.go
Expand Up @@ -23,7 +23,11 @@ var (

func init() {
if config.EnableTelegraph {
log.Println("Telegraph Enable")
if len(authToken) == 1 {
log.Println("Telegraph Enabled, Token: ", authToken)
} else {
log.Println("Telegraph Enabled, Token len: ", len(authToken))
}
telegraph.Verbose = verbose

for _, t := range authToken {
Expand Down

0 comments on commit 325507d

Please sign in to comment.