🛠️Creating a Project

How to create your bot project in Xcode.

Now that you've added your bot to Discord, it's time to make it go online and ready for use.

Step 1a

Open Xcode and click on the Create a new Xcode project.

Step 1b

Under the macOS tab, select Command Line Tool.

Afterwards, type a product name and create your project in the directory of your choosing.

Step 2a

Alternatively, you create an executable project. This should be used if you intend to have your bot run on various operating systems (such as Linux). You can create an executable project by creating a new folder. For this example, the folders name is "DiscordBot". Open a new terminal at that folder and run the following:

$ swift package init --type executable

When you open the folder in Xcode, this will be the layout:

Last updated