bot
This commit is contained in:
32
includes/bot.hpp
Normal file
32
includes/bot.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Bot.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/30 01:54:36 by vvaas #+# #+# */
|
||||
/* Updated: 2024/01/30 02:39:52 by vvaas ### ########.fr */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
#define IP "127.0.0.1"
|
||||
#define PORT 6667
|
||||
#define PASSWORD "gg"
|
||||
|
||||
#include <irc.hpp>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
class bot
|
||||
{
|
||||
public:
|
||||
bot();
|
||||
void init(void);
|
||||
void connect_to_server(void);
|
||||
~bot();
|
||||
private :
|
||||
struct sockaddr_in _serv_addr;
|
||||
int _fd;
|
||||
std::vector<std::string> _connect_commands;
|
||||
};
|
||||
Reference in New Issue
Block a user