From 233e672287a2971267b012031071ae168b799697 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Tue, 14 Jun 2016 09:29:10 -0500 Subject: [PATCH] Remove examples on converting user to bot This is no longer supported by Discord. --- examples/appmaker/README.md | 12 ++---------- examples/appmaker/main.go | 5 +---- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/examples/appmaker/README.md b/examples/appmaker/README.md index a2cab68..f9a9036 100644 --- a/examples/appmaker/README.md +++ b/examples/appmaker/README.md @@ -4,9 +4,8 @@ AppMaker Example This example demonstrates how to utilize DiscordGo to create Bot Applications. -You can create a new bot account or convert an existing normal user account into -a bot account with this tool. You can also view the list of applications you -have on your account and delete applications. +You can create a new bot account, view the list of applications you have, and +delete applications. ### Build @@ -23,8 +22,6 @@ go build Usage of ./appmaker: -a string App/Bot Name - -c string - Token of account to convert. -d string Application ID to delete -e string @@ -45,11 +42,6 @@ applications on the provided account. * If you provide a **-d** flag with a valid application ID then that application will be deleted. -* If you provide a **-c** flag with a valid user token then than user account -will be converted into a Bot account instead of creating a new Bot account for -an application. - - Below example will create a new Bot Application under the given Email/Password account. The Bot will be named **DiscordGoRocks** diff --git a/examples/appmaker/main.go b/examples/appmaker/main.go index 90cdac5..dbbb050 100644 --- a/examples/appmaker/main.go +++ b/examples/appmaker/main.go @@ -25,7 +25,6 @@ func init() { flag.StringVar(&DeleteID, "d", "", "Application ID to delete") flag.BoolVar(&ListOnly, "l", false, "List Applications Only") flag.StringVar(&AppName, "a", "", "App/Bot Name") - flag.StringVar(&ConvToken, "c", "", "Token of account to convert.") flag.Parse() } @@ -81,9 +80,7 @@ func main() { fmt.Printf("Secret: %s\n\n", ap.Secret) // Create the bot account under the application we just created - // If ConvToken is set, then this will convert an existing account - // into a bot account under the application we just created. - bot, err := dg.ApplicationBotCreate(ap.ID, ConvToken) + bot, err := dg.ApplicationBotCreate(ap.ID) if err != nil { fmt.Println("error creating bot account,", err) return