Results 1 to 3 of 3

Thread: Set cavebot off when msg ss

  1. #1
    iBot User
    Join Date
    Jun 2012
    Posts
    22
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    10
    Rep Power
    5

    Set cavebot off when msg ss

    so, anyone know how i put CAVEBOT OFF when the first msg to ss apears on screen?

  2. #2
    Normal User sirmate's Avatar
    Join Date
    Mar 2012
    Location
    Poland
    Posts
    176
    Mentioned
    2 Post(s)
    Tagged
    3 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    105
    Rep Power
    6
    Code:
    local CHANNEL_MESSAGES = getnewmessages("Server Log")
    local CHANNEL_MESSAGES_COUNT = CHANNEL_MESSAGES.count - 1
    
    for INDEX = 0, CHANNEL_MESSAGES_COUNT do
        if (CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT - INDEX].text:find("Server is going down in 5 minutes.")) then
            setsetting("Settings\\CaveBot\\Enabled", "no")
        end 
    end
    (๏̯͡๏ )

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Ty, sirmate.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •