https://github.com/brainboxdotcc/templatebot
CMake template for a simple D++ bot.
https://github.com/brainboxdotcc/templatebot
api container cpp discord discord-api discord-api-v10 discord-api-wrapper docker dplusplus dpp hacktoberfest linux osx
Last synced: 2 months ago
JSON representation
CMake template for a simple D++ bot.
- Host: GitHub
- URL: https://github.com/brainboxdotcc/templatebot
- Owner: brainboxdotcc
- License: apache-2.0
- Created: 2021-05-09T11:13:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T19:50:44.000Z (over 1 year ago)
- Last Synced: 2024-04-25T00:11:08.433Z (about 1 year ago)
- Topics: api, container, cpp, discord, discord-api, discord-api-v10, discord-api-wrapper, docker, dplusplus, dpp, hacktoberfest, linux, osx
- Language: CMake
- Homepage: https://dpp.dev/
- Size: 40 KB
- Stars: 8
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# D++ CMake Template (templatebot)
CMake template for a simple [D++](https://dpp.dev) bot. This template assumes that D++ is already installed.
## Compilation
mkdir build
cd build
cmake ..
make -jIf DPP is installed in a different location you can specify the root directory to look in while running cmake
cmake .. -DDPP_ROOT_DIR=
## Running the template bot
Create a config.json in the directory above the build directory:
```json
{ "token": "your bot token here" }
```Start the bot:
cd build
./templatebot## Extending the bot
You can add as many header files and .cpp files into the src and include folders as you wish. All .cpp files in the src directory will be linked together into the bot's executable.
## Renaming the bot
To rename the bot, search and replace "templatebot" in the `CMakeLists.txt` with your new bots name and then rename the templatebot folder in include. Rerun `cmake ..` from the `build` directory and rebuild.