seen bot - Page 2
 

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

seen bot

Started by damo, 20 May, 2005, 00:26:35

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ubikk

Thank you so much for your help guyz :)
One last request for this script, is it possible to make it work for like this (i dont know how to express this in english):
example:

If the nickname is Ubikk
I want the script to work for ubikk and for uBikk too...  i dont want it to depend on the capital of a nickname or on the littles.
!seen Ubikk = !seen ubikk = !seen uBiKK = !seen UbiKK  etc...
 :D

Too bad i dont know english that well. I hope you guyz understood what i ment to say :P if not, i will try to explain harder   :D

Dessamator

QuoteOriginally posted by Ubikk
Thank you so much for your help guyz :)
One last request for this script, is it possible to make it work for like this (i dont know how to express this in english):
example:

If the nickname is Ubikk
I want the script to work for ubikk and for uBikk too...  i dont want it to depend on the capital of a nickname or on the littles.
!seen Ubikk = !seen ubikk = !seen uBiKK = !seen UbiKK  etc...
 :D

Too bad i dont know english that well. I hope you guyz understood what i ment to say :P if not, i will try to explain harder   :D

what u mean is remove the case "sensetivity" just add/edit this :

local s,e,arg = string.find(data, "%b<>%s+%S+%s+(%S+)")
arg = string.lower(arg)
Ignorance is Bliss.

Ubikk

So, where should i add that? :)
All that i could find in my code similar to that was:

local s,e,cmd = string.find(data, "%b<>%s+[%!%+%?%#](%S+)")

jiten

Something like this (check the red line):
local tCmds = {
		["seen"] = function(curUser, data)
			local s,e,arg = string.find(data, "%b<>%s+%S+%s+(%S+)")
			if not arg then
				if HowToSend == 1 then
					SendToAll(BotName, "Syntax is: !" ..cmd.. " ")
				elseif HowToSend == 2 then
					curUser:SendData(BotName, "Syntax is: !" ..cmd.. " ")
				elseif HowToSend == 3 then
					curUser:SendPM(BotName, "Syntax is: !" ..cmd.. " ")
				end
				return 1
			end
			[COLOR=red]arg = string.lower(arg)[/COLOR]
Best regards,

jiten

GodLike

can you make ubikk`s idea  ?( ? its a good idea !!!!  :D
 
If the nickname is GodLike
I want the script to work for GodLike and for godlike too... i dont want it to depend on the capital of a nickname or on the littles.
!seen GodLike = !seen GODLIKE = !seen godlike = !seen GODlike etc...

i hope can you make  :]

Madman

Check jitens post....
He tell u all about how to do it.. but i'll edit the script..
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Ubikk

Unfortunately I keep this script disabled.... it still uses 90% of my CPU when I activate it...  :rolleyes:

kvisko

This script crashes my hub, only solution is restart, and renaming the script file so it does not load again on startup...I'm running Verli 0.9.8c RC2...anyone else with this problem?

Ubikk

It consumes way too much cpu and ram ... maybe a more experienced user can help us :)

Dessamator

hmm, it really shouldnt consume that much memory, only in a hub with a lot of traffic !
Ignorance is Bliss.

Madman

QuoteOriginally posted by kvisko
This script crashes my hub, only solution is restart, and renaming the script file so it does not load again on startup...I'm running Verli 0.9.8c RC2...anyone else with this problem?
Verli? this ia a PtokaX script...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

SMF spam blocked by CleanTalk