I need this bot written in C++ language to be edited to supply my demands.
Normally when someone writes a command in [login to view URL] channel or during the game, bot takes these commands and process with the functions inside it.
I am willing to have many bots (around 20) for creating games, and only 1 master bot to permanently stay in channel, and communicate with other bots through UDP or TCP.
Most of the functions are already in the source code ([login to view URL]) .
Some examples :
By default when you write !getgames at the channel, bot gives you information about current games from "games.size" inside it.
So in channel, i want to have a command like !games, so this command will ask slave bots the number of current games they have and master bot will add them together and print to channel.
When someone type !pub or !priv to create a game, master bot will communicate with other bots again, will find which has the lowest [login to view URL] and create the game with it. If all bots reached the number at "bot_maxgames" (it is set by cfg file), it will print a message saying all bots are busy.
Maybe some other stuff too. This should be very easy for a C++ coder. All must be done by this bot, not another program.
All source code is available at :
[login to view URL]
Thanks.