messages and commands
This commit is contained in:
@@ -27,8 +27,8 @@ The below code will make a bot and login as that bot account you created.
|
||||
```c#
|
||||
// Importing the Client SDK and DotEnv.
|
||||
using Valour.Sdk.Client;
|
||||
using DotNetEnv;
|
||||
using Valour.Shared;
|
||||
using DotNetEnv;
|
||||
|
||||
// Creating the client that connects to Valour Servers.
|
||||
ValourClient client = new ValourClient("https://api.valour.gg/");
|
||||
@@ -37,7 +37,7 @@ client.SetupHttpClient();
|
||||
// Import the .env variables into the app.
|
||||
Env.Load();
|
||||
|
||||
// Store the token into a variable inside of the client.
|
||||
// Store the token into a variable inside of the script.
|
||||
string token = Environment.GetEnvironmentVariable("TOKEN") ?? string.Empty;
|
||||
|
||||
// Check if the token is valid.
|
||||
@@ -62,7 +62,7 @@ Console.WriteLine($"Logged in as {client.Me.Name} (ID: {client.Me.Id})");
|
||||
await Task.Delay(Timeout.Infinite);
|
||||
```
|
||||
|
||||
Now to run the bot we need to make sure ew are inside the root directory of the app and then run:
|
||||
Now to run the bot we need to make sure we are inside the root directory of the app and then run:
|
||||
|
||||
```bash
|
||||
dotnet run
|
||||
|
||||
Reference in New Issue
Block a user