Skip to content

alexberryman/DiscordGoTurnips

Repository files navigation

DiscordGoTurnips

Go Report Card Actions Status

A bot for discord to store and report turnip prices for the members of service.

Usage

Mention the bot using @BotName help to see full list of commands: usage image

To add a price just mention the bot followed by the current price that your store is buying turnips for. As a reply the bot will use the wonderful Turnip-Calculator by elxris.

Deploy your own bot

This project is configured to run on the free-tier of heroku. All you need is an application token from Discord.

  1. Go to https://discordapp.com/developers/applications and create a new application.
  2. Provide a name. The name of the application will be used as the bot's name on Discord.
  3. Setup bot. Click on the Bot tab in the left menu, then click the Add Bot button.
    • Choose if you want this bot to be "Public" where anyone with the link can invite it to a different discord server
  4. Copy the Bot Token by clicking the Copy button under "Token".
  5. Use this token as the DISCORD_TOKEN when creating a Heroku deployment with the button below.

Deploy

Invite your own bot to a server

  1. Visit https://discordapp.com/developers/applications and select the bot application.
  2. Build a link to invite the bot. Click OAuth2 in the left-hand menu.
  3. Under the "Scopes" section check the bot checkbox.
  4. Under "Bot Permission" check the following boxes:
    • Send Messages
    • Embed Links
    • Read Message History
    • Mention Everyone
    • Add Reactions
  5. Above back in the "Scopes" section Copy the generated URL.
  6. Paste the URL link into the browser, and pick the Discord server you want the bot to join.