StealthBot.net: Channel Activity Script - StealthBot.net

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Channel Activity Script

#1 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted January 04, 2010 - 07:14 PM

Channel Activity

Author: The-Black-Ninja
Version: 1.1 Revision 0
Description: Records channel activity and user activity within the channel. Stats are kept on a daily basis and averages are kept on a weekly basis; every new day, the daily stats reset and the averages for the day get sent to the weekly averages.

Commands:
ctactivity [Username] = Views a user's activity. If no user is specified, user issuing the command will be used. 200 access.
ctavgchan = Views the average channel volume. 200 access.
ctchanstats = Views channel activity for the current week. 200 access.
ctcheckinactive [Username] = Views a user's inactivity. If no user is specified, user issuing the command will be used. 200 access.
ctrank = Views top 5 highest user times spent in channel. 200 access.
ctcurrenttime[Username] = Views the current user's time spent in channel. If no user is specified, user issuing the command will be used. 200 access.
cthits = Channel hits for the day. 200 access.
ctlasttime[Username] = Views the user's last time spent in channel. If no user is specified, user issuing the command will be used. 200 access.
ctmostever = Highest channel volume ever seen. 200 access.
cttotalseen [Username] = Views a user's last seen date, time spent, and time left. If no user is specified, user issuing the command will be used. 200 access.
cttotaltime [Username] = Views a user's time spent in channel. If no user is specified, user issuing the command will be used. 200 access.

Important Notes:
  • This script is meant for bots that frequently do not need reloading and are in the channel for a prolonged period of time. If a bot with this script does not stay in the channel often or needs reloading frequently, this will result in some false data readings
  • All important settings are found in the scripts.ini file, under the [Channel Activity] heading
  • If you do not set your Channel_Name to your actual channel name (within the scripts.ini), then this script will not record information until you do so.

Attached File(s)



#2 User is offline   ko12n Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: December-13 09

Posted January 09, 2010 - 06:45 PM

i replaced all "Channel_Name" with my clan name, then i got an error when i reloaded scripts
im not sure which channel_name im supposed to replace, i couldnt find Channel Activitiy heading or any headings
Posted Image

#3 User is offline   GurkenKinG Icon

  • Emperor of TBR
  • PipPipPip
  • Group: Members
  • Posts: 268
  • Joined: October-13 09

Posted January 09, 2010 - 07:41 PM

View Postko12n, on 09 January 2010 - 07:45 PM, said:

i replaced all "Channel_Name" with my clan name, then i got an error when i reloaded scripts
im not sure which channel_name im supposed to replace, i couldnt find Channel Activitiy heading or any headings


All channel_name? There is just one channel_name setting in the scripts.ini, DON'T change anything in the script! Btw, did you set the channel name to JUST your clans name, because that would be wrong. for example, if your clan is named 123, the clanchannel isn't named 123 but "clan 123". I hope that this helps you!
Posted Image


Posted Image

#4 User is offline   kwoxer Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: January-13 10

Posted January 14, 2010 - 10:18 PM

 [11:11:47 PM] Scripting runtime error '13' in Channel Activity: (line 49; column 0)
 [11:11:47 PM] Typen unverträglich: '[string: "14.01.2010 23:11:47"]'
 [11:11:47 PM] Offending line: >> 


I got these Errors after installiing the Script

#5 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted January 14, 2010 - 10:37 PM

I've already fixed that issue I believe, but I'm still making some finishing touches. It'll have to be once I'm finished making this VB macro for autocad for work.

#6 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted January 15, 2010 - 07:44 AM

i keep getting the same error as the guy above. Inless u fixed it but didnt post the new script??? it looks like a really NICe script onces all the bugs get out of it!! nice heather! +rep

#7 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted January 15, 2010 - 10:27 AM

never mind i redled it and it works GREAT!

#8 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted January 16, 2010 - 09:24 AM

hmmok im getting an error this is what im getting when ppl join the channel


ok sorry no error it was my bot i keep getting this


01:23:05 AM] Error: Overflow in AddQ().
[01:23:05 AM] Error: Overflow in AddQ().
[01:23:33 AM] Error: Overflow in AddQ().
[01:25:03 AM] Error: Overflow in AddQ().
[01:25:26 AM] Error: Overflow in AddQ().
[01:25:52 AM] Error: Overflow in AddQ().
[01:26:03 AM] Error: Overflow in AddQ().

idk what caused it but i just reconnected my bot and it went away.

This post has been edited by aka-: January 16, 2010 - 09:38 AM


#9 User is offline   GurkenKinG Icon

  • Emperor of TBR
  • PipPipPip
  • Group: Members
  • Posts: 268
  • Joined: October-13 09

Posted January 16, 2010 - 03:19 PM

The Overflow in AddQ error is the most mysterious error ever^^ it happens so rare and so random that noone knows what causes it o.O
Posted Image


Posted Image

#10 User is offline   kent Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 65
  • Joined: October-18 09

Posted July 22, 2010 - 04:02 AM

View Postkwoxer, on 14 January 2010 - 04:18 PM, said:

 [11:11:47 PM] Scripting runtime error '13' in Channel Activity: (line 49; column 0)
 [11:11:47 PM] Typen unverträglich: '[string: "14.01.2010 23:11:47"]'
 [11:11:47 PM] Offending line: >> 


I got these Errors after installiing the Script



I still got that error on the script that i got from here
Ive tryied to fix it but fail, i just dont understand whats exactly the problem on this one :/

#11 User is offline   knasiotis Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: September-16 10

Posted September 17, 2010 - 10:45 PM

Scripting runtime error '13' in Channel Activity: (line 49; column 0)
[01:40:30 AM] Type mismatch: '[string: "18/9/2010 1:40:28 ðì"]'
[01:40:30 AM] Offending line: >>

i have the same error dude

#12 User is offline   kent Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 65
  • Joined: October-18 09

Posted October 21, 2010 - 04:07 AM

View Postknasiotis, on 17 September 2010 - 04:45 PM, said:

Scripting runtime error '13' in Channel Activity: (line 49; column 0)
[01:40:30 AM] Type mismatch: '[string: "18/9/2010 1:40:28 ðì"]'
[01:40:30 AM] Offending line: >>

i have the same error dude



Yeah i know this script still have this error but they think is fixed but is not i have tried to fix it myself but failed with this script. I dont rlly know whats the problem on this one. srry to say but i cant help u :(

#13 User is offline   2Pacalypse- Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 30
  • Joined: October-19 10

Posted October 21, 2010 - 06:46 PM

View Postkent, on 21 October 2010 - 06:07 AM, said:

Yeah i know this script still have this error but they think is fixed but is not i have tried to fix it myself but failed with this script. I dont rlly know whats the problem on this one. srry to say but i cant help u :(

I have this same error.

Can somebody tell me if this is a big or minor error? I mean, does the script still works even with this error or it doesn't work at all?

#14 User is offline   kent Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 65
  • Joined: October-18 09

Posted October 26, 2010 - 05:00 AM

View Post2Pacalypse-, on 21 October 2010 - 12:46 PM, said:

I have this same error.

Can somebody tell me if this is a big or minor error? I mean, does the script still works even with this error or it doesn't work at all?


it doesn't work at all without the fix its kinda trash.. .

#15 User is offline   2Pacalypse- Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 30
  • Joined: October-19 10

Posted October 28, 2010 - 03:21 PM

View Postkent, on 26 October 2010 - 07:00 AM, said:

it doesn't work at all without the fix its kinda trash.. .

Actually, to me it seems to be working fine...

I got another question though.
Could /cthits command be reworked (or make new command) that counts hits (and unique hits more importantly) over longer period (a week or a month). Right now it seems to be resetting everyday.

#16 User is offline   VaNo_Tay Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: December-15 10

Posted December 25, 2010 - 12:20 AM

Hello Guys its a stupid Question i know, but where or better, was is the Script ini and how to edit the Channel Name in it?

This post has been edited by VaNo_Tay: December 25, 2010 - 12:21 AM


#17 User is offline   SoUkSoU Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: February-18 11

Posted February 18, 2011 - 08:10 PM

can someone tell me 2 things?
1st: where i change the channel name ? in what line?
2nd: where should i put the channelactivity.txt ?

Ty

#18 User is offline   T3X0 Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 498
  • Joined: June-27 10

Posted February 18, 2011 - 09:45 PM

If you mean how to add scripts with your second question then this will help you.
For your first question you have to go to: "Scripting -> Open Script folder -> scripts (also called scripts.ini)"

View PostThe-Black-Ninja, on January 04, 2010 - 07:14 PM, said:

Important Notes:
  • This script is meant for bots that frequently do not need reloading and are in the channel for a prolonged period of time. If a bot with this script does not stay in the channel often or needs reloading frequently, this will result in some false data readings
  • All important settings are found in the scripts.ini file, under the [Channel Activity] heading
  • If you do not set your Channel_Name to your actual channel name (within the scripts.ini), then this script will not record information until you do so.


#19 User is offline   kent Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 65
  • Joined: October-18 09

Posted February 21, 2011 - 07:22 PM

Now this work perfectly for me :P

Out of that im still gettin this error everytime i load scripts.


Quote

[01:19:17 PM] Scripting runtime error '13' in Channel Activity: (line 49; column 0)
[01:19:17 PM] Type mismatch: '[string: "21/02/2011 01:19:16 "]'
[01:19:17 PM] Offending line: >>


#20 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 22, 2011 - 04:56 PM

View Post2Pacalypse-, on October 28, 2010 - 10:21 AM, said:

Actually, to me it seems to be working fine...

I got another question though.
Could /cthits command be reworked (or make new command) that counts hits (and unique hits more importantly) over longer period (a week or a month). Right now it seems to be resetting everyday.
It's supposed to be resetting everyday. It's a day-by-day thing, but IIRC, you can open up the DB and review the unique hits for past days...though I'm not too sure.


View PostVaNo_Tay, on December 24, 2010 - 07:20 PM, said:

Hello Guys its a stupid Question i know, but where or better, was is the Script ini and how to edit the Channel Name in it?
Scripts.ini is in your bot's scripting folder. You will find your channel name in the [Channel Activity] section.


View PostSoUkSoU, on February 18, 2011 - 03:10 PM, said:

can someone tell me 2 things?
1st: where i change the channel name ? in what line?
2nd: where should i put the channelactivity.txt ?

Ty
1) Scripts.ini
2) Read the sticky on how to add scripts to your bot.


View Postkent, on February 21, 2011 - 02:22 PM, said:

Now this work perfectly for me :P

Out of that im still gettin this error everytime i load scripts.
It's something I still have yet to update, but change your system settings for your date to a / instead of a . to separate day/month/year

#21 User is offline   TrUtHSeRuM Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: September-10 10

Posted March 10, 2011 - 06:24 PM

This Overflow started showing up. Is there something I can do to fix it?

[01:23:14 PM] Channel Activity v1.1 Revision 0 by The-Black-Ninja

[01:09:21 PM] -- 71395 [47ms] has joined the channel using StarCraft: Brood War (1 wins).
[01:09:21 PM] Scripting runtime error '6' in Channel Activity: (line 677; column 0)
[01:09:21 PM] Overflow
[01:09:21 PM] Offending line: >>
[01:09:21 PM] Scripting runtime error '6' in Channel Activity: (line 677; column 0)
[01:09:21 PM] Overflow
[01:09:21 PM] Offending line: >>

#22 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted March 10, 2011 - 07:10 PM

I thought that error was fixed with the latest SB release...

#23 User is offline   TrUtHSeRuM Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: September-10 10

Posted March 11, 2011 - 12:29 AM

View PostThe-Black-Ninja, on March 10, 2011 - 02:10 PM, said:

I thought that error was fixed with the latest SB release...


I am using:

[07:27:36 PM] .: StealthBot v2.7.1 :.

and

[01:23:14 PM] Channel Activity v1.1 Revision 0 by The-Black-Ninja

I thought these two were the current versions.

This post has been edited by TrUtHSeRuM: March 11, 2011 - 12:33 AM


#24 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted March 11, 2011 - 04:43 AM

Try using:

Quote

[23:43:36.375] .: StealthBot Beta v2.7 - Build 483 :.


#25 User is offline   TrUtHSeRuM Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: September-10 10

Posted March 11, 2011 - 12:49 PM

ok, installer method did not work. unzip and replace worked. :/

ok, installer method did not work. unzip and replace worked. :/

[07:48:36 AM] .: StealthBot Beta v2.7 - Build 483 :.

This post has been edited by TrUtHSeRuM: March 11, 2011 - 12:25 PM


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users