Skip to content

docs(example): Add minimal slash command (ping) example.#1575

Open
kaedeek wants to merge 1 commit intobrainboxdotcc:devfrom
kaedeek:Example-add
Open

docs(example): Add minimal slash command (ping) example.#1575
kaedeek wants to merge 1 commit intobrainboxdotcc:devfrom
kaedeek:Example-add

Conversation

@kaedeek
Copy link
Copy Markdown

@kaedeek kaedeek commented Apr 13, 2026

Summary

Add a minimal slash command (ping) example.

Additional context

While similar functionality is shown in the README, this example provides a minimal, runnable version for beginners.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 13, 2026

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit d664f68
🔍 Latest deploy log https://app.netlify.com/projects/dpp-dev/deploys/69dcb97aa03d31000871a1d2
😎 Deploy Preview https://deploy-preview-1575--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ruslan-ilesik
Copy link
Copy Markdown
Contributor

Hey, thanks for PR, while I am not the main reviewer I would like to give a suggestion.

Would be nice if you could also put usage of

https://dpp.dev/classdpp_1_1cluster.html#acb7b73536f793da2a2955d70baa991f1

Into the guide, as better alternative to if else in on_slashcommand.

@Ashthetik
Copy link
Copy Markdown
Contributor

Ashthetik commented Apr 13, 2026

I'm not much of a contributor, but what would be the purpose from moving the ping example from https://dpp.dev/firstbot.html to the example programs?

@ruslan-ilesik
Copy link
Copy Markdown
Contributor

Also, would be great if you had comments in code itself quickly explaining what each of lines do, for new people to c++ it may be very helpful

@ruslan-ilesik
Copy link
Copy Markdown
Contributor

I'm not a contributor, but what would be the purpose from moving the ping example from https://dpp.dev/firstbot.html to the example programs?

Also a good point, but we have it as first bot AND kinda advertisement like "look, it is not harder than js", so I am not sure about that. @braindigitalis should be judge of it.

But in any case, either keep it in examples or update main page to more "fresh" implementation may be beneficial

@Mishura4 Mishura4 changed the title feat(example): Add minimal slash command (ping) example. docs(example): Add minimal slash command (ping) example. Apr 13, 2026
@Mishura4 Mishura4 added the documentation Improvements or additions to documentation label Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants