BotClose function

From StealthBot Wiki
Revision as of 07:52, 21 November 2009 by Ribose (talk | contribs) (See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The BotClose() Script Support Class subroutine closes the bot.

Development

The BotClose function was added to StealthBot in version 2.6, as suggested by Imhotep.

Documentation

'// BOTCLOSE
'// Shuts down StealthBot
Public Sub BotClose()
    
    'Call frmChat.Form_Unload(0)
    Unload frmChat
    
End Sub

Summary

This subroutine will disconnect the bot and close the program.

Syntax

BotClose

Example usage

  • Quit when someone says "Die!".
  • If Message = "Die!" Then BotClose
    

See also