PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: FEJA on 26 October, 2005, 12:32:12

Title: TrickerBot.lua
Post by: FEJA on 26 October, 2005, 12:32:12
i use Ptokax 0.3.3.0 16.05 nd Robocop10.01a   why Trickerbot don't work?? :( plz help
Title:
Post by: 6Marilyn6Manson6 on 26 October, 2005, 12:48:16
Post code, please. :)
Title:
Post by: FEJA on 26 October, 2005, 13:31:22
QuoteOriginally posted by 6Marilyn6Manson6
Post code, please. :)


-- TrickerBot.lua, created by Ptaczek Dec-24,2002
-- Just see how to implement the NMDC TriggerBot in LUA :)

botname = "kerrry"
trigs = {
      lol="Hahahahahahaha!!! :D",
      bye="[USER] saka ATTTTTTTAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!",
      cja="Cau [USER]!",
      cau="Cau ;)",
                bots="kuru tu te sauc par botu? GrRrRrrr man ir vaards ja neesi pamaniijis!!!!",
   }
   

function Main()
   frmHub:RegBot(botname)
end

function DataArrival(user, data)
   if( strsub(data, 1, 1) == "<" ) then
      -- get the msg only using regular expression
      s,e,msg = strfind(data, "%b<> ([%w ]*)")

      -- look in the table
      for key, value in trigs do
         if( strfind( strlower(msg), key) ) then
            answer, x = gsub(value, "%b[]", user.sName)
            SendToAll( botname, answer )
            break
         end
      end
   end
end


function NewUserConnected(curUser)
   curUser:SendPM(botname, "Cjaw "..curUser.sName..". esi sveicinaats "..frmHub:GetHubName() )
end
Title:
Post by: 6Marilyn6Manson6 on 26 October, 2005, 13:41:04
use Ptokax 0.3.3.0 16.05 nd Robocop10.01a why Trickerbot don't work?? :( plz help
you use PtokaX in lua5 and code of script is in Lua4... converted it in lua5 and work.. c ya
Title:
Post by: FEJA on 26 October, 2005, 13:45:07
QuoteOriginally posted by 6Marilyn6Manson6
use Ptokax 0.3.3.0 16.05 nd Robocop10.01a why Trickerbot don't work?? :( plz help
you use PtokaX in lua5 and code of script is in Lua4... converted it in lua5 and work.. c ya


hmmm, how?? ?(  I don't understand in scripts nothing  :(
Title:
Post by: 6Marilyn6Manson6 on 26 October, 2005, 13:58:10
-- TrickerBot.lua, created by Ptaczek Dec-24,2002
-- Just see how to implement the NMDC TriggerBot in LUA :)
-- Converted in LUA 5 by 6Marilyn6Manson6 at 26/10/2005

botname = "kerrry"

trigs = {
lol="Hahahahahahaha!!! :D",
bye="[USER] saka ATTTTTTTAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!",
cja="Cau [USER]!",
cau="Cau ;)",
bots="kuru tu te sauc par botu? GrRrRrrr man ir vaards ja neesi pamaniijis!!!!",
}

function Main()
frmHub:RegBot(botname)
end

function ChatArrival(user, data)
if( string.sub(data, 1, 1) == "<" ) then
s,e,msg = string.find(data, "%b<> ([%w ]*)")
for key, value in trigs do
if( string.find( string.lower(msg), key) ) then
answer, x = string.gsub(value, "%b[]", user.sName)
SendToAll( botname, answer )
break
end
end
end
end

function NewUserConnected(curUser)
curUser:SendPM(botname, "Cjaw "..curUser.sName..". esi sveicinaats "..frmHub:GetHubName() )
end

C ya
Title:
Post by: FEJA on 26 October, 2005, 14:06:40
QuoteOriginally posted by 6Marilyn6Manson6
-- TrickerBot.lua, created by Ptaczek Dec-24,2002
-- Just see how to implement the NMDC TriggerBot in LUA :)
-- Converted in LUA 5 by 6Marilyn6Manson6 at 26/10/2005

botname = "kerrry"

trigs = {
lol="Hahahahahahaha!!! :D",
bye="[USER] saka ATTTTTTTAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!",
cja="Cau [USER]!",
cau="Cau ;)",
bots="kuru tu te sauc par botu? GrRrRrrr man ir vaards ja neesi pamaniijis!!!!",
}

function Main()
frmHub:RegBot(botname)
end

function ChatArrival(user, data)
if( string.sub(data, 1, 1) == "<" ) then
s,e,msg = string.find(data, "%b<> ([%w ]*)")
for key, value in trigs do
if( string.find( string.lower(msg), key) ) then
answer, x = string.gsub(value, "%b[]", user.sName)
SendToAll( botname, answer )
break
end
end
end
end

function NewUserConnected(curUser)
curUser:SendPM(botname, "Cjaw "..curUser.sName..". esi sveicinaats "..frmHub:GetHubName() )
end

C ya


Wooow, BIG thanks, it's work now :)) THANKS:))
Title:
Post by: 6Marilyn6Manson6 on 26 October, 2005, 14:09:51
QuoteOriginally posted by FEJA
Wooow, BIG thanks, it's work now :)) THANKS:))

Welcome FEJA i'm here for help you :))) C ya :p
Title:
Post by: FEJA on 29 October, 2005, 14:58:15
QuoteWelcome FEJA i'm here for help you :))) C ya :p

Marilyn, can you help me with this script again?
Before (in lua4) this script work like this

i write --- Hellou
bot answer --- Hellou Feja


now(in lua5) when i write my "Hellou"  bot say its text first mine  :D

why?? i want that it answer me (my text is first)  not i answer :)))  LOL

please help me with it :) thanks
Title:
Post by: (-=TrIp-iN-SuN=-) on 29 October, 2005, 15:07:32
zitat:
--------------------------------------------------------------------------------------------------------
Marilyn, can you help me with this script again?
Before (in lua4) this script work like this

i write --- Hellou
bot answer --- Hellou Feja


now(in lua5) when i write my "Hellou" bot say its text first mine :D

why?? i want that it answer me (my text is first) not i answer :))) LOL

please help me with it :) thanks
-------------------------------------------------------------------------------------

-- 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

-- !trigger on -- start triggerbot
-- !trigger off -- Stop triggerbot

botname = "?Same_One?"
trigall=1 -- default mode

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"
                                             },
                   
      yes={
   "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 OnExit()
   frmHub:UnregBot(botname)
end

function ChatArrival(curUser, data)

status=string.sub(data,1,string.len(data)-1)
-- parse the command
s,e,cmd = string.find( status, "%b<>%s+(%S+)" )

if curUser.bOperator == 1 then
   if (cmd == "!trigger") then
      if string.find(status, "on") then
         SendToAll(botname, " Okay, I will talk to you again :-)")
         frmHub:RegBot(botname)
         trigall=1
      elseif string.find(status, "off") then
         SendToAll(botname, " Hmf, Okidoki I will be quiet :(( ")
         frmHub:UnregBot(botname)
         trigall=0
      end
   return 1
   end
end
       
      -- get the msg only using regular expression
      s,e,msg = string.find(data, "%b<>([%a ]+)")                                        
      -- look in the table
                if trigall==1 then
      for key, value in trigs do
                for key2, value2 in value do
                     
   if( string.find( string.lower(msg), key) ) then
                 else break  
   end

        if( string.find( string.lower(msg), "!me") ) then
                  t="**"..curUser.sName
                  data=string.gsub (msg, "!me", t, 1 )
   end

      SendToAll( data ) -- send the original data
                   
            SetTimer(1800)
                  StartTimer()
      answer, x = string.gsub(value[math.random(1,table.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



take this script
Title:
Post by: 6Marilyn6Manson6 on 29 October, 2005, 16:45:52
QuoteOriginally posted by FEJA
QuoteWelcome FEJA i'm here for help you :))) C ya :p

Marilyn, can you help me with this script again?
Before (in lua4) this script work like this

i write --- Hellou
bot answer --- Hellou Feja


now(in lua5) when i write my "Hellou"  bot say its text first mine  :D

why?? i want that it answer me (my text is first)  not i answer :)))  LOL

please help me with it :) thanks

This is ok FEJA:

-------------------------------------------------------------------------------------
-- 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
-- Line-fix by 6Marilyn6Manson6 by 29/10/2005
-- !trigger on -- start triggerbot
-- !trigger off -- Stop triggerbot

botname = "?Same_One?"
trigall=1 -- default mode

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"
},

yes={
"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 OnExit()
frmHub:UnregBot(botname)
end

function ChatArrival(curUser, data)
status=string.sub(data,1,string.len(data)-1)
s,e,cmd = string.find( status, "%b<>%s+(%S+)" )
if curUser.bOperator == 1 then
if (cmd == "!trigger") then
if string.find(status, "on") then
SendToAll(botname, " Okay, I will talk to you again :-)")
frmHub:RegBot(botname)
trigall=1
elseif string.find(status, "off") then
SendToAll(botname, " Hmf, Okidoki I will be quiet :(( ")
frmHub:UnregBot(botname)
trigall=0
end
return 1
end
end
s,e,msg = string.find(data, "%b<>([%a ]+)")
if trigall==1 then
for key, value in trigs do
for key2, value2 in value do
if( string.find( string.lower(msg), key) ) then
else break
end
if( string.find( string.lower(msg), "!me") ) then
t="**"..curUser.sName
data=string.gsub (msg, "!me", t, 1 )
end
SendToAll( data ) -- send the original data
SetTimer(1800)
StartTimer()
answer, x = string.gsub(value[math.random(1,table.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

C ya friend :)
Title:
Post by: FEJA on 30 October, 2005, 11:37:23
Thanks, its great  :D
Title:
Post by: 6Marilyn6Manson6 on 30 October, 2005, 11:52:47
QuoteOriginally posted by FEJA
Thanks, its great  :D

No problem friend ;)