Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexwkleung/flower-bot

A Discord bot that tells you basic scientific information and biological history about flowers
https://github.com/alexwkleung/flower-bot

discord-api discord-bot dpp flower

Last synced: about 16 hours ago
JSON representation

A Discord bot that tells you basic scientific information and biological history about flowers

Awesome Lists containing this project

README

        

# Flower Bot

A Discord bot that tells you basic scientific information and biological history about flowers. This bot could be useful for users that want to know general information about flowers. I created this to practice using the Discord API and CMake. I myself learned about various flowers while creating this bot, so reading about them can be an interesting read if you're bored.

Written in C++ using the [D++ (DPP) Discord API Library](https://github.com/brainboxdotcc/DPP).

WIP. I will try to add as many flowers as possible to the list of commands. Later on, I'll add more enhancements to make the bot useful and fun.

# Install

Clone the repository.

```bash
git clone
```

Change directory.

```bash
cd Flower-Bot
```

Create text file for API key.

```bash
# this directory is gitignored

touch src/key.txt
```

Add key to text file.

```txt

```

Build using CMake.

You can use the VSCode CMake/CMake Tools extensions for an integrated CMake solution or run CMake from the CLI:

```bash
cmake --build Flower-Bot/build --config Debug --target all --
```

Run bot.

You can use the VSCode CMake/CMake Tools extensions for an integrated CMake solution or run the output file from the terminal:

```bash
cd build

Flower-Bot/build/Flower-Bot
```

# Using the bot

**Slash commands:**

`/iris`

`/daisy`

`/tulip`

`/lily`

`/orchid`

`/carnation`

`/freesia`

`/chrysanthemum`

`/gladiolus`

`/anemone`

`/daffodil`

`/poppy`

`/buttercup`

`/cosmos`

`/crocus`

`/sunflower`

`/dandelion`

`/jasmine`

`/blossom`

`/lavender`

`/rose`

`/bellflower`

`/primrose`

`/petunia`

`/favouriteflowers`

**Custom messages (type without the strings):**

`"thank you flower bot"` or `"thank you flower bot!"` or `"thanks flower bot"` or `"thanks flower bot!"`

`"how reliable is flower bot"` or `"how reliable is flower bot?"` or `"is flower bot reliable"` or `"is flower bot reliable?"`

`"flower complexity"` or `"how complex are flowers"` or `"how complex are flowers?"` or `"are flowers complex"` or `"are flowers complex?"`

**Embed commands:**

`!flowerbot`