Simple.Multi.Chat.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

Simple.Multi.Chat.Bot

Started by NightLitch, 06 May, 2007, 19:05:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NightLitch

Ok I thought I would put a simple script into the forum again.  :P



Name: Simple Multi Chat Bot
Description: Multi Chats for PtokaX
Developer: NightLitch
Date: 2007-05-06


Usage:

- Only operators can Add/Remove chats
- Simple functions for handling everything
- Edit the commands in script for own setup
- Requests for extending the script are welcome




Enjoy!

//NL

bastya_elvtars

Quote from: Mutor on 06 May, 2007, 20:12:25
Users of this script should be aware it is ONLY for LUA 5.1

I think this is needless to say, since users are supposed to use versions that are supported officially.
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

Quote from: Mutor on 06 May, 2007, 22:59:46
Yeah, good thing they always do that.

Not always, but they are supposed to. However, I have seen a support requset for TD4 not so long ago. ;D

Quote from: Mutor on 06 May, 2007, 22:59:46
Is my sarcasm coming through OK?

Sure, as usual. :-P
Everything could have been anything else and it would have just as much meaning.

Yahoo

i am getting the following errors
1)Simple.Multi.Chat.Bot.lua:125: attempt to index a nil value
2)Simple.Multi.Chat.Bot.lua:125: attempt to concatenate local 'to' (a table value)
"BoRN FIGhTEr"

bastya_elvtars

This function is flawed:
[tCmd.JoinChat] = function(to,nick)
		if not FindNickInChat(to, nick) then
			GetItemByName(nick):SendData("$To: "..nick.." From: "..to.." $<"..to.."> *** You've joined the chat. Exit chat with: "..tCmd.ExitChat)
			SendMsgToChat(to, to, "*** "..nick.." joined the chat.")
			AddNickToChat(to, nick)
		else
			GetItemByName(nick):SendData("$To: "..nick.." From: "..to.." $<"..to.."> *** You've allready joined this chat.")
		end
	end,
	[tCmd.ExitChat] = function(to,nick)
		if FindNickInChat(to, nick) then
			GetItemByName(nick):SendData("$To: "..nick.." From: "..to.." $<"..to.."> *** You've exit this chat.")
			RemoveNickFromChat(to, nick)
			SendMsgToChat(to, to, "*** "..nick.." has left the chat.")
		end
	end,
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk