Installation

For Yasmin, we need PHP 7.1 (or higher) and composer.

PHP

Please refer to the specific installation guide for your platform. Please note that Yasmin does not run on any webservers and only runs in CLI. Thus installing any webserver or webserver-specific package is not necessary or ideal.

Composer

Please refer to the official getting started page.

Yasmin

For the rest of the installation we rely on composer. First we need to create a new project using composer init. Composer will take us through the steps. As soon as it's done, we use composer require charlottedunois/yasmin to install Yasmin and its dependencies. It might take a while.

Discord

Meanwhile you can create the application for your bot. For that you need to visit the Discord Developers page, if you aren't logged in into your Discord account yet in your browser, login into your account (you get asked to do that anyway).

These are the steps to create an application:

  1. Open the Discord Developers page, login if necessary.
  2. Click on the big add button "New App".
  3. Fill the form, only name is required.
  4. Click on the "Create App" button once you're done.

Once the app got created, we get redirected to the Application details page.

Now, this is just an application for OAuth, we can't use this for our bot yet. The last step is to click the "Create Bot User" button below.

Once you have a bot user, you will see this box on the page.

Congratulations, you're the proud owner of a new Discord bot.

Token

This part is important, so pay close attention.

A token is like a password, it acts as a key to login into the bot account. Do not share tokens with anyone, don't upload it anywhere, neither accidentally nor purposefully. You, as the owner, is responsible and liable for anything that opens on the account.

If you click on click to reveal, you will get shown the token. The token gets each time you click on it generated. But don't fear - they are all valid until you click regenerate the token. When you get asked to put the token into somewhere in your script, then it's what you see when you click on click to reveal.

results matching ""

    No results matching ""