Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

brainboxdotcc/templatebot

Repository files navigation

D++ CMake Template (templatebot)

CMake template for a simple D++ bot. This template assumes that D++ is already installed.

Compilation

mkdir build
cd build
cmake ..
make -j

If DPP is installed in a different location you can specify the root directory to look in while running cmake

cmake .. -DDPP_ROOT_DIR=<your-path>

Running the template bot

Create a config.json in the directory above the build directory:

{ "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.

Releases

No releases published

Packages

Contributors 6

AltStyle によって変換されたページ (->オリジナル) /