@name Fire the Bot
@inputs F1 F2
@outputs 
@persist 
@trigger 

runOnChat(1)
Fire1="say !rcon bot_attack "
Fire2="say !rcon bot_forceattack2 "
if(first()){concmd("bot_defend 1")}
Chat=owner():lastSaid()
if(chatClk()){

    if(Chat=="fire bot1"){concmd(Fire1+1) print("bot attacking primary")}
    if(Chat=="water bot1"){concmd(Fire1+0) print("bot cease fire primary")}
    if(Chat=="fire bot2"){concmd(Fire2+1) print("bot attacking secondary")}
    if(Chat=="water bot2"){concmd(Fire2+0) print("bot cease fire secondry")}
}


#[
    The find and replace windows have been combined into
    a single menu, and a go to line function has
    been added. Simply press ctrl+f/g/h to open it.

    The options menu has been redesigned - it's much more
    organized now.

    Auto completion has been added!
    Options for it can be found in the options menu.

    Syntax highlighting color options have been added in the
    options menu.

    Documentation and examples are available at:
    http://wiki.garrysmod.com/?title=Wire_Expression2
    The community is available at http://www.wiremod.com
]#
