diff options
author | Wim <wim@42.be> | 2017-01-28 22:45:32 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-01-28 22:45:32 +0100 |
commit | 79e6c9fa6cfca4bfe8913fd891fd9b12bd5bb505 (patch) | |
tree | bbcbbcf10127a0f5d030345b4beabbc9df7713d2 /vendor/github.com/bwmarrin/discordgo/examples/pingpong | |
parent | 1426ddec5f2250024c80765017b899e847bf2996 (diff) | |
download | matterbridge-msglm-79e6c9fa6cfca4bfe8913fd891fd9b12bd5bb505.tar.gz matterbridge-msglm-79e6c9fa6cfca4bfe8913fd891fd9b12bd5bb505.tar.bz2 matterbridge-msglm-79e6c9fa6cfca4bfe8913fd891fd9b12bd5bb505.zip |
Update vendor
Diffstat (limited to 'vendor/github.com/bwmarrin/discordgo/examples/pingpong')
-rw-r--r-- | vendor/github.com/bwmarrin/discordgo/examples/pingpong/main.go | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/vendor/github.com/bwmarrin/discordgo/examples/pingpong/main.go b/vendor/github.com/bwmarrin/discordgo/examples/pingpong/main.go index e6893ca1..2edd957e 100644 --- a/vendor/github.com/bwmarrin/discordgo/examples/pingpong/main.go +++ b/vendor/github.com/bwmarrin/discordgo/examples/pingpong/main.go @@ -9,24 +9,20 @@ import ( // Variables used for command line parameters var ( - Email string - Password string - Token string - BotID string + Token string + BotID string ) func init() { - flag.StringVar(&Email, "e", "", "Account Email") - flag.StringVar(&Password, "p", "", "Account Password") - flag.StringVar(&Token, "t", "", "Account Token") + flag.StringVar(&Token, "t", "", "Bot Token") flag.Parse() } func main() { - // Create a new Discord session using the provided login information. - dg, err := discordgo.New(Email, Password, Token) + // Create a new Discord session using the provided bot token. + dg, err := discordgo.New("Bot " + Token) if err != nil { fmt.Println("error creating Discord session,", err) return |