i99dev / ft_irc

implementation of the IRC network
3 stars 2 forks source link

Test #49

Closed isaad18 closed 1 year ago

isaad18 commented 1 year ago

bot added, the bot will take keywords from the user's message that will be sent using privmsg or notice to the bot. the bot will identify the keywords that exists in the sentence given and reply to the user according to it. if the user asked for many things at the same time, the bot will add on the replied msg but with a limit of 5 requests. the bot can be used to create a channel and invite the client who asked him to create the channel. Also, the bot is able to invite any client to the channel anonymously and send msg to the channel anonymously.

for the parsing, I parsed all the command's number of parameters. In addition to that, I parsed join to prevent users who are already in this channel from joining the channel again, and checked the channel name if the first character is correct to identify it is a channel.