Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

ROAST BOT - Discord Bot

ROAST BOT is a simple Discord bot built in C++ that responds to messages with random insults and roasts. The bot can ping users and is designed to be easy to run and modify.

Requirements

Before you start, ensure you have the following libraries and tools installed:

  1. C++ Compiler: A C++ compiler that supports C++11 or later (e.g., g++).
  2. libcurl: A library for transferring data with URLs. You can download it from libcurl's official website.
  3. nlohmann/json: A JSON library for C++. You can find it on GitHub.

Installation Steps

  1. Install libcurl:

    • Download and extract the libcurl library.
    • Follow the installation instructions specific to your platform.
  2. Install nlohmann/json:

    • Download the single-header file json.hpp from the nlohmann/json repository.
    • Place it in a suitable include directory (e.g., C:/json-develop/json-develop/include/nlohmann).
  3. Set Up Your Discord Bot:

    • Create a new bot on the Discord Developer Portal.
    • Get your bot token and add the bot to your server with appropriate permissions.
  4. Configure the Code:

    • Replace the BOT_TOKEN and CHANNEL_ID in the code with your bot's token and the channel ID where you want the bot to operate.

Build Instructions

To compile the bot, use the following command in your terminal:

g++ ROAST_BOT.cpp -o ROAST_BOT -I"C:/curl-8.10.1_6-win64-mingw/curl-8.10.1_6-win64-mingw/include" -L"C:/curl-8.10.1_6-win64-mingw/curl-8-10.1_6-win64-mingw/lib" -lcurl -I"C:/json-develop/json-develop/include" -I"C:/json-develop/json-develop/include/nlohmann"

About

ROAST BOT is a Discord bot written in C++ that uses libcurl to send and receive messages from Discord's API. It randomly replies to user messages with humorous roasts. The bot utilizes nlohmann/json to handle data in JSON format, allowing for easy communication and interaction with Discord channels

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages