This is an example DSharpPlus bot, based on Xamarin.Android.
This is a very basic bot, but it should give you a good idea of where to start.
In order to run the bot, you must first create an application for it, build the bot, then configure it.
- Go to my applications page on Discord Developer portal.
- Press the new app button.
- New app page will open. Enter your bot's name in the app name field (1), and its description in the description field (2).
- You can optionally give it an avatar by pressing on the avatar button (3).
- When you're done, press the create app button.
- When the app is created, press the create bot user button.
- Once this is done, you will need to copy the bot's token. Under app bot user, there's a token field, press click to reveal and copy the resulting value.
- Open the project, and compile it in Debug mode.
- Install the app on your device.
- Go back to your app page, and copy your bot's client ID.
- Go to
https://discordapp.com/oauth2/authorize?client_id=your_app_id_here&scope=bot&permissions=0
. - On the page, select your server (1), and press authorize (2).
- Done! You can now run the bot!
Now start DSharpPlus Example Xamarin Bot app on your device or from the debugger.
You might want to play around with the example, perhaps modify it a bit.
You can find the documentation for DSharpPlus over here.
If you want to get more help, join the unofficial Discord API server, and look for #dotnet_dsharpplus channel.