Trigger bot
 

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

Trigger bot

Started by TechUK, 14 May, 2005, 13:03:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TechUK

I need a nice simple trigger bot that is easy to edit and run  This for lua 4 please  Hub is run by robocop 7 :]

Dessamator

Ignorance is Bliss.

jiten

TechUK, search the forum for "wiseguy", "sensi" or "trickerbot". You'll find what you need then.

QuoteOriginally posted by Dessamator
click here
That link of yours... I guess that you need to start leaving it on you signature :D

Best regards.

B@B?

#3
May this helps...

(Runned in my PTOkax 4.99/Lua 4)

***********************************

-- Trigger (PM)

botname = "TriggA"
trigs = {

hi = "Hi, [User], Welcome to "..frmHub:GetHubName().."!",
hey = "Hey, [User], Welcome to "..frmHub:GetHubName().."!",
hello = "Hello, [User], Welcome to "..frmHub:GetHubName().."!",
bye = "Bye, [User] ;-)",
cya = "C Ya, [User] ;-)",
["see ya"]="So long, [User] ;-)",
["good bye"] = "Bye, [User] ;-)",
peace = "RIP, [User] ;-)",
["c ya"] = "Bye, [User] ;-)",
["c ya later"] = "Bye, [User] ;-)",

}

function Main()
frmHub:RegBot(botname)
end

function DataArrival(user, data)
if(strsub(data, 1, 4) == "$To:") then
data=strsub(data,1,strlen(data)-1)
-- get the msg only using regular expression
s,e,whoTo,msg = strfind(data,"$To:%s+(%S+)")
if (whoTo == botname) then
s,e,whoTo,from,msg = strfind(data,"$To:%s+(%S+)%s+From:%s+(%S+)%s+$%b<> ([ -z]*)")

trigfound=1

-- look in the table
for key, value in trigs do
if( strfind( strlower(msg), key) ) then
answer, x = gsub(value, "%b[]", user.sName)
user:SendPM( botname, answer )
trigfound=1
break
end
end
if (trigfound==0)then
user:SendPM( botname, "Bitte wiederholen...." )
end
end
THE DAY AFTER...  

...is >>>>>>>> NOW!




Btw:
Plz excuse my english...
It?s not the best, i?m sure...but it?s funny...isn?t it?

Dessamator

QuoteOriginally posted by jiten
TechUK, search the forum for "wiseguy", "sensi" or "trickerbot". You'll find what you need then.

QuoteOriginally posted by Dessamator
click here
That link of yours... I guess that you need to start leaving it on you signature :D

Best regards.

Done !
Ignorance is Bliss.

TechUK

My thanks to all  I have loads of option now  :D

(-_-)

please help, im looking for a random phrase generator bot for my dcdm 0.045 client, the trick is i want the script to make it look like im saying the phrases.....i have a set of phrases i want to use i just dont know how to write lua 5 or for dcdm so if anyone can help me my hub is titanelite.no-ip.org:411 thanks in advance

SMF spam blocked by CleanTalk