From StealthBot Wiki
The Disconnect function was added in StealthBot version 2.6 by the request of Imhotep.
'// DISCONNECT '// Closes any current connections within the bot. Public Sub Disconnect() Call frmChat.DoDisconnect End Sub
If Username = "Stealth" And Message = "Bye!" Then Disconnect