ONLY mainchat logging script
 

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

ONLY mainchat logging script

Started by nand, 04 September, 2004, 03:44:25

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nand

I need very very simple script to log the chat to txt files best if filenames have date in it like chatlog10.2.04.txt

Chat log would need to log mainchat like:

[2004-08-20 17:13] blah blah

exacly that formating.

I know it is easy so I sould make it, but I would need days or months to learn lua, and for you it would be minute. So please write this for me if you can.

NemeziS

But can this bot log main chat to special dirrectory? For example C:\FTP\Pub?  I tried to change path but the syntax error appears. And it's not good that bot sends messages like that: <------------------------------------------------------------------------[ End of main chat log ]------------------>
I really don't need this...
Could you edit this script for me please? :)
--LUA forever! =)

Typhoon

just remove this line

  user:SendPM(botname,"<------------------------------------------------------------------------[ End of main chat log ]------------------>")

Typhoon?



??????Hawk??????

#3
heya nand


why not just enable logging   on your client  ????

dc++  settings/logs and sound    

put this in to the format line and tick the relevent logs

[%Y-%m-%d %H:%M] %[message]

Janhouse

Can you add option that shows ip adres?

Ex: [16-09-2004 22:18] (IP) blah blah

-----------------------------------------------

And I don't know how does that loging script works, but it should save chat in log file each hour not when you type message. So it won't make hub slower. (If it is stupid just ignore this part)

-----------------------------------------------

OH!!! And there should be option to open log files vith command !showlog

Date should be in format DD-MM-YYYY
Ex: 16-09.2004

And if dc can't open very large files in bot's pm, script should split log files in many files (in each log file should be writen ex: Type !showlog 16-09-2004p2

(p2 means part2 (there could be part3, part4 etc.))

----------------------------------------------

Masters should have option to delete all log files typing clearlog (and script should delete log files older then 3 days.

----------------------------------------------

It sound's a bit hard but matbe someone can make it.




P.S. Sorry about my bad english!  :D

ScidaR

I changed this script a little bit, and at my hub, when users enters, they can see a 10 line mainchat log. This script logs every line, include the ptokax commands too, and everybody can see if I use for example "!info" on a user.  Could anyone help me to make it to not log that lines which starts with "!" ?

ScidaR

thank You Mutor, it works :)

GILLIS

mutor, is it possible to modify this script to pickup other bot entrys, i see that it doesnt pick up any bot entrys as "history".

that would be useful for my hub. as a bot announces the latest releases hourly. and if somone wasnt online when it last announced they would get it pmed from the history bot :)

thanks.
GILLIS

bastya_elvtars

That can only be done clientside, I am afraid.
Everything could have been anything else and it would have just as much meaning.

GILLIS

ok, all id really need it for is the bots history anyways :)
thanks,

please check out

http://board.univ-angers.fr/thread.php?threadid=5465&boardid=28&styleid=1&sid=b321dc7595b6c63e862ea8dc24bac5e7

thanks again.
GILLIS

SMF spam blocked by CleanTalk