Skip to content

Tiny discord bot that I may or may not ever use in production

Notifications You must be signed in to change notification settings

rowandevving/heather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heather

A small discord bot I'm making with discordgo. If you have any cool suggestions be sure to make an issue so that I don't run out of ideas!

Prerequisites

  • A working Go environment
  • A discord bot with the Message Content intent

Setup

Clone this repository, and then create a configuration file. All you need to get started with a basic configuration is your bot's token:

{
  "token": "[YOUR_PRIVATE_BOT_TOKEN_HERE]",
  "databaseDir": "[PATH_TO_DATABASE_FOLDER]",
  "prefix": "[Prefix for commands e.g. !, ?, - etc]"
}

Note

A database will be created if one isn't found in the specified directory

Then, execute go run . -settings "[PATH_TO_YOUR_CONFIG_FILE]" to connect the bot up and create a websocket connection.

Tags

Tags are shortcodes that can be sent in a message for the bot to reply with a quick message. Useful for things like quicklinks or FAQs.

Tags can be called in a message with --[tag name]-[sub-tag name]

Tags can be configured using the tags array in the configuration file as so:

"tags": [
  {
    "name": "hello",
    "message": "Bonjour", //message to send
    "subtags": [

      {
        "name": "world",
        "message": "Bonjour le monde"
      },
      {
        "name": "universe",
        "message": "Bonjour l'univers"
      }

    ]
  }
]

Colour Roles

Role colours allow you to define custom colour roles your members can give themselves using the color [color preset] command.

Define colour presets in the colors array like this:

"colors": [
  {
    "name": "red", //preset name
    "hex": "#ff0000"
  }
]

About

Tiny discord bot that I may or may not ever use in production

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages