package main import ( "flag" "fmt" "github.com/bwmarrin/discordgo" ) var ( Email string Password string ) func init() { flag.StringVar(&Email, "e", "", "Account Email") flag.StringVar(&Password, "p", "", "Account Password") flag.Parse() } func main() { // Create a new Discord session using the provided login information. dg, err := discordgo.New(Email, Password) if err != nil { fmt.Println("error creating Discord session,", err) return } fmt.Printf("Your Authentication Token is:\n\n%s\n", dg.Token) }