A log
 

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

A log

Started by HiddenSniper, 15 March, 2004, 23:44:25

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HiddenSniper

What do I write to make my bot create a log?
I'm sort of new at this so I need all the help I can get.

WooshMan

Have you written a bot then?  Or do you have a bot running written by someone else?

If it is written by yourself and depending on what it does you should be able to add a log part to the script quite easily.

If the script is by someone else, which one is it?

Woosh
WooshMan

Creator of
originaltimebot.lua
www hubstats

Thanks to Plop, Kepp and NightLitch

[NL]trucker

HiddenSniper


2 options m8

1 post your script here so the scripters can have a look at it.

2  look at other scripts like logger
----------------------------------------------------
big guess from me
as far as i know you need to have a txtfle in scriptdir
then in your script you have to add  
txtfile=......log.txt

then you have to make a routine with writetofile()
----------------------------------------------------

this is what i saw in many scripts.
but you need to look for yourself.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


HiddenSniper

I have a bot that I have written on my own, but it has no function even remotely to a log function, 'cause I don't know how to write it.
I just need you guys to write an example and explain it. Like the last reply... I don't know what writetofile() does, I can guess but I don't know for sure. =)
I also need to know how to use it in a function.
BTW is there a list of commands somewhere on the web?
I didn't even know there was such a thing as a writetofile()... =) It would be very helpful if someone made such a list if it doesn't exist.

If I doesn't make any sense so just post a reply and I'll try to explain better.
//HiddenSniper


SMF spam blocked by CleanTalk