Atlassian Connect is the way that developers can hook into our products: https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/
I guess a better answer is:
If it's some sort of automation that uses Atlassian approved APIs, then there should be no additional Jira/Confluence product license needed.
If it's a script and/or it requires a user to be added to an atlassian product, even if that user is controlled via a script, then that user will take up a Jira/Confluence license.
It really depends on what you mean by Bot, i.e. how it's built / what it's doing.
When using an Atlassian account that is not managed, it’s possible to change the email address, but we often receive the following notification on the email that we want to use: Sorry, we couldn'...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events