aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-06-10 00:06:07 -0400
committerCara Salter <cara@devcara.com>2023-06-10 00:06:07 -0400
commit6136631d2dcd9b1f561fa589acabcda7de8e2f36 (patch)
treef52b1afe5bdceff29bc11015c3f00b54d4bd4b76 /src/main.cpp
parente09e7825369ec8217456065d31dbbbb992b7f1bb (diff)
download142bot-6136631d2dcd9b1f561fa589acabcda7de8e2f36.tar.gz
142bot-6136631d2dcd9b1f561fa589acabcda7de8e2f36.zip
mail: Init mail module
Also bind the slash command and form submit events properly Change-Id: I8d01cb0075945c79c6bf991fa4d64f5227dd5f86
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e6d7c13..6ce5858 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -82,6 +82,8 @@ int main(int argc, char const *argv[]) {
bot.on_message_create(std::bind(&Bot::onMessage, &client, std::placeholders::_1));
bot.on_ready(std::bind(&Bot::onReady, &client, std::placeholders::_1));
bot.on_message_reaction_add(std::bind(&Bot::onMessageReactionAdd, &client, std::placeholders::_1));
+ bot.on_slashcommand(std::bind(&Bot::onSlashCommand, &client, std::placeholders::_1));
+ bot.on_form_submit(std::bind(&Bot::onFormSubmit, &client, std::placeholders::_1));
bot.start(dpp::st_wait);
sentry_close();