The bot uses a regular expression to determine whether a message contains a valid variation of 'wazzup'. The regular expression is represented as
'[Ww]+[Aa]+[ZzSsDd]+[Uu]+[Pp]+'. That means that it matches words containing one or more W, followed by one or more A, followed by one or more Z, S, or D, followed by one or more U, followed by one or more P. (And they can be uppercase or lowercase.)
Therefore, if the bot sees a message that contains a word like 'wazzup', 'WAZZZZUUUPPP', 'waaaaaadupppp' or something else matching the pattern, it will reply.
Check it out!
The code is open source and available to look at or download from the project repository on Codeberg.