Introducing The Master Bot - OnBots Redefined!

Panel
borderColor#7BD9F5
bgColor#F7F9D8
borderWidth2
borderStylesolid
titleIntroduction

As we proceed with the bots coupled with tools to make our tasks easier in the form of chatting, we realised there needs to be someone who should do the management activity for the other bots and voila! Say hello to the Master Bot, the bot for deploying and managinf all other bots. This bot is designed to let you manage all your other bots and gather consolidated information about them by just chatting with it. Sounds fun? Let us dig deep into how this works:

1)You will need the masterbot and the OnBots services running in your servers.

Warning

Your Masterbot and OnBots services should be running on the same server. This is because the Master needs to interact with the Kubernetes Environment for fetching data and doing management activities for the bots. If both are not in same machine, even if you have ports opened and allow connection between the servers, kubernetes will block the master from accessing it.

2) Connect it to slack, Hipchat or mattermost

3) Now you can interact with the bot through commands

Let us have a look at what are all the commands supported by our Master Bot:

CommandsDescription
getDeployedBotsget list of all deployed bots
addBot <json_fileid>adds a bot with the given configuration in Json file
getConfig Template <botname>get Json template for adding a particular type of bot
delete <botname>delete the bot
stop <botname>stop an active bot if it is running
container status <botname>give the container status in which the bot is deployed
getMetrics <botname>get system metrices for the given bot
getHitmiss <botname>get hit-miss ratio of conversations of the given bot
getLogs <botname>get deployment logs of the given bot
getChatlog <botname>get chat logs of the given bot
getBotsget bot types available in onBots
getBotDetails <botname>get configuration and other details for a bot
editbot <botname> <json_fileid>edit the bot configuration details in mongodb from the given json file
restart <botname>restart the bot with the details stored in mongodb
tail <number_of_lines> <botname>To get last <number_of_lines> of the logs of <botname>
helplist all the commands the master can perform


...