Debian Codegraph @

docpages/example_code/setting_status1.cpp

raw symbols SCIP
1 #include <dpp/dpp.h>
2
3 int main() {
4 /* Create the bot */
5 dpp::cluster bot("token");
6
7 bot.on_log(dpp::utility::cout_logger());
8
9 bot.on_ready([&bot](const dpp::ready_t& event) {
10 /* We don't need the run_once here as we're not registering commands! */
11
12 /* Set the bot presence as online and "Playing..."! */
13 bot.set_presence(dpp::presence(dpp::ps_online, dpp::at_game, "games!"));
14 });
15
16 bot.start(dpp::st_wait);
17
18 return 0;
19 }