The code you provided only connects to the server but doesn’t join any channel as 3ventic mentioned.
You have to do something like this after connecting (idk the exact call)
bot.join(channel);
If you do this already then you should provide this code as well.