summaryrefslogtreecommitdiff
path: root/bot/src/handlers.hpp
blob: 2046bbebd62f729d2bac86f556211a9db119d6ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "bundle.hpp"
#include "commands/command.hpp"
#include "irc/message.hpp"
#include "pqxx/pqxx"

namespace bot::handlers {
  void handle_private_message(
      const InstanceBundle &bundle, command::CommandLoader &command_loader,
      const irc::Message<irc::MessageType::Privmsg> &message,
      pqxx::connection &conn);

  void make_markov_response(
      const InstanceBundle &bundle,
      const irc::Message<irc::MessageType::Privmsg> &message,
      const schemas::Channel &channel,
      const schemas::ChannelPreferences &preference);
}