/******************************************************************************/ /* */ /* ::: :::::::: */ /* Bot.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: vvaas +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/01/30 01:54:36 by vvaas #+# #+# */ /* Updated: 2024/01/30 21:38:16 by vvaas ### ########.fr */ /* */ /******************************************************************************/ #define IP "127.0.0.1" #define PORT 6667 #define PASSWORD "gg" #include #include #include class Bot { public: Bot(); bool init(void); void connect_to_server(void); void handle_response(std::string buffer); void send_message(const std::string &content); ~Bot(); private : bool _channel_created; bool _logged; struct sockaddr_in _serv_addr; int _fd; std::vector _connect_commands; };