Skip to content

Is it possible to send a message in the chat once the bot is connected to it? #471

Discussion options

You must be logged in to vote

You can send messages using the client.say(channel, message) method and you can react to joining a channel with the join event.

client.on('join', (channel, username, self) => {
    if(self) client.say(channel, 'Hello, World');
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AlcaDesign
Comment options

Answer selected by AlcaDesign
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants