-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgBot.h
42 lines (34 loc) · 794 Bytes
/
ProgBot.h
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
#ifndef _PROGBOT_DEF
#define _PROGBOT_DEF
#include "IRCBot.h"
#include <array>
#include <random>
#include <time.h>
#include "TicTacToe.h"
#include <sstream>
class ProgBot : public IRCBot
{
public:
ProgBot(string port, string host):IRCBot(port, host)
{
gInt = 0;
prefix = "P! ";
login = "NICK Progger\nUSER Progger 8 * : Progger\r\n";
split.push_back(":"); split.push_back("!");
split.push_back("#"); split.push_back(":");
split.push_back(prefix);split.push_back(" ");
split.push_back(""); split.push_back("\n");
items.push_back("user");
items.push_back("room");
items.push_back("cmd");
items.push_back("input");
}
void doCmd();
//void parseInput();
void say();
void ttt(); //tic tac toe
TicTacToe tic;
void gNum(); //guess a number
int gInt;
};
#endif