determinate determinate

Author Topic: ONLY mainchat logging script  (Read 2080 times)

0 Members and 1 Guest are viewing this topic.

Offline nand

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
ONLY mainchat logging script
« on: September 04, 2004, 03:44:25 am »
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.

Offline NemeziS

  • Double Ace
  • *
  • Posts: 147
  • Karma: +0/-0
(No subject)
« Reply #1 on: September 10, 2004, 12:36:30 pm »
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! =)

Offline Typhoon™

  • Global Moderator
  • Lord
  • *****
  • Posts: 399
  • Karma: +22/-3
  • PGE Developer
    • PGE Homepage
(No subject)
« Reply #2 on: September 11, 2004, 12:14:07 am »
just remove this line

Code: [Select]

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



Typhoon™



Offline ¨˜”°º•Hawk•º°”˜¨

  • Global Moderator
  • Emperor
  • *****
  • Posts: 1 045
  • Karma: +12/-2
    • Leeds Laptop Repairs
(No subject)
« Reply #3 on: September 11, 2004, 04:46:19 am »
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

Code: [Select]

[%Y-%m-%d %H:%M] %[message]
« Last Edit: September 11, 2004, 04:46:34 am by ¨˜”°º•Hawk•º°”˜¨ »

Offline Janhouse

  • Fulll Member
  • ****
  • Posts: 73
  • Karma: +0/-0
Hmmmm...... IDEA!!!
« Reply #4 on: September 16, 2004, 09:30:27 pm »
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

Offline ScidaR

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
(No subject)
« Reply #5 on: July 01, 2005, 09:14:16 pm »
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 "!" ?

Offline ScidaR

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
(No subject)
« Reply #6 on: July 02, 2005, 09:58:36 am »
thank You Mutor, it works :)

Offline GILLIS

  • Member
  • ***
  • Posts: 32
  • Karma: +0/-0
(No subject)
« Reply #7 on: October 19, 2005, 01:07:28 am »
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

Offline bastya_elvtars

  • Administrator
  • Forum God
  • *****
  • Posts: 3 761
  • Karma: +173/-7
  • The rock n' roll doctor
    • The LawMaker & FreshStuff3 Site
(No subject)
« Reply #8 on: October 19, 2005, 04:57:33 am »
That can only be done clientside, I am afraid.

Offline GILLIS

  • Member
  • ***
  • Posts: 32
  • Karma: +0/-0
(No subject)
« Reply #9 on: October 19, 2005, 12:28:33 pm »
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

 

determinate determinate