This commit is contained in:
2024-02-06 11:53:25 +01:00
parent 7555a6427a
commit 24462adbd5
10 changed files with 46 additions and 33 deletions

View File

@@ -6,17 +6,20 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/29 20:36:23 by vvaas #+# #+# */
/* Updated: 2024/01/30 21:39:43 by vvaas ### ########.fr */
/* Updated: 2024/02/06 11:47:20 by vvaas ### ########.fr */
/* */
/******************************************************************************/
#include <Bot.hpp>
#include <logs.hpp>
int main()
int main(int argc, char **argv)
{
if (argc != 4)
irc::logs::report(irc::log_fatal_error, "./greg <ip address> <port> <password>");
Bot greg;
if (!greg.init())
if (!greg.init(argv[1], argv[2], argv[3]))
return 1;
greg.connect_to_server();
return 0;