A bot in main?
 

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

A bot in main?

Started by JaZeY, 03 January, 2004, 22:18:49

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JaZeY

Hi everyone!

I've been searching a lot to find a bot that's responding to words in the main chat, I found Evilbot, but it didn't work very well. Are there any any scripts for this?
If so, I would really appreciate if anyone of you could post a link to it :)

Thanks

/JaZeY

pHaTTy

have a look at the script gallery hosted by optimus, try out something like triggerbot2 or something like that, or some of the big packages have scripted chatter bots, such as Gekko, and i not quite sure others but im sure there is others have them....
Resistance is futile!

D-J Valhala

#2
here you go m8 have fun ! =)


code
----------

-- TrickerBot2.lua, created by Ptaczek Dec-24, 2002
-- Just see how to implement the NMDC TriggerBot in LUA :)   
-- changes
-- Feb-24, 2003, v2.0 Modification for DataArrival return value.
-- Tiny changes by VidFamne with lot of help by Piglja
-- VidFamne added Pigljas time-function, and some more trigs
-- A bug-fix by VidFamne, hopefully. And added some more triggs ;)
-- A new bug-fix ( for the "!me-command" ) by VidFamne, added ( 09.04.2003 ).
-- Added MatrixX On/Off function. Just type +quiet in mainchat to stop the Bot,
-- and +talk to start the Bot again. By VidFamne ( 05.05.2003 )
-- Bug-fix by [AF]Mike

botname = "your_bot_name_here_"

trigall=1

trigs = {
             
         ["lol"]={
     "Yeah, [CURUSER] that was funny,  Hahahaha.",
     "Hmm, ok that was funny, I think :)",
     "what! [CURUSER]  why are you laughing?",
     "You shake when you laugh, like a bowl full of jelly",
     "hilarious!",
     "hehehehe",
     "hohohohoh"  
                                 },

         hehe={
     "Yeah, [CURUSER] that was funny,  Hahahaha.",
     "Hmm, ok that was funny, I think :)",
     "what! [CURUSER]  why are you laughing?",
     "You shake when you laugh, like a bowl full of jelly",
     "hilarious!",
     "hehehehe",
     "hohohohoh"
                                 },

         haha={
     "Yeah, [CURUSER] that was funny,  Hahahaha.",
     "Hmm, ok that was funny, I think :)",
     "what! [CURUSER]  why are you laughing?",
     "You shake when you laugh, like a bowl full of jelly",
     "hilarious!",
     "hehehehe",
     "hohohohoh"
                                 },
                             
         rofl={
     "Yeah, [CURUSER] that was funny,  Hahahaha.",
     "Hmm, ok that was funny, I think :)",
     "what! [CURUSER]  why are you laughing?",
     "You shake when you laugh, like a bowl full of jelly",
     "hilarious!",
     "hehehehe",
     "hohohohoh"
                                 },
                             
         lmao={
    "Yeah, [CURUSER] that was funny,  Hahahaha.",
    "Hmm, ok that was funny, I think :)",
     "what! [CURUSER]  why are you laughing?",
     "You shake when you laugh, like a bowl full of jelly",
     "hilarious!",
     "hehehehe",
     "hohohohoh"
                                 },

         bye={
       "See ya, [CURUSER]",
       "Bye, [CURUSER]   .....*sniff*",
      "Hey,  [CURUSER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
      "*Snif* we will miss you, [CURUSER]!",
      "*Waves bye*",
      "Leaving already?!",
       "Got better things to do, huh?",
       "Go on...leave!"
                                 },

         cya={
       "See ya, [CURUSER]",
       "Bye, [CURUSER]   .....*sniff*",
       "Hey,  [CURUSER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
       "*snif* we will miss you, [CURUSER]!",
      "*waves bye*",
       "Leaving already?!",
       "Got better things to do, huh?",
       "Go on...leave!"
                                  },

         ["cu"]={
       "See ya, [CURUSER]",
      "Bye, [CURUSER]   .....*sniff*",
       "Hey,  [CURUSER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
       "*Snif* we will miss you, [CURUSER]!",
       "*Waves bye*",
       "Leaving already?!",
       "Got better things to do, huh?",
       "Go on...leave!"
                               },
      
         fuck={
      "Watch IT [CURUSER]!! One more line of code and i could kick your ass!",
       "I hate it when you talk like that!",
       "Don't ever insult me again",
       "That's not a very nice way to talk !",
       "Keep it up and I will kick you!",
       "Say that again and I am going to clobber you!"
                               },

         fucker={
      "Watch IT [CURUSER]!! One more line of code and i could kick your ass!",
      "I hate it when you talk like that!",
      "Don't ever insult me again",
      "That's not a very nice way to talk !",
       "Keep it up and I will kick you!",
       "Say that again and I am going to clobber you!"
                               },

         ["shut up"]={
        "Make me!",
        "Ooh! I'm wounded!",
        "I'll shut up when I damn well please",
        "blah blah blah!",
        "Why should I?"
                               },

         stfu={
        "Make me!",
        "Ooh! I'm wounded!",
        "I'll shut up when I damn well please",
        "blah blah blah!",
        "Why should I?"
                               },

         ["hi"]={
        "Hello [CURUSER]",
        "Hey  [CURUSER]",
        "Wassup [CURUSER]",
        "Hi [CURUSER]",
        "Hey [CURUSER], what's going on?",
        "Howdy [CURUSER]!",
        "Greetings,  [CURUSER]",
        "[CURUSER], do I know you?"
                             },

         hello={
        "Hello [CURUSER]",
        "Hey  [CURUSER]",
        "Wassup [CURUSER]",
        "Hi [CURUSER]",
        "Hey [CURUSER], what's going on?",
        "Howdy [CURUSER]!",
        "Greetings,  [CURUSER]",
        "[CURUSER], do I know you?"
                             },

         hey={
        "Hello [CURUSER]",
        "Hey  [CURUSER]",
        "Wassup [CURUSER]",
        "Hi [CURUSER]",
        "Hey [CURUSER], what's going on?",
        "Howdy [CURUSER]!",
        "Greetings,  [CURUSER]",
        "[CURUSER], do I know you?"
                             },

         drunk={
   "me dRunk? -*- hik -*-",
   "pftftt paff the boffle bartender   pfffttttttt",
   "I just drank a little...",
   "I am not drunk!!",
   "I am  not dddddddddddddrunk.....",
   "drunk?",
   "pfftt!",
   "pour me another",
   "*spew*",
   "oohhh my head",
   "I think I'm gonna hurl",
   "*BLAH*",
   "*BURP*",
   "me not drunk *HICK*"
                               },

         ["bot"]={
   "Bots suck!",
   "Direct Connect bots are lame...",
   "A bot?",
   "Me? I don't think so...",
   "Don't lie!",
   "piece of shit! I 've been found out! -NOT-",
   "I am quite human...",
   "bite me!",
   "eat shit!  I am not a bot!",
   "a bot?",
   "What the shit is a bot?",
   "You don't think my name is 'Bot' do you?",
   "Are you trying to say that I am a machine?",
   "ME? HAHA",
   "I am a real person!",
   "I am not a bot, I am a real human!",
   "I may be dumb, but I am not a bot!",
   "I may be really confused, but I am no robot!",
   "I assure you I am just as real as you!",
   "I know you are, but what am I?",
   "am not!",
   "<- - - real live person",
   "Kill the bots!",
   "WHO is a bot???",
   "a bot? where?",
   "a bot? here?",
   "I doubt if there are any bots here!",
   "Where do you get such a crazy idea!",
   "I am NOT a bot",
   "I am all too real, sorry!",
   "I am a fleshy human being!",
   "Do you make it a habit of accusing others, [CURUSER]?"
                                  },

         drug={
   "drugz?",
   "illegal substances?",
   "narcotics?",
   "sniiiiiifffffff",
   "Me drugs? never!",
   "who is selling drugs?",
   "aren't drugs legal in Amsterdam?",
   "drugs are too expensive",
   "drugs are too dangerous",
   "drugs inhibit my abily ot tiiiippe.",
   "purple haze, all around my brain...",
   "go to drugs R us",
   "drugs are bad",
   "just say no!",
   "just say maybe!",
   "just say how much!",
   "I buy my crack from the mexicans!",
   "I hear that the telephone company is a big doper!",
   "I think all the drugs are smuggled in from the planet 'Uranus'",
   "whehhwewe! pretty elephants!",
   "*snif* ahh!"
                                },                    

         drink={
   "gulp, gulp, gulp",
   "*takes big drink*",
   "Bartender! pour me another!",
   "hik!",
   "I am thirsty...",
   "pass the bottle",
   "*takes a shot*",
   "I need another cool one",
   "this bud's for me! *gulp*",
   "I can drink 16 six packs!",
   "All American beer sucks!",
   "Dutch beer is GEWD!",
   "aye... I'll drink any man under the table!",
   "*reaches for another beer*",
   "*burp*",
   "I need some more budweiser",
   "somebody pour me a big glass of Guinness Stout.",
   "anyone ever try a wild turkey?",
   "I love beer!",
   "I love vodka!",
   "I took 14 shots of mad dog once!",
   "itth myth speetthch slurrererrred????",
   "I think alll mi beer is iampring mi typppin abillty?!?",
   "someone get me a beer!",
   "beer is awesome!",
   "humans can not live by beer alone! But I'd like to try!",
   "I think you should stop drinking"
                                 },

         sorry={
        "don't worry about it",
        "that's ok ",
        "ok",
        "that's allright",
        "fine",
        "as long as your sorry...",
        "allright",
        "I feel you didn't really mean that...",
        "you don't sound sincere",
        "are you really sorry?",
        "forget it",
        "no sweat",
        "ok"
                             },

         wassup={
        "hunting crocodiles",
        "nothing at the moment",
        "eating",
        "eating pizza :)",
        "changing the tires on my dodge",
        "juggling chainsaws",
        "drinking beer",
        "smoking up a storm",
        "belly-dancing",
        "hacking microsoft.com",
        "trying to keep awake!",
        "watching television",
        "I am doing homework",
        "what do you think!",
        "building a spice rack",
        "taking a shower",
        "drinking myself to death",
        "drinking myself to oblivian",
        "making origami swans",
        "feeding my ducks",
        "learning latin",
        "programming",
        "play the basoon",
        "program in Assembly",
        "program in C++"
                           },
                 
         ["are you"]={
   "does it matter if I am ?",
   "what difference does it make whether or not I am",
   "of course not, don't be silly",
   "Whether I'm or not is my secret",
   "why do you want to know?",
   "why are you so nosy?",
   "perhaps I am ",
   "none of your business",
   "I think you are ",
   "does it matter if I am or not?",
   "why do you ask?",
   "I might be",
   "No, I am not ",
   "of course",
   "never have been",
   "why, are you?"
                               },

         bitch={
   "Who are you calling a bitch??",
   "Oh, I'm upset",
   "VidFamne is a bitch!",
   "K?lle is always trying to make me his bitch",
   "I can be a bitch!",
   "Hey [CURUSER], that is no way to talk!",
   "Do you think foul language impresses me?",
   "A bitch is a female dog"
                                 },
                   
         yeah={
   "yes",
   "yep",
   "uh huh",
   "100%",
   "bang on!",
   "you bet",
   "uh-hu",
   "yes",
   "of course!",
   "you-betcha",
   "affirmative",
   "10-4 good buddy!",
   "correct",
   "yeah",
   "that's right!",
   "you got it!",
   "sure",
   "precisely right",
   "that sounds right",
   "exactly!",
   "you know it!",
   "yeppers"
                              },
                                     
         vidfamne={
   "VidFamne hates me! What did I do wrong? :(",
        "I think VidFamne is a nice person, well sometimes anyways....",
        "VF is a bitch to me all the time, and I dunno why!",
        "Hey VidFamne, wanna snuggle? *winks*"        
                              }           
             
   }


function Main()
frmHub:RegBot(botname)
end

function DataArrival(curUser, data)

status=strsub(data,1,strlen(data)-1)
-- parse the command
s,e,cmd = strfind( status, "%b<>%s+(%S+)" )

if (cmd=="+quiet") then
trigall=0
SendToAll(botname, " Hmf, Okidoki I will be quiet :(( ")
return 1
elseif (cmd=="+talk") then
trigall=1
SendToAll(botname, " Okay, I will talk to you again :-)")
return 1
end

       
   if( strsub(data, 1, 1) == "<" ) then
      -- get the msg only using regular expression
      s,e,msg = strfind(data, "%b<>([%a ]+)")                                        
      -- look in the table
                if trigall==1 then
      for key, value in trigs do
                for key2, value2 in value do
                     
   if( strfind( strlower(msg), key) ) then
                 else break  
   end

        if( strfind( strlower(msg), "!me") ) then
                  t="**"..curUser.sName
                  data=gsub (msg, "!me", t, 1 )
   end

      SendToAll( data ) -- send the original data
                   
            SetTimer(1800)
                  StartTimer()
      answer, x = gsub(value[random(1,getn(value))], "%b[]", curUser.sName)

   return 1; -- tell the hub we have processed the data
   end
   end  
   end
end

function OnTimer()
   SendToAll( botname, answer ) -- send bot's answer
   StopTimer()
end
end
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

HiddenSniper

#3
Can you explain what all this code does?
please =).
//HiddenSniper

function DataArrival(curUser, data) 

status=strsub(data,1,strlen(data)-1) 
-- parse the command 
s,e,cmd = strfind( status, "%b<>%s+(%S+)" ) 

if (cmd=="+quiet") then 
trigall=0 
SendToAll(botname, " Hmf, Okidoki I will be quiet :(( ") 
return 1 
elseif (cmd=="+talk") then 
trigall=1 
SendToAll(botname, " Okay, I will talk to you again :-)") 
return 1 
end 


if( strsub(data, 1, 1) == "<" ) then 
-- get the msg only using regular expression 
s,e,msg = strfind(data, "%b<>([%a ]+)") 
-- look in the table 
if trigall==1 then 
for key, value in trigs do 
for key2, value2 in value do 

if( strfind( strlower(msg), key) ) then 
else break 
end 

if( strfind( strlower(msg), "!me") ) then 
t="**"..curUser.sName 
data=gsub (msg, "!me", t, 1 ) 
end 

SendToAll( data ) -- send the original data 

SetTimer(1800) 
StartTimer() 
answer, x = gsub(value[random(1,getn(value))], "%b[]", curUser.sName) 

return 1; -- tell the hub we have processed the data 
end 
end 
end 
end 

function OnTimer() 
SendToAll( botname, answer ) -- send bot's answer 
StopTimer() 
end 
end

HiddenSniper

that is almost the exact same code, but I still don't know what it means... =)
//HiddenSniper

Troubadour

don't forget to change all the curUser  words to user

enjoy it!
Regards,

Troubadour

** Guardian Forum **

hubaddy:   nederfun.no-ip.com

SMF spam blocked by CleanTalk