Compare commits

..

No commits in common. "349cb03844b3e135ef259c2be81cba6929ad0b62" and "73fc774be9e6fdb4285ed30a272c8da829cbbd50" have entirely different histories.

2 changed files with 1 additions and 31 deletions

View File

@ -1,22 +0,0 @@
FROM debian
RUN apt update
RUN apt upgrade
RUN apt install make
RUN apt install cmake
RUN apt install git
RUN apt install wget
# install the dpp lib
RUN apt install wget
RUN wget -O dpp.deb https://dl.dpp.dev/
RUN dpkg -i dpp.deb
RUN git clone https://git.chauvet.pro/starnakin/PyMenuBOT /app
WORKDIR /app
RUN make
ENTRYPOINT ["./PyMenu"]

View File

@ -14,6 +14,7 @@ int main()
{ {
if (event.msg.author.id == bot.me.id) if (event.msg.author.id == bot.me.id)
{ {
bot.message_add_reaction(event.msg, dpp::unicode_emoji::x);
bot.message_add_reaction(event.msg, dpp::unicode_emoji::white_check_mark); bot.message_add_reaction(event.msg, dpp::unicode_emoji::white_check_mark);
} }
else else
@ -34,15 +35,6 @@ int main()
} }
}); });
bot.on_message_reaction_add([&bot](const dpp::message_reaction_add_t& event)
{
if (event.reacting_user.id == bot.me.id)
return;
dpp::emoji emoji = event.reacting_emoji;
if (emoji.name == dpp::unicode_emoji::white_check_mark)
bot.message_delete(event.message_id, event.channel_id);
});
bot.on_ready([&bot](const dpp::ready_t& event) bot.on_ready([&bot](const dpp::ready_t& event)
{ {
std::cout << bot.me.id << std::endl; std::cout << bot.me.id << std::endl;