Creating a Bot Account

In order to work with the library and the Stoat API in general, we should first create a Stoat bot account.

Note

If you wish to use user account, please visit Tokens instead.

Creating a Bot account is a pretty straightforward process.

  1. Make sure you’re logged on to the Stoat website.

  2. Navigate to the bots page.

  3. Click on the “CREATE A BOT” button.

    The "CREATE A BOT" button.
  4. Give the bot a name and click “Create”.

    The new bot form filled in.
  5. Click on the “Edit” button to configure bot’s profile.

  6. Make sure that Public Bot is ticked if you want others to invite your bot.

    How the Bot User options should look like for most people.
  7. Copy the token using the “Copy” button.

    Warning

    It should be worth noting that this token is essentially your bot’s password. You should never share this with someone else. In doing so, someone can log in to your bot and do malicious things, such as leaving servers, ban all members inside a server, or pinging all members maliciously.

    The possibilities are endless, so do not share this token.

    If you accidentally leaked your token, click the “Regenerate” button as soon as possible. This revokes your old token and re-generates a new one. Now you need to use the new token to login.

And that’s it. You now have a bot account and you can login with that token.

Inviting Your Bot

So, you’ve made a bot account, but it’s not actually in any server.

If you want to invite your bot, you must create an invite URL for it.

  1. Make sure you’re logged on to the Stoat website.

  2. Navigate to the bots page in user settings.

  3. Click on your bot.

  4. Click on the “Copy Invite Link” button.

    How the bot invite page should look like.
  5. The copied URL can be used to add your bot to a server or group. Copy and paste the URL into your browser, choose a destination to invite the bot to, and click “ADD”.

Note

The person adding the bot needs “Manage Server” or “Invite Others” (in groups) permissions to do so.