Installing Anarchy - not-ilinked/Anarchy GitHub Wiki

Installing Anarchy is just as easy as installing any other NuGet package. The process is as follows:

Step 1 - Create the c# project

Creating the project is as easy as selecting 'Console App (.NET Framework)' and entering a name. As for framework version, Anarchy requires at least .NET Framework 4.7, although we are working on also supporting .NET Core.

Visual Studio project configuration

Step 2 - Install Anarchy through NuGet

While it is certainly possible to import Anarchy from cloning the repository and building it yourself, I will only be going over NuGet here, as it is the easiest and most common way of installing it.

The steps to install Anarchy are as follows:

  • Right click on your project in Visual Studio
  • Click "Manage NuGet Packages..."
  • Make sure you're in the Browse tab
  • Search for "Anarchy-wrapper"
  • Find the version you'd like and hit Install.

Installing the newest version is recommended, as Discord makes changes to their API over time and bugs with Anarchy itself are fixed.

NuGet installation

Step 3 - getting your token

The next step before before writing your first bot is getting your token. What a token actually is will be explained in more detail later, but for now just think of it as a "standalone" password Anarchy needs to access an user/bot account.

If you would like to create a regular bot, refer to this guide. If not, you can find your own user token like this.