It is necessary to keep alive a session started by the bot user, to make it appear as online, that is the reason for some of the extra code. Also, the bot config have code to create the bot user, the bot department, etc.
It is necessary to keep alive a session started by the bot user, to make it appear as online, that is the reason for some of the extra code. Also, the bot config have code to create the bot user, the bot department, etc.