Skip to content

RassssSnRk/templatebot

 
 

Repository files navigation

D++ CMake Template (templatebot)

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

Compilation

  1. Edit /src/main.cpp : replace <your_bot_token> with your bot token
const std::string bot_token = "<your_bot_token>";
  1. Run the following codes :
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

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.

About

CMake template for a simple D++ bot.

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CMake 56.7%
  • C++ 33.1%
  • Dockerfile 7.2%
  • C 3.0%