BotClose function

From StealthBot Wiki Backup
(Redirected from BotClose)
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