Valour Bot Guide
By SkyJoshua
This guide is still a work in progress!
This guide walks you through creating a bot on Valour.gg, connecting it with the SDK and getting it to do things on a planet. Basic knowledge in .NET is not required but is highly recommended!
Prerequisites
- A Valour account
- .NET SDK installed
- Basic knowledge of C#
- The Valour SDK (installed as part of the guide)
1. Create a bot account
- Log into Valour with your regular account.
- Go to Developer Settings (User Settings -> Developer).
- Click Create Bot and give it a name.
- Copy the token immediately - it is only shown once. If you lose it, you can regenerate it from the bot's edit page (this invalidates the old one).
2. Making the bot
Step 1. Logging in as the bot - Setting up the project and connecting to Valour
Step 2. Joining a planet - Adding your bot to a planet
Step 3. Connecting and Sending a Message to a Planet - Opening a real-time connection and sending your first message
Step 4. Receiving Messages and Commands - Listening for messages and creating a basic command
Step 5. Command Arguments - Parsing arguments from commands
Step 6. Member Info - Fetching info about the message author
Step 7. Permission Checking - Restricting commands to members with the right permissions
For more information check out the Valour GitHub and the Valour SDK on NuGet.
Languages
Markdown
100%