can some1 help plz!!!
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

can some1 help plz!!!

Started by Tw?sT?d-d?v, 01 January, 2005, 18:48:14

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tw?sT?d-d?v

hi all,i was wandering if some1 coult alter this script 4 me, i would like it so that any messages that r sent can be saved into a txt folder


-----------------------------
-- PM - Spy - Bot
-----------------------------
-- Commands:
--
-- #spy - Add user to Spy - List
-- #rem - Del user from Spy - List
--
-- Set BotName
BotName = "jay"

-- Set HubOwner / The one going to spy
SpyName = "(uk)jay"

iSpy = {}

function DataArrival(sUser,sData)
   if strsub(sData, 1, 1) == "<" then
      local _,_,cmd,arg = strfind(sData, "%b<>%s+(%S+)%s*(.*)%|")
      if cmd == "#spy" and sUser.sName == SpyName then
         local _,_,nick = strfind(arg, "(%S+)")
         if nick then
            if GetItemByName(nick) then
               sUser:SendData(BotName, "User "..GetItemByName(nick).sName.." is added to Spy-List")
               iSpy[GetItemByName(nick).sName] = 1
            end
         end
         return 1
      elseif cmd == "#rem" and sUser.sName == SpyName then
         local _,_,nick = strfind(arg, "(%S+)")
         if nick then
            if iSpy[nick] then
               sUser:SendData(BotName, "User "..nick.." is deleted to Spy-List")
               iSpy[nick] = nil
            end
         end
         return 1
      end
   elseif strsub(sData, 1, 4) == "$To:" then
      local s,e,WhoTo,From,Msg = strfind(sData,"%$To:%s+(%S+)%s+From:%s+(%S+)%s+%$%b<>%s+(.*)%|")
      if iSpy[From] then
         SendPmToNick(SpyName, BotName, "From: "..From.." > "..Msg)
      end
   end
end

bastya_elvtars

separate files by usernames or what?
Everything could have been anything else and it would have just as much meaning.

Tw?sT?d-d?v

opps  sorry(still got hangover)  yes plz m8 by username

bastya_elvtars

#3
QuoteOriginally posted by (uk)jay
opps  sorry(still got hangover)  yes plz m8 by username

i agree with Mutor, and by username its not recommended as some usernames contain chars that make Windows filesystems mad.

If you use another way, it will crash Ptokax in 5 mins due to RAM usage.

PMSpying={

[(uk)jay]={"hi","can you gimme slot?"},

}

this kills PtokaX
Everything could have been anything else and it would have just as much meaning.

Tw?sT?d-d?v

yes i totaly understand about PRIVATE, but my girlfriend as just recived an abusive pm from a user , all because she was d/l from him........   so all i was thinking of was a way to monitor somethin like this :)

bastya_elvtars

bad word scanner in PM? hmmmm... good
Everything could have been anything else and it would have just as much meaning.

??????Hawk??????

#6
why not just ban the user......

???????????????????????????

what are you going to do if you see an abbusive pm ???

Most  All-In  Scripts have a way of filtering bad words and acting in a way you choose  either by.

replacing the bad words for something less abbousive or disconnecting the user.

Save your b/w and  delete the script   leave pm's as Private..

Tw?sT?d-d?v

ok, advice taken and bot deleted, it was just an idea anyway.thx 4 the advice :)))

bad word scanner in pm!!!     is there such a script??

??????Hawk??????

hi m8  ...  

this is Possibly one of the best  stand alone ones ive Seen

Plops Word Replacer

Tw?sT?d-d?v

hi, thx for that and thx again for all your advice :)))

SMF spam blocked by CleanTalk