Not show !comannds 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

Not show !comannds in main...

Started by NemeziS, 24 September, 2004, 16:02:56

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NemeziS

Hi!
Another request. I wanted a bot that will not show "!" cmds in main.
Who can help me?
--LUA forever! =)

Herodes

function DataArrival(user, data)
	if strsub(data, 1,1) == "<" then
		data = strsub(data, 1,strlen(data)-1)
		s,e,cmd = strfind(data, "%b<>%s+(%S+)")
		if strsub(cmd ,1,1) == "!" then
			return 1
		end
	end
end

Warning u though ... this will disable the processing of anything starting with a ' ! ' so I wouldnt expect to have my !cmds working using this ...

try to understand the way this works and then use it in the bot of which cmds u are referring to ..

NemeziS

I wanted all !cmds work, but not be displayed in main and PM. Is it possible?
--LUA forever! =)

Seiya

change the Herodes'scripts line by :

Quoteif (( strsub(data, 1, 1) == "<" ) or ( strsub(data, 1, 4) == "$To:" )) then

NemeziS

You didn't understand me. I wanted a script for !cmds not be shown (but they must work!) Herodes's script disables !cmds at all. I want only that not be shownin main\PM:

[00:59]  !records

or other !commands

Understand me? :)
--LUA forever! =)

SMF spam blocked by CleanTalk