L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 01:41:46 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: online is spaming
Pages: [1] 2 3   Go Down
« previous next »
Print
Author Topic: online is spaming  (Read 1668 times)
0 Members and 1 Guest are viewing this topic.
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
online is spaming
« on: April 29, 2007, 01:07:37 PM »

when people log on they are sent the !online like 15 to 20 times.. doing the shared database with the latest svn updates

Code:
dwbot1 [2007-04-29 18:00:33]    [TELL]  [OUT]   -> Trukhack: /tell dwbot1 !help
dwbot1 [2007-04-29 18:00:38]    [TELL]  [OUT]   -> Trukhack: 34 members online i
n Guild. 0 members in Privategroup. :: [link]click to view[/link]
dwbot1 [2007-04-29 18:00:38]    [TELL]  [OUT]   -> Trukhack: /tell dwbot1 !help
dwbot1 [2007-04-29 18:00:42]    [TELL]  [OUT]   -> Trukhack: 34 members online i
n Guild. 0 members in Privategroup. :: [link]click to view[/link]
dwbot1 [2007-04-29 18:00:42]    [TELL]  [OUT]   -> Trukhack: /tell dwbot1 !help
dwbot1 [2007-04-29 18:00:46]    [TELL]  [OUT]   -> Trukhack: 34 members online i
n Guild. 0 members in Privategroup. :: [link]click to view[/link]
dwbot1 [2007-04-29 18:00:46]    [TELL]  [OUT]   -> Trukhack: /tell dwbot1 !help
dwbot1 [2007-04-29 18:00:51]    [TELL]  [OUT]   -> Trukhack: 34 members online i
n Guild. 0 members in Privategroup. :: [link]click to view[/link]
dwbot1 [2007-04-29 18:00:51]    [TELL]  [OUT]   -> Trukhack: /tell dwbot1 !help
dwbot1 [2007-04-29 18:00:55]    [TELL]  [OUT]   -> Trukhack: 34 members online i
n Guild. 0 members in Privategroup. :: [link]click to view[/link]
dwbot1 [2007-04-29 18:00:56]    [TELL]  [OUT]   -> Trukhack: /tell dwbot1 !help
dwbot1 [2007-04-29 18:01:04]    [TELL]  [OUT]   -> Trukhack: 34 members online i
n Guild. 0 members in Privategroup. :: [link]click to view[/link]
Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: online is spaming
« Reply #1 on: April 29, 2007, 02:08:21 PM »

What exactly are you doing?
Logged
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #2 on: April 29, 2007, 04:19:21 PM »

logging on..

« Last Edit: April 29, 2007, 04:38:51 PM by Nytridr » Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #3 on: April 29, 2007, 04:58:43 PM »

I think I found it.. I had a custom IRC file inplace and with the new updates and such it was causing tons of errors even out of memory errors and loops and what not.. I seen it go from 11,000k ram usage to 22000k ram usage in just 10 mins.. once I put back in the standard irc file it fixed everything.. so I am thinking there is something in what I have changed that is causing all these problems.

nope still doing it.. so IDK what is going on..
« Last Edit: April 29, 2007, 06:44:33 PM by Nytridr » Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: online is spaming
« Reply #4 on: May 01, 2007, 12:23:36 AM »

Try renaming modules/LogonNotify_GUILD.php to modules/_LogonNotify_GUILD.php.

If the error is gone then I know at least where to look, didn't have time to check myself yet and won't manage before tomorrow.
Logged
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #5 on: May 01, 2007, 09:01:54 AM »

here is another problem I am seeing also.. tried to send a massmsg to let everyone know to let me know if they get spammed again.. and it didnt work..

Code:
rsbot [2007-05-01 13:57:31]     [TELL]  [OUT]   -> Aofbot: Mass message beeing s
ent. Please stand by...

Warning: array_keys(): The first argument should be an array in C:\aobots\RS\rsb
ot\modules\MassMsg.php on line 118

could be because I already renamed that.. didnt check it before hand.. but will later..

okay not sure if it is still doing it since even before it seems like it would do it to some while others didnt get it.. seems kind of random who got it.. but so far I have logged 3 of my toons and have not been spammed with it..

Code:
rsbot [2007-05-01 14:04:36]     [BUDDY] [LOG]   Nytridra logged [on] (OWNER)
rsbot [2007-05-01 14:04:37]     [GROUP] [MSG]   [Rising Sun (AoF)] Rsbot: "Nytri
dra" (Lvl 164 / 9 (Mediocre) Agent Squad Commander) logged on :: [link]Metanyt's
 Alts[/link]
rsbot [2007-05-01 14:04:45]     [TELL]  [OUT]   -> Nytridra: 13 members online i
n Guild. 0 members in Privategroup. :: [link]click to view[/link]
rsbot [2007-05-01 14:04:45]     [TELL]  [OUT]   -> Nytridra: /tell rsbot !help


okay seen it again.. this time it was only 2 times instead of 20 times.. so its getting better..

Code:
rsbot [2007-05-01 14:14:22]     [BUDDY] [LOG]   Mysticnyts logged [on] (LEADER)
rsbot [2007-05-01 14:14:23]     [GROUP] [MSG]   [Rising Sun (AoF)] Rsbot: Heaven
ly "Mysticnyts" Angel (Lvl 181 / 11 (Able) Adventurer Squad Commander) logged on
 :: [link]Nytsangel's Alts[/link]  ::  You hit Heckler of Harmony for 8335 point
s of Backstab damage.
rsbot [2007-05-01 14:14:34]     [TELL]  [OUT]   -> Mysticnyts: 16 members online
 in Guild. 0 members in Privategroup. :: [link]click to view[/link]
rsbot [2007-05-01 14:14:34]     [TELL]  [OUT]   -> Mysticnyts: /tell rsbot !help

rsbot [2007-05-01 14:14:34]     [TELL]  [OUT]   -> Mysticnyts: 16 members online
 in Guild. 0 members in Privategroup. :: [link]click to view[/link]
rsbot [2007-05-01 14:14:34]     [TELL]  [OUT]   -> Mysticnyts: /tell rsbot !help


« Last Edit: May 01, 2007, 09:17:45 AM by Nytridr » Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #6 on: May 01, 2007, 04:39:00 PM »

Okay that seems to of fixed it.. People still get the !online at logon.. but they are not getting spammed..
Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: online is spaming
« Reply #7 on: May 02, 2007, 02:51:01 AM »

The online spam is created by modules/LogonNotify_GUILD.php.

What did you modify to remove the spamming? Something in the SVN files or something in a custom file?
Logged
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #8 on: May 02, 2007, 12:54:06 PM »

the only thing i did was renamed modules/LogonNotify_GUILD.php  to modules/_LogonNotify_GUILD.php  which stopped the spamming, but i am still getting the online list at logon..i have everything orgional..  but i do run 4 org bots with a shared !online database..  not sure if that has anything to do with it..
Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: online is spaming
« Reply #9 on: May 02, 2007, 12:58:09 PM »

The only module spamming online should be LogonNotify_GUILD.php...

Will check when I find time.

And no, shared online DB shouldn't matter much, running it here too and I get no online spam.
Logged
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #10 on: May 02, 2007, 04:11:50 PM »

k.. I will look through and see if I have any custom files still in place.. when I first started having problems I backed everything up and deleted everything except the conf folder.. or I thought.. I will double check to make sure..
Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #11 on: May 02, 2007, 04:37:51 PM »

I have looked and I do not see any reason why anything should be sent in a tell to anyone in what I have.. I have looked through every file that has anything with "connect" in it and nothing is sending a tell when people log on except for the file I renamed.. IDK.. I did look through the php error log and just from yesterday I have some errrors that may or may not help out..

Code:
[01-May-2007 07:57:31] PHP Warning:  array_keys(): The first argument should be an array in C:\aobots\RS\rsbot\modules\MassMsg.php on line 118
[01-May-2007 08:00:12] PHP Warning:  array_keys(): The first argument should be an array in C:\aobots\RS\rsbot\modules\MassMsg.php on line 118
[01-May-2007 08:25:11] PHP Warning:  Invalid argument supplied for foreach() in C:\aobots\RS\rsbot\modules\IRC.php on line 698
[01-May-2007 08:25:11] PHP Warning:  ksort() expects parameter 1 to be array, null given in C:\aobots\RS\rsbot\modules\IRC.php on line 700
[01-May-2007 08:25:11] PHP Warning:  Invalid argument supplied for foreach() in C:\aobots\RS\rsbot\modules\IRC.php on line 702
[01-May-2007 15:32:57] PHP Warning:  Invalid argument supplied for foreach() in C:\aobots\RS\rsbot\modules\IRC.php on line 698
[01-May-2007 15:32:57] PHP Warning:  ksort() expects parameter 1 to be array, null given in C:\aobots\RS\rsbot\modules\IRC.php on line 700
[01-May-2007 15:32:57] PHP Warning:  Invalid argument supplied for foreach() in C:\aobots\RS\rsbot\modules\IRC.php on line 702

I am just throwing everything in here maybe something will catch your eye.. I would like to get back to my custom IRC file but untill we get this figured out I am sticking with the default ones.. I will attach a text file with a list of all files I have and where.. maybe something I missed.. ..

okay here is a txt file with my bot directory ..
http://metanyt.homeip.net:8888/bebot/version_3/rsbot-dir.txt
« Last Edit: May 02, 2007, 04:50:42 PM by Nytridr » Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: online is spaming
« Reply #12 on: May 02, 2007, 05:19:12 PM »

You got two online files running, core/OnlineDB.php with module/OnlineDisplay.php for the table based version, and core/Online.php for the outdated array based version no longer in SVN.

About those errors - neither MassMsg.php nor IRC were adapted to the new online table, both were still trying to use the old arrays. As that array no longer exists you got those warnings.
I've edited both files to use the tables I think, at least the code compiles. As I'm not using IRC at all nor mass messeges I couldn't test it.
Logged
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #13 on: May 02, 2007, 05:33:56 PM »

Quote from: Alreadythere on May 02, 2007, 05:19:12 PM
You got two online files running, core/OnlineDB.php with module/OnlineDisplay.php for the table based version, and core/Online.php for the outdated array based version no longer in SVN.



awesome.. had a feeling I missed something.. that took care of showing the online during log on..I also renamed the LogonNotify_GUILD.php  and going to test to see if it still spams.. now that the core/online.php is gone..


okay with logonnotify_guild.php back in I get the !online 2x's...

Code:
[Rsbot]: 20 members online in Guild. 0 members in Privategroup. :: click to view
[Rsbot]: /tell rsbot !help
[Rsbot]: 20 members online in Guild. 0 members in Privategroup. :: click to view
[Rsbot]: /tell rsbot !help

I think this problem is somewhere else.. not in the logonnotify_guild.php.. I was having a problem in another thing I was trying to make which I have stoped because I couldnt get past the double postings of things.. I am woundering if something in bot.php isnt right...

http://bebot.shadow-realm.org/index.php/topic,752.0.html

that was why I was trying to sent to org chat with out the bot processing them.. this could be the same problem..
« Last Edit: May 02, 2007, 05:54:01 PM by Nytridr » Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: online is spaming
« Reply #14 on: May 02, 2007, 06:07:13 PM »

Quote from: Alreadythere on May 02, 2007, 05:19:12 PM
About those errors - neither MassMsg.php nor IRC were adapted to the new online table, both were still trying to use the old arrays. As that array no longer exists you got those warnings.
I've edited both files to use the tables I think, at least the code compiles. As I'm not using IRC at all nor mass messeges I couldn't test it.

They work.. ty.. now if you could put in there a setting for RAW mode or normal mode.. where sending to IRC with out any conversions of items and everything else.... and also something like what I did here...

Code:
$maxcharsallowed = 457;
$maxcharsexceeded = ("Your message contained " . strlen($msg) . " Characters.  Max characters allowed: " . $maxcharsallowed);

if (strlen($msg) <= $maxcharsallowed)  //checks to see if the max allowed IRC message has been reached and if so sends a msg back to guild chat saying so
that would stop long scripts and stuff like that from being messed up and being sent over to IRC.. but this should probably be somewhere else.. I can let ya see my custom IRC file if you would like.. it has all that in it.. and you could adapt it to the IRC in an offical way..Smiley
« Last Edit: May 02, 2007, 07:41:59 PM by Nytridr » Logged

Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)
Pages: [1] 2 3   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: online is spaming
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 8
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 13
Total: 14
Whackoeng

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.202 seconds with 30 queries. (Pretty URLs adds 0.03s, 4q)
Loading...