diff --git a/source/discord-telegraph/main.go b/source/discord-telegraph/main.go new file mode 100644 index 0000000..06c6d75 --- /dev/null +++ b/source/discord-telegraph/main.go @@ -0,0 +1,21 @@ +package main + +import ( + "flag" + "log" +) + +// Token — an authorization token to Discord API for bots +var ( + Token string +) + +// Retrieve the passed arguments on run +func init() { + flag.StringVar(&Token, "token", "", "Authorization token to Discord API for bots") + flag.Parse() +} + +func main() { + log.Println("Got the token:", Token) +}