Advertisement
Guest User

Untitled

a guest
May 11th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. // Bot_Framework.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "bot.h"
  6. #include "lobby.h"
  7.  
  8. bot test_bot;
  9. lobby test_lobby;
  10.  
  11. int maxn = 30;
  12.  
  13. int main(int argc, char* argv[])
  14. {
  15.  
  16.  
  17.     SetConsoleTitle( "Bot Framework" );
  18.  
  19.     printf("Toribash Bot Framework\n..Juntalis\n..V. 0.1\n\nFor the purpose of this example, we're going to use:\n\n");
  20.     sprintf(test_bot.user.username, "THIS IS YOUR USERNAME");
  21.     sprintf(test_bot.user.password, "THIS IS A MD5 OF A PASSWORD");
  22.     printf("User: %s\nPass: %s\n\n", test_bot.user.username, test_bot.user.password);
  23.  
  24.     int e = test_bot.sock_connect("66.230.224.162", 20254);
  25.     if(!e) goto done;
  26.     test_bot.process();
  27.     test_bot.disconnect();
  28.  
  29.     done:
  30.     printf("Have a good day!\n");
  31.     return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement