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 01, 2008, 12:29:31 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: spaming org with person logged off on restart
Pages: [1]   Go Down
« previous next »
Print
Author Topic: spaming org with person logged off on restart  (Read 627 times)
0 Members and 1 Guest are viewing this topic.
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
spaming org with person logged off on restart
« on: April 18, 2007, 11:10:02 PM »

I fully updated to the latest svn on my test bot.. and any time I restart the bot it will go through and spam the org chat with this or that person has logged off and logged on..

I have tried to drop user, online, whois tables and it still does it.. and there are no errors on the cousol or in the logs..

Metanyt

oh and one more thing.. !help dont bring anything but a blank blob with just a few sets of text and under the first one is help..   there are no other commands under it.. not sure if I missed something on that one.. or if it is still being updated
« Last Edit: April 18, 2007, 11:13:29 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: spaming org with person logged off on restart
« Reply #1 on: April 19, 2007, 11:18:13 AM »

Something is fishy there, yeah.

Haven't found the time to check the core/Roster.php, core/User.php and Bot.php yet what's actually happening.
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: spaming org with person logged off on restart
« Reply #2 on: April 19, 2007, 12:01:52 PM »

The new notify module does not appear to set the "notify" field in the users table automagically to true (1) even for members. I haven't looked at that module at all but I am guessing it's a simple fix.

As for help it should be working for the majority of commands in the svn (as of version 0.3.svn.475) unless it has been inadvertantly broken after that.

Please tell me exactly what is output when you /tell <botname> !help or which commands are reported as having help but not showing anything useful.

Hope that helps.
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: spaming org with person logged off on restart
« Reply #3 on: April 19, 2007, 12:05:28 PM »

Quote from: Blueeagle on April 19, 2007, 12:01:52 PM
The new notify module does not appear to set the "notify" field in the users table automagically to true (1) even for members. I haven't looked at that module at all but I am guessing it's a simple fix.
Yeah, I'm guessing the same. Just haven't had the time to get all mysql queries logged and do a roster update.
Logged
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: spaming org with person logged off on restart
« Reply #4 on: April 19, 2007, 04:28:31 PM »

Well with the new update from this morning..(for me at least) this is what I got

-- Commands usable in tell --
afk help relay

-- Commands usable in gc --
afk relay

-- Commands usable in pgmsg --
afk relay


maybe I have missed something that was changed, or something..
Logged

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

Gender: Male
Posts: 313



Re: spaming org with person logged off on restart
« Reply #5 on: April 19, 2007, 05:09:16 PM »

Check your access levels against the set access levels for the commands (If you tell !commands to the bot you will get the interface). The !help only shows help for commands that you've got access to.

Edit: To get your current access level /tell <botname> !security whoami
« Last Edit: April 19, 2007, 05:12:15 PM by Blueeagle » Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: spaming org with person logged off on restart
« Reply #6 on: April 19, 2007, 08:05:45 PM »

The toon I am checking it on is Owner.. and all my alts are listed as superadmin in the bot.conf.. but I will check to see if it is reading it correctly when I have a chance later tonight..
Logged

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

Gender: Male
Posts: 313



Re: spaming org with person logged off on restart
« Reply #7 on: April 20, 2007, 12:29:55 AM »

Please also try
Code:
!useradd <name> superadmin
If that fixes it we'll need to look into how bot.conf is being added. There has been changes made to the security and security groups in-game and perhaps bot.conf doesn't correctly put users there.

I haven't looked at that code eiter, so I might be mistaking.

If that does not fix it open modules/Bid.php and check that the constructor looks like this:
Code:
        /*
        Constructor:
        Hands over a referance to the "Bot" class.
        */
        function Bid (&$bot)
        {
                $this -> bot = &$bot;
                $this -> bid = "";

                $this -> bot -> accesscontrol -> create('tell', 'bid', 'MEMBER');
                $this -> bot -> accesscontrol -> create('gc', 'bid', 'MEMBER');
                $this -> bot -> accesscontrol -> create('pgmsg', 'bid', 'MEMBER');

                $this -> help['description'] = "Handles auctions using raid points";
                $this -> help['command']['bid start <item>'] = "Starts an auction for <item>. <item> can be text or an item ref.";
                $this -> help['command']['bid <points>'] = "Bid <points> raid points for the item currently on auction.";
                $this -> help['command']['bid info'] = "Shows information about the current auction.";
        }

Also check that you aren't using any custom modules (ie got a custom/modules/Bid.php) as they are most likely not updated for the new help system. To make them compatible copy the lines that read $this -> help... from the official module into the constructor of the custom module.

Edit: And finally when you do "svn update" it should (atleast it does in the *nix version) state which version it updates to. Which version is that?

Hope that helps.
« Last Edit: April 20, 2007, 12:31:50 AM by Blueeagle » Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Nytridr
Expert
*****
Offline Offline

Gender: Male
Posts: 261


WWW
Re: spaming org with person logged off on restart
« Reply #8 on: April 20, 2007, 01:02:26 AM »

To [Aoftest]: !adduser metanyt superadmin
[Aoftest]: Added Metanyt to group superadmin.
To [Aoftest]: !help
[Aoftest]: Help

Code:
-- Commands usable in tell --
afk help relay

-- Commands usable in gc --
afk relay

-- Commands usable in pgmsg --
afk relay

still the same thing ?? wierd..

nope bid.php didnt look like that.. I recopied it over to my test bot.. and guess what.. IT WORKS.. TYTYTY

Now to see if that also fixs my custom mod that I am making and see if it works now..Smiley 
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: spaming org with person logged off on restart
« Reply #9 on: April 20, 2007, 03:49:50 AM »

Roster updates should set notify correctly now, was a stupid typo
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: spaming org with person logged off on restart
« Reply #10 on: April 20, 2007, 08:43:31 PM »

Quote from: Nytridr on April 20, 2007, 01:02:26 AM
Now to see if that also fixs my custom mod that I am making and see if it works now..Smiley 

The format for help is really simple and an example can be found in modules/_Examplemodule.php

If you're too lazy to look it up here's the good stuff:
Code:
function ClassName (&$bot)
{
$this -> bot = &$bot;
$this -> create_tables();
$this -> set_access();
$this -> create_settings();
$this -> create_help();
}

function create_tables()
{
$query = "CREATE TABLE IF NOT EXISTS ".$this -> bot -> db -> define_tablename('example_table'. true);
$query.= "(ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, ";
$query.= "Field1 VARCHAR(40), ";
$query.= "Field2 VARCHAR(29))";
$this -> bot -> db -> query($query);
}

function set_access()
{
$this -> bot -> access_control -> create ('tell', 'command', 'GUEST');
$this -> bot -> access_control -> create ('gc', 'command', 'ADMIN');
$this -> bot -> access_control -> create ('pgmsg', 'command', 'MEMBER');
}

function create_settings()
{
$this -> bot -> set -> create('module', 'setting', 'default', 'description of setting', 'option1;option2;option3');
}

function create_help()
{
$this -> help['description'] = 'Description of the module';
$this -> help['command']['command1']="What does command1 do without any keywords";
$this -> help['command']['command1 keyword'] = "What does command1 do with keyword";
$this -> help['command']['command2 keyword <param>'] = "What does command2 do with <param>";
$this -> help['notes'] = "Notes for the help goes in here.";
}

Hope that helps.
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: spaming org with person logged off on restart
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Alreadythere
[Today at 11:42:32 AM]

Shared DB online list
by Temar
[Today at 01:55:47 AM]

relay colors
by Temar
[Today at 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: 11143
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 15
Total: 19
egrath
Temar
gerborg

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.194 seconds with 28 queries. (Pretty URLs adds 0.032s, 4q)
Loading...