Integrated the remove command into the ready.cpp
This commit is contained in:
parent
dfd5c295d5
commit
eae483bd32
@ -18,8 +18,7 @@ std::thread ready::get_status_thread(dpp::cluster &bot) {
|
||||
}
|
||||
|
||||
void ready::execute(dpp::cluster &bot, const dpp::ready_t &event) {
|
||||
std::cout << "Logged in as " << bot.me.username << " (" << bot.me.id << ")"
|
||||
<< std::endl;
|
||||
std::cout << "Logged in as " << bot.me.username << " (" << bot.me.id << ")" << std::endl;
|
||||
|
||||
std::thread status_thread = get_status_thread(bot);
|
||||
status_thread.detach();
|
||||
@ -27,5 +26,9 @@ void ready::execute(dpp::cluster &bot, const dpp::ready_t &event) {
|
||||
if (dpp::run_once<struct register_bot_commands>()) {
|
||||
bot.global_command_create(dpp::slashcommand("rules", "Shows you the rules of the global chat", bot.me.id));
|
||||
bot.global_command_create(dpp::slashcommand("add", "Transforms the channel into a global channel", bot.me.id));
|
||||
bot.global_command_create(dpp::slashcommand("remove", "Removes the channel from the global chat", bot.me.id).add_option(
|
||||
dpp::command_option(dpp::co_channel, "channel", "The channel to remove", false)));
|
||||
|
||||
bot.global_command_create(dpp::slashcommand().set_name("Report User").set_type(dpp::ctxm_message));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user