gg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user