mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-12-18 21:23:29 +00:00
스킵 구현
This commit is contained in:
19
DPP-master/docpages/example_code/setting_status1.cpp
Normal file
19
DPP-master/docpages/example_code/setting_status1.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <dpp/dpp.h>
|
||||
|
||||
int main() {
|
||||
/* Create the bot */
|
||||
dpp::cluster bot("token");
|
||||
|
||||
bot.on_log(dpp::utility::cout_logger());
|
||||
|
||||
bot.on_ready([&bot](const dpp::ready_t& event) {
|
||||
/* We don't need the run_once here as we're not registering commands! */
|
||||
|
||||
/* Set the bot presence as online and "Playing..."! */
|
||||
bot.set_presence(dpp::presence(dpp::ps_online, dpp::at_game, "games!"));
|
||||
});
|
||||
|
||||
bot.start(dpp::st_wait);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user