IRC Server Reply Codes in TypeScript per RFC 1459 https://www.npmjs.com/package/@mateothegreat/irc-command-replies Install npm i @mateothegreat/irc-command-replies Usage if (code === IRCCommandReplies.SERVER_MESSAGE.RPL_MOTD) { // do something cool with the motd yo } See also https://datatracker.ietf.org/doc/rfc1459