From e8224205365579c1f4b75482ac4a4d87fc40ed9d Mon Sep 17 00:00:00 2001 From: cxrtagena Date: Thu, 3 Sep 2026 22:44:49 -0400 Subject: [PATCH] Update beginner.cpp --- src/commands/beginner.cpp | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/commands/beginner.cpp b/src/commands/beginner.cpp index 7222e37..f5d270d 100644 --- a/src/commands/beginner.cpp +++ b/src/commands/beginner.cpp @@ -1,11 +1,39 @@ #include "commands.h" #include "../globals/globals.h" +#include + void cmd::beginnerCommand(dpp::cluster& bot, const dpp::slashcommand_t& event) { + const std::string content = R"(If you're learning C++, this learning path can help you get started: + +**Suggested order** +1. Install a compiler and choose an IDE +2. Learn variables, types, conditions, and loops +3. Learn functions and basic program structure +4. Learn classes, structs, and object-oriented programming +5. Learn the standard library, including strings, vectors, and maps +6. Practice by building small projects and debugging your code + +**Recommended resources** +šŸ“˜ **Learn C++** +https://www.learncpp.com/ + +šŸ“– **C++ Reference** +https://en.cppreference.com/ + +**Common advice** +āœ… Learn modern C++, rather than treating it as C with classes +āœ… Prefer resources that explain why code works +āœ… Read and write code regularly +āŒ Do not rely on AI to write your code for you + +If you're stuck, ask in the help channels: <#1130494190615265342>. +Include your code, error messages, what you tried, and what you expected to happen.)"; + const dpp::embed embed = dpp::embed() .set_color(globals::color::defaultColor) - .add_field("šŸ‘‹ New to C++? Start here!", "If you're learning C++, we recommend these resources:\n\nšŸ“˜ **Learn C++ (Best beginner tutorial)**\n- https://www.learncpp.com/\n\nšŸ“– **CPP Reference (Language & Standard library reference)**\n- https://en.cppreference.com/\n\nšŸ› ļø **Practice**\n1. Build small projects\n2. Read and write lots of code\n\n**Common advice:**\n* āœ… Learn modern C++, not C with classes\n* āœ… Avoid outdated books, videos, and random blog posts that teach old C++ practices\n* āŒ Don't ask ChatGPT or other AI to write your code\n\nIf you're stuck on something specific, ask in the help channels: <#1130494190615265342>.\nBe sure to include your code, any error messages, what you've tried already, and what you expected to happen."); + .add_field("šŸ‘‹ New to C++? Start here!", content); const dpp::message message(event.command.channel_id, embed); event.reply(message);