forked from OthelloPlusPlus/ft_irc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerBot.hpp
More file actions
53 lines (44 loc) · 1.78 KB
/
ServerBot.hpp
File metadata and controls
53 lines (44 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* ************************************************************************** */
/* */
/* :::::::: */
/* ServerBot.hpp :+: :+: */
/* +:+ */
/* By: ohengelm <ohengelm@student.42.fr> +#+ */
/* +#+ */
/* Created: 2023/10/19 20:25:16 by ohengelm #+# #+# */
/* Updated: 2023/10/19 20:40:08 by ohengelm ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef SERVERBOT_HPP
# define SERVERBOT_HPP
# include "AClient.hpp"
# include <string>
// std::string
# include <queue>
// std::queue
class ServerBot: public AClient
{
private:
std::queue<std::string> send;
//Bot Responces
void botRespond(std::string name, const std::string cmd, const std::vector<std::string> &args);
void botRespondPrivMsg(std::string name, const std::vector<std::string> &args);
void think(std::string dest, std::string arg);
void thinkInfo(std::string dest);
void thinkMOTD(std::string dest, std::string arg);
void thinkShutdown(std::string dest, std::string arg);
void thinkHelp(std::string dest);
protected:
public:
//(De)constructors
ServerBot(Server &server);
~ServerBot(void);
//Virtual void functions from AClient
bool stillActive(void) const;
void sendMsg(std::string msg);
std::string getMsg(void);
void closeFD(void);
};
#else
class ServerBot;
#endif