Also, have you gotten the correct permissions from the correct users? eg, you need user:bot from the channel you wish to use as a bot, and either channel:bot from the channel you wish to send messages in or be a moderator in that channel?
First off, it’s not recommended to use 3rd party token generators.
Secondly, that’ll get you a User Token, which isn’t eligible for the Bot Badge, you need to use an App Token, which you should be generating yourself within your app.
As a developer, how can my bot appear as a Chat Bot in the viewership list?
Your bot will automatically be displayed in the “Chat Bots” section of the viewership list when listening to chat via the Channel Chat Message EventSub event with an app access token and has the channel:bot scope for the channel.
This is from the badge documentation
but I don’t quite understand how to do it “listening to chat via the Channel Chat Message EventSub even“
It appears you’re trying to connect to chat over IRC, which is completely separate from EventSub. I’d recommend reading the EventSub documentation to see how to subscribe to a topic https://dev.twitch.tv/docs/eventsub/