forked from pothtonswer/discordmuffin
Remove examples on converting user to bot
This is no longer supported by Discord.
This commit is contained in:
parent
d1184ab1fd
commit
233e672287
2 changed files with 3 additions and 14 deletions
|
@ -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**
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue