1234567891011121314151617181920212223242526272829303132 |
- 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)
- }
|