#include "./managment_commands.hpp" #include #include //#include #include "./message_command_dispatcher.hpp" #include //#include void registerFunCommands( MessageCommandDispatcher& mcd, ConfigModelI& conf, Contact3Registry& cr, RegistryMessageModel& rmm ) { mcd.registerCommand( "fun", "fun", "dance", [&](std::string_view params, Message3Handle m) -> bool { static std::default_random_engine rng{std::random_device{}()}; const auto contact_from = m.get().c; static const std::array dances { "DANCE", "(~^.^)~", "♪┌|∵|┘♪", "~( °٢° )~", "m/...(>.<)…m/", "(~‾⌣‾)~", "└[∵┌]└[ ∵ ]┘[┐∵]┘", "♨(⋆‿⋆)♨", "ヾ(*´∀`*)ノ", "ლ(o◡oლ)", "┌(★o☆)┘", "ヘ(^_^ヘ)", }; rmm.sendText( contact_from, dances.at(rng()%dances.size()) ); return true; }, "Make totato dance.", MessageCommandDispatcher::Perms::EVERYONE ); }