summaryrefslogtreecommitdiff
path: root/bot/src/handlers.hpp
blob: a78a52951839789943ebde975d717d80b071a14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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,
      const 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);
}