-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBot.hpp
More file actions
67 lines (61 loc) · 1.24 KB
/
Bot.hpp
File metadata and controls
67 lines (61 loc) · 1.24 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include <iostream>
#include <sstream>
#include <string>
#include <map>
#include <vector>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <exception>
#include <unistd.h>
#include <poll.h>
#include <stdlib.h>
#include <ifaddrs.h>
#include <sys/types.h>
#include <netdb.h>
#include <iostream>
#include <sstream>
#include <string>
#include <map>
#include <vector>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <exception>
#include <unistd.h>
#include <poll.h>
#include <stdlib.h>
#include <ifaddrs.h>
#include <sys/types.h>
#include <netdb.h>
#include <sys/time.h>
class joke
{
std::vector<std::string> jokes_list;
std::vector<std::string> jokes_answers;
public:
joke();
~joke(){}
void get_a_joke(int sock, std::string b);
};
class zodiac
{
public:
zodiac();
~zodiac(){}
void get_a_zodiac(int sock, int month, int day, std::string name);
};
class Bot
{
private:
std::string _host;
std::string _port;
std::string _pass;
public:
Bot(std::string const &host, std::string const &port, std::string const &pass);
~Bot();
void run();
};