diff --git a/src/commands/beginner.cpp b/src/commands/beginner.cpp index 7222e37..dc018b7 100644 --- a/src/commands/beginner.cpp +++ b/src/commands/beginner.cpp @@ -1,11 +1,30 @@ #include "commands.h" #include "../globals/globals.h" +#include void cmd::beginnerCommand(dpp::cluster& bot, const dpp::slashcommand_t& event) { + std::string dtxt = R"md( +If you're learning C++, we recommend these resources: + +šŸ“˜ **Learn C++ (Best beginner tutorial)**\n- https://www.learncpp.com/ + +šŸ“– **CPP Reference (Language & Standard library reference)** +- https://en.cppreference.com/\n\nšŸ› ļø **Practice** +1. Build small projects +2. Read and write lots of code + +**Common advice:** +* āœ… Learn modern C++, not C with classes +* āœ… Avoid outdated books, videos, and random blog posts that teach old C++ practices +* āŒ Don't ask ChatGPT or other AI to write your code +If you're stuck on something specific, ask in the help channels: <#1130494190615265342>. +Be sure to include your code, any error messages, what you've tried already, and what you expected to happen. + )md"; 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!", + dtxt.c_str()/* incase */); const dpp::message message(event.command.channel_id, embed); event.reply(message); diff --git a/src/commands/project_cmd.cpp b/src/commands/project_cmd.cpp index e0019bf..e0bd1eb 100644 --- a/src/commands/project_cmd.cpp +++ b/src/commands/project_cmd.cpp @@ -82,7 +82,8 @@ void cmd::projectCommand(dpp::cluster& bot, const dpp::slashcommand_t& event) const dpp::embed embed = dpp::embed() .set_color(globals::color::defaultColor) .add_field("Project Idea", projectTitle) - .add_field("Description", projectDescription); + .add_field("Description", projectDescription) + .add_field("More Ideas?", "Go to [roadmap.sh C++ Projects](https://roadmap.sh/cpp/projects)"); dpp::message message(event.command.channel_id, embed);