Skip to content
This repository was archived by the owner on Jun 17, 2020. It is now read-only.

Getting started

Mike edited this page Mar 11, 2017 · 7 revisions

##Table of contents

  • Getting Visual Studio
  • Download IA.SDK
  • Create the project
  • The Code
  • Ending Notes

##Getting Visual Studio As a starting note, I'd like to make sure that this guide to set up the Sdk is purely aimed with Visual Studio 2015 or 2017.

Please download it from: https://www.visualstudio.com/downloads/

##Downloading IA.SDK There are two ways to download the SDK

[RECOMMENED] Use a git tool (e.g. Sourcetree) to pull the repository
Sourcetree link: https://www.sourcetreeapp.com/

[EASY WAY] Go to the Code<> tab and press this button easy way image

Make sure not to make any changes, as your bot (running IA) will not longer detect it as a valid

##Creating the project Author's note: Once we release to a stable version, I'll upload the Sdk to nuget.

At the moment you should be running visual studio, This means you have the ability to create a new solution (project)

Do that, and pick "Class Library"

step one

Now on the left you see the Solution Explorer, It has all your code, dependencies, and settings. Right click on your project name and press "Add" -> "Add Existing Project"

step two

Locate your IA.SDK and add it to your project.

step two two

Once this is finished, You want to right click on "References" and press "Add Reference" and Add IA.SDK as a reference

step three

To add IA.SDK as a reference, go to the Projects->Solution and tick the IA.SDK box like shown below

step four

Now, you're all set up to work on your addon 😄

The Code

I've added a very small code snippet here, Replace class Class1() with this class, Bots running on IA use this to identify your application's starting point.

public class Addon : IAddon
{
   public async Task<IAddonInstance> Create(IAddonInstance addon)
   {
       // Code here and define addon here!!
       return addon;
    }
}

Ending Notes

I'll do my best to update this, but if it won't work or you're having problems, you can find a way to contact me at http://veld.one

Navigation

Getting Started

####Discord

  • AudioClients
  • AudioChannels
  • Embeds
  • Guilds
  • MessageChannels
  • Messages
  • Roles
  • Users

####Events

  • CommandEvents

####Instances

  • AddonInstance
  • ModuleInstance
Clone this wiki locally