|
@@ -2,14 +2,14 @@
|
|
|
Basic New Example
|
|
|
====
|
|
|
|
|
|
-This example demonstrates how to utilize DiscordGo to connect to Discord
|
|
|
+This example demonstrates how to utilize DiscordGo to connect to Discord
|
|
|
and print out all received chat messages.
|
|
|
|
|
|
This example uses the high level New() helper function to connect to Discord.
|
|
|
|
|
|
### Build
|
|
|
|
|
|
-This assumes you already have a working Go environment setup and that
|
|
|
+This assumes you already have a working Go environment setup and that
|
|
|
DiscordGo is correctly installed on your system.
|
|
|
|
|
|
```sh
|
|
@@ -18,7 +18,7 @@ go build
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
-You must authenticate using either an Authentication Token or both Email and
|
|
|
+You must authenticate using either an Authentication Token or both Email and
|
|
|
Password for an account. Keep in mind official Bot accounts only support
|
|
|
authenticating via Token.
|
|
|
|
|
@@ -39,3 +39,9 @@ authentication.
|
|
|
```sh
|
|
|
./new_basic -e EmailHere -p PasswordHere
|
|
|
```
|
|
|
+
|
|
|
+The below example shows how to start the bot using the bot user's token
|
|
|
+
|
|
|
+```sh
|
|
|
+./new_basic -t "Bot YOUR_BOT_TOKEN"
|
|
|
+```
|