Record Bot - Page 2
 

News:

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

Record Bot

Started by jiten, 10 May, 2005, 15:38:22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jiten

You're welcome :]

Tw?sT?d-d?v

Can you add switch to allow reg/unreg bot please :D

jiten

QuoteOriginally posted by (uk)jay
Can you add switch to allow reg/unreg bot please :D
First post updated with that request.

Cheers m8

Tw?sT?d-d?v


Cosmos

im just testing this script.. and in a hub where nobody is sharing i get this error:

[16:18] Syntax C:\0.3.3.0.b17.08.nt.dbg\scripts\record.lua:303: attempt to concatenate field `maxSharer' (a nil value)

jiten

QuoteOriginally posted by Cosmos
im just testing this script.. and in a hub where nobody is sharing i get this error:

[16:18] Syntax C:\0.3.3.0.b17.08.nt.dbg\scripts\record.lua:303: attempt to concatenate field `maxSharer' (a nil value)
Thanks for the report. First post updated.

Cheers

chettedeboeuf

Hi ,

----------------------------------------------------------------------------------------------------
   Record      Valeur      Date - Heure
   ----------------------------------------------------------------------------------------------------
   Share      2.3 TB         06/04/05 21:24:58
   Users      64 user(s)   06/04/05 21:24:58
   Top Sharer   [rug.nl]pinger (310.0 GB)
   ----------------------------------------------------------------------------------------------------

Est il possible de filtrer certains utilisateurs pour eviter de fausser les records ?

It is possible to filter certain users for eviter to distort the records?

i.e. : Top Sharer   [rug.nl]pinger (310.0 GB)
He doesn't appear either on share nor on the users nor on top sharer

jiten

QuoteOriginally posted by chettedeboeuf
Hi ,

----------------------------------------------------------------------------------------------------
   Record      Valeur      Date - Heure
   ----------------------------------------------------------------------------------------------------
   Share      2.3 TB         06/04/05 21:24:58
   Users      64 user(s)   06/04/05 21:24:58
   Top Sharer   [rug.nl]pinger (310.0 GB)
   ----------------------------------------------------------------------------------------------------

Est il possible de filtrer certains utilisateurs pour eviter de fausser les records ?

It is possible to filter certain users for eviter to distort the records?

i.e. : Top Sharer   [rug.nl]pinger (310.0 GB)
He doesn't appear either on share nor on the users nor on top sharer
Yes, it's possible. I'm going to add that check to the script.

Best regards

jiten

First post updated once again.

Cheers

chettedeboeuf

Wow
Thank you jiten

jiten


chettedeboeuf

Hi !
this script goes marvelously well
Thank you jiten

Salut !
ce script marche merveilleusement bien
Merci jiten

jiten

I'm glad to know that :]

Cheers

GrinSlaW

hello jiten
can i get a version that show the record before MOTD i use ptokax inbuild MOTD

cheers
.:: AcExtreme ::. | .:: AcPro ::.

Dessamator

QuoteOriginally posted by jiten
QuoteOriginally posted by kash?
gr8 work Jiten

But only one problem......
that RecordBot comes b4 MOTD
Because of that all that goes up..
Can it be done after MOTD

waiting reply,
Yes, it can be done. First post updated with that fix.

Cheers
Ignorance is Bliss.

jiten

QuoteOriginally posted by GrinSlaW
hello jiten
can i get a version that show the record before MOTD i use ptokax inbuild MOTD

cheers
Just to confirm, do you mean before or after?
The way it's now, it shows after.

Best regards

GrinSlaW

before MOTD  :)


cheers
.:: AcExtreme ::. | .:: AcPro ::.

jiten

QuoteOriginally posted by GrinSlaW
before MOTD  :)


cheers
Well, delete your OnTimer() function, "SetTimer(1000) StartTimer()" in Main() function and replace your NewUserConnected function with this:
NewUserConnected = function(curUser)
	if mSet.tIgnore[curUser.sName] ~= 1 then
		local aShare,aUsers,maxShare,maxSharer = frmHub:GetCurrentShareAmount(),frmHub:GetUsersCount(),curUser.iShareSize,curUser.sName
		Record.Share = Record.Share or 0
		if ( aShare > Record.Share) then
			Record.Share = aShare Record.tShare = os.date() WriteTable(Record,"Record",mSet.fRecord)
			if (mSet.Config.PM == 1) then SendPmToNick(curUser.sName, mSet.bot.name, sNewSharePMResponse); end;
			if (mSet.Config.main == 1) then SendToAll(mSet.bot.name, curUser.sName.." has just raised the all-time share record to: "..DoShareUnits((Record.Share))); end;
		end
		Record.Users = Record.Users or 0
		if ( aUsers > Record.Users ) then
			Record.Users = aUsers Record.tUsers = os.date() WriteTable(Record,"Record",mSet.fRecord)
			if (mSet.Config.PM == 1) then SendPmToNick(curUser.sName, "Thanks, buddie. You've just raised the all-time share record!"); end;
			if (mSet.Config.main == 1) then SendToAll(mSet.bot.name, curUser.sName.." has just raised the all-time user record to: "..Record.Users.." users :)"); 	end;
		end
		Record.maxShare = Record.maxShare or 0
		if ( maxShare > Record.maxShare ) then
			Record.maxShare = maxShare Record.maxSharer = curUser.sName WriteTable(Record,"Record",mSet.fRecord)
			if (mSet.Config.PM == 1) then SendPmToNick(curUser.sName, "Thanks, buddie. You are our highest sharer with: "..DoShareUnits((Record.maxShare)).."."); end;
			if (mSet.Config.main == 1) then SendToAll(mSet.bot.name, curUser.sName.." is our all-time biggest sharer with: "..DoShareUnits((Record.maxShare)).." :)"); 	end;
		end
		if (mSet.Config.Login == 1) then
			curUser:SendData(mSet.bot.name, "Share record: "..DoShareUnits(tonumber(Record.Share)));
			curUser:SendData(mSet.bot.name, "User record: "..Record.Users.." users");
			curUser:SendData(mSet.bot.name, "Top Sharer: "..(Record.maxSharer or "Not Available").." ("..DoShareUnits((Record.maxShare))..")");
		end;
	end
end
Best regards,

jiten

GrinSlaW

oki tnx jiten it works comes before MOTD now and it works :D


cheers
.:: AcExtreme ::. | .:: AcPro ::.

kunal

i want the date and time when the record was made

chettedeboeuf

Is it possible to validate top sharer en top share after a certain delay ?
Some users come with more than 1TB and are kicked by another script (fake share or ...) and I wan't that they appear in the top

For example 10 minutes after an entry

Thank you Jiten
Posted on: 17 July 2005, 19:21:06
Jiten,

Help me please

 :(

aL1en

can you make that profile settings for who can access the 'op commands'?
i think only masters n netfounders should do it.. maybe moderators..

 8)

chettedeboeuf

#47
Hi !

Change this :

msg = msg.."\tUsers\t\t"..Record.Users.." user(s)\t\t"..Record.tShare.."\r\n"

With this :

msg = msg.."\tUsers\t\t"..Record.Users.." user(s)\t\t"..Record.tUsers.."\r\n"

And thank you for this bot Jiten

jiten

First post updated with the latest Record Bot version.

Troubadour

Very nice one jiten.
Could you make it so it displays with the date of record.

example:
<RecordBot> Share record: 22.4 TB set at 26/02/2006
<RecordBot> User record: 216 users 27/02/2006
<RecordBot> Top Sharer: [NL]Koromo (58.2 GB) 22/02/2006
<RecordBot> [NL]Koromo has just raised the all-time share record to: 22.4 TB at 26/02/2006
<RecordBot> [NL]Koromo is our all-time biggest sharer with: 58.2 GB since 22/02/2006 :)
<RecordBot> [OH]NLAngela2 has just raised the all-time user record to: 217 users on 28/02/2006 :)
<RecordBot> [OH]NLAngela2 has just raised the all-time share record to: 22.5 TB on 28/02/2006
<RecordBot> [OH]NLAngela2 is our all-time biggest sharer with: 110.6 GB since 28/02/2006 :)
Regards,

Troubadour

** Guardian Forum **

hubaddy:   nederfun.no-ip.com

SMF spam blocked by CleanTalk