bash bot v0.1 lua 5
 

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

bash bot v0.1 lua 5

Started by blastbeat, 08 May, 2007, 23:17:44

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blastbeat

Hi

i wrote a script which sends random quotes of www.bash.org (or www.german-bash.org) in main chat or simple extra chatroom.
the quotes are stored in a database created by extra scripts which can parse the html code.

thanks for comments, blastbeat

--[[

bash bot v0.3 lua 5 by blastbeat

- this script sends quotes from a database in mainchat or extra chatroom
- its possible to set time intervals for sending
- user can enter or leave chatroom with rightclick

- changelog:
	- to v0.1 (release: 08.05.2007):
		- [bug] roomtimercmd instead of roomtimer (thanks to baba.runner)
		- "<>" filtered from quotes
		- function "ParseHTML" replaces with the table "toparse" more special characters
		- ascii below the quotes can be changed in settings 
		- the whole quote database will not be loaded in memory any more
	- to v0.2 (release: 10.05.2007):
		- [bug] postfix instead of nickName (thanks to baba.runner)
		- list of users in chatroom saved in extra file

- release: 12.05.2007

]]--

CrazyGuy


baba.runner

Hi Blastbeat

nice script.

One little error in the function to set the timer for the chatroom
in row 221 of the bash_de.lua of the GermanBash script
change
elseif cmd==roomtimer and masterPerm[GetUserProfile(user.sName)]==1 then


to

elseif cmd==roomtimercmd and masterPerm[GetUserProfile(user.sName)]==1 then


Regards. ;)

blastbeat

#3
Hi baba.runner

thanks for finding this bug. i updated the script to version v0.2
update to v0.3, change of timer should work now
update to v0.4

SMF spam blocked by CleanTalk