-- BotMgr 1.01b -- by Mutor -- --Add/Remove botnames to/from user list -- Option for context menu [you can add more of your own commands] -- Sends PM to OPs when bot added or removed -- Allow command by profile -- !dropbot --Remove bot from user list -- !addbot --Add bot to user list -- -- Restart scripts will list bot again... ------------------------------------------------------------------------- aprof = 0 -- Masters are authorized to use these commands SendMenu = "1" -- Provide context [right click] menu commands, 0 for no ------------------------------------------------------------------------- Bot = frmHub:GetHubBotName() function NewUserConnected(user) if SendMenu == "1" then if user.iProfile == aprof then customCMDS(user) user:SendData(" *** Notice :: Right click hub tab or user list for Admin commands. ***") else return end else end end OpConnected = NewUserConnected --$UserCommand 1 X Where -> 1=Hub Menu 2=User Menu 3=Hub/User Menu function customCMDS(user) --user:SendData("$UserCommand 255 7") --clear the menu first user:SendData("$UserCommand 1 3 [Admin]\\Remove Bot $<%[mynick]> !dropbot %[line:BotNick]||") user:SendData("$UserCommand 1 3 [Admin]\\Restore Bot $<%[mynick]> !addbot %[line:BotNick]||") end function DataArrival(user, data) if user.iProfile == aprof then if strsub(data,1,1)=="<" then data=strsub(data,1,strlen(data)-1) s,e,cmd,name = strfind(data,"%b<>%s+(%S+)%s+(%S+)") if cmd=="!dropbot" then frmHub:UnregBot(name) SendPmToOps(Bot, user.sName.." has removed the bot [ "..name.." ] from the user list.") return 1 elseif cmd=="!addbot" then frmHub:RegBot(name) SendPmToOps(Bot, user.sName.." has added the bot [ "..name.." ] to the user list.") return 1 end end end end