Browse Source

Remove examples on converting user to bot

This is no longer supported by Discord.
Bruce Marriner 8 years ago
parent
commit
233e672287
2 changed files with 3 additions and 14 deletions
  1. 2 10
      examples/appmaker/README.md
  2. 1 4
      examples/appmaker/main.go

+ 2 - 10
examples/appmaker/README.md

@@ -4,9 +4,8 @@ AppMaker Example
 
 
 This example demonstrates how to utilize DiscordGo to create Bot Applications.
 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
 ### Build
 
 
@@ -23,8 +22,6 @@ go build
 Usage of ./appmaker:
 Usage of ./appmaker:
   -a string
   -a string
         App/Bot Name
         App/Bot Name
-  -c string
-        Token of account to convert.
   -d string
   -d string
         Application ID to delete
         Application ID to delete
   -e string
   -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
 * If you provide a **-d** flag with a valid application ID then that application
 will be deleted.
 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 
 Below example will create a new Bot Application under the given Email/Password 
 account. The Bot will be named **DiscordGoRocks**
 account. The Bot will be named **DiscordGoRocks**
 
 

+ 1 - 4
examples/appmaker/main.go

@@ -25,7 +25,6 @@ func init() {
 	flag.StringVar(&DeleteID, "d", "", "Application ID to delete")
 	flag.StringVar(&DeleteID, "d", "", "Application ID to delete")
 	flag.BoolVar(&ListOnly, "l", false, "List Applications Only")
 	flag.BoolVar(&ListOnly, "l", false, "List Applications Only")
 	flag.StringVar(&AppName, "a", "", "App/Bot Name")
 	flag.StringVar(&AppName, "a", "", "App/Bot Name")
-	flag.StringVar(&ConvToken, "c", "", "Token of account to convert.")
 	flag.Parse()
 	flag.Parse()
 }
 }
 
 
@@ -81,9 +80,7 @@ func main() {
 	fmt.Printf("Secret: %s\n\n", ap.Secret)
 	fmt.Printf("Secret: %s\n\n", ap.Secret)
 
 
 	// Create the bot account under the application we just created
 	// 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 {
 	if err != nil {
 		fmt.Println("error creating bot account,", err)
 		fmt.Println("error creating bot account,", err)
 		return
 		return