BeBot - An Anarchy Online and Age Of Conan chat automaton

General => News => Topic started by: Alreadythere on May 29, 2008, 03:27:43 pm

Title: BeBot v0.5.2 released (development version)
Post by: Alreadythere on May 29, 2008, 03:27:43 pm
This development version has several internal clean-ups, removing old structures. Besides that it offers a few bugfixes since 0.5.1. Most notable change is the move of autoinvite and mass-message settings for the users over to the preferences - which are defined on a per-user-base anyways.

Downloads
[BeBot 0.5.2 Zip Archive (http://bebot.link/tpmod/?dl=item26)]
[BeBot 0.5.2 Tar.gz Archive (http://bebot.link/tpmod/?dl=item27)]

Changelog to 0.5.1:
- Moved auto-invites to preferences
- Moved recieving mass-announcements and mass-invites to preferences and these settings are now honored.
- Added repeat interval to !timers output.
- !timers is now an alias for !timer, !timer without any argument lists all current timers too now.
- Settings del() now does a SQL query if called for a specific setting of a module.
- All functions in Preferences enforce lower-case for module and setting names.
- Added exists() function to preferences.
- Autoinvite is no longer set when adding users, it's fully controlled via preferences and settings.
- The minimum access level needed to receive MassMsgs is defined by a setting now. Default it GUEST.
- Autoinvite no longer spams people already in the private chat group.
- send_output() now logs wrong channel types, instead of trying to send tells.
- AlienAttack module creates correct output in gmsg() parsing now.
- Added Option to not use que when calling core("chat") -> buddy_add.
- Botname is ucfirst(strtolower())'ed before passing it to MySQL class.
- modules/Is.php has been re-written to add support for alts look-up

Edit by Blueeagle:
This is a development version of the bot. Please do not use this version as a live bot as it is very likely to be broken. However we do appreciate all help with finding bugs and help fixing them.
Title: Re: BeBot v0.5.2 released (development version)
Post by: clashbot on May 30, 2008, 12:54:51 pm
getting an error message upon update:

Fatal error: cannot redeclare class Preferences_core in preferences.php on line 239
Title: Re: BeBot v0.5.2 released (development version)
Post by: Alreadythere on May 30, 2008, 02:57:41 pm
Preferences got moved from core directory into main directory. Simply delete the one you got under core/
Title: Re: BeBot v0.5.2 released (development version)
Post by: clashbot on May 30, 2008, 03:07:39 pm
yeah found that out when I was going through the directory structure, just couldn't reply as was on my way to work at the time...almost had me worried  ;)

Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 04:22:36 am
i think massinv is broken.  message goes out but no invite.

plus...

Mass invite beeing sent. Please stand by...

being
Title: Re: BeBot v0.5.2 released (development version)
Post by: Blueeagle on June 01, 2008, 02:50:11 pm
Expected functionality is:
!announce <message> should send a tell to all people whose access level is higher than settings->minaccess.

!massinv <message> should send a tell to all people whose access level is higher than settings->minaccess and whose preferences->MassMsg->recieve_invites is Yes.

The default in the bot is for the preference to be set to 'No'. You can change this default if you have the required access level by looking at !preferences MassMsg. Since the setting only has two options changing the default will make everybody recieve mass invites until the people that doesn't want mass invites changes their preferences to 'No'.

Edit: Default setting in SVN is now for recieve_invite as 'Yes'.
Edit2: I think the 'beeing' was a pun to find out what the buzz is about. :p

I hope that helps.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 06:03:34 pm
well that makes sense, but how sure are you it works?  this was with the old... wait... i'll try the 7 second old SVN first. :p



bot [2008-06-01 15:59:32]     [TELL]  [INC]   Dracutza: member
bot [2008-06-01 15:59:32]     [TELL]  [OUT]   -> Dracutza: 2 members in bot :: [link]click to view[/link]
bot [2008-06-01 15:59:42]     [TELL]  [INC]   Dracutza: !massinv IS THIS WORKING?
bot [2008-06-01 15:59:42]     [TELL]  [OUT]   -> Dracutza: Mass invite being sent. Please stand by...
bot [2008-06-01 15:59:42]     [TELL]  [OUT]   -> Dracutza: Done sending mass invite.
bot [2008-06-01 15:59:51]     [TELL]  [INC]   Dracutza: !announce LOOKS LIKE NO
bot [2008-06-01 15:59:51]     [TELL]  [OUT]   -> Dracutza: Mass message being sent. Please stand by...
bot [2008-06-01 15:59:51]     [TELL]  [OUT]   -> Dracutza: Done sending the mass message.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 06:09:21 pm
nope

bot [2008-06-01 16:07:16]     [TELL]  [INC]   Dracutza: member add Mewreck
bot [2008-06-01 16:07:16]     [BUDDY] [BUDDY-ADD]     Mewreck
bot [2008-06-01 16:07:16]     [TELL]  [OUT]   -> Mewreck: Dracutza has added you to the bot.
bot [2008-06-01 16:07:16]     [TELL]  [OUT]   -> Dracutza: Player Mewreck has been added to the bot as a member
bot [2008-06-01 16:07:16]     [BUDDY] [LOG]   Mewreck logged [on] (MEMBER)
bot [2008-06-01 16:07:24]     [TELL]  [INC]   Dracutza: member add dracutza
bot [2008-06-01 16:07:24]     [BUDDY] [BUDDY-ADD]     Dracutza
bot [2008-06-01 16:07:24]     [TELL]  [OUT]   -> Dracutza: Dracutza has added you to the bot.
bot [2008-06-01 16:07:24]     [TELL]  [OUT]   -> Dracutza: Player Dracutza has been added to the bot as a member
bot [2008-06-01 16:07:24]     [BUDDY] [LOG]   Dracutza logged [on] (OWNER)
bot [2008-06-01 16:07:31]     [TELL]  [INC]   Dracutza: announce hi hi hi
bot [2008-06-01 16:07:31]     [TELL]  [OUT]   -> Dracutza: Mass message being sent. Please stand by...
bot [2008-06-01 16:07:31]     [ERROR] [OnlineDB_Core] Undefined function list_users(Both)!
string(207) "Message from ##highlight##Dracutza##end##: hi hi hi ##seablue##You can disable reciept of mass messages and invites in the##end## <a ref='chatcmd:///tell bot <pre>preferences show massmsg'>preferences</a>"

Warning: Invalid argument supplied for foreach() in E:\bots\modules\MassMsg.php
on line 104

Warning: Invalid argument supplied for foreach() in E:\bots\modules\MassMsg.php
on line 134
bot [2008-06-01 16:07:31]     [TELL]  [OUT]   -> Dracutza: Mass messages compl
ete. [link]report[/link]
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 06:14:43 pm
by adding the fic to online DB it sends the massinv text twice to eachmember, but still no actual invite

Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 06:31:31 pm
something else that is either new, or possibly something I've never noticed before...

this is a new bot install, using an existing name.. so an in-game buddy list already exists.  As of 1646, MassInv sends msgs to not only the two members I added to the bot, but also goes and spams all "old" members still on the in-game buddy list.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 07:07:28 pm
Fatal error: Cannot redeclare class Preferences_GUI in E:\bots\modules\PreferencesUI.php on line 66


Title: Re: BeBot v0.5.2 released (development version)
Post by: Blueeagle on June 01, 2008, 07:48:56 pm
Fatal error: Cannot redeclare class Preferences_GUI in E:\bots\modules\PreferencesUI.php on line 66
remove modules/Preferences.php

On a different note MassMsg.php has been overhauled. Preferences should now be heeded in a more sane fashion (I think)
Title: Re: BeBot v0.5.2 released (development version)
Post by: Blueeagle on June 01, 2008, 07:55:42 pm
something else that is either new, or possibly something I've never noticed before...

this is a new bot install, using an existing name.. so an in-game buddy list already exists.  As of 1646, MassInv sends msgs to not only the two members I added to the bot, but also goes and spams all "old" members still on the in-game buddy list.
Has a roster update been done?
!massinv checks the online-table and should only send messages and invites to people that are registered as online in either gc or pg.

As such a roster update should remove the people from the buddy list and also set their status_gc and status_pg to 0.

If it's not done by !rosterupdate it should be fixed by a !restart I think.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 08:06:01 pm
still spamming multiple and members not in DB

Quote
[2008-06-01 18:04:57]   [TELL]   [INC]   Dracutza: rosterupdate
[2008-06-01 18:04:57]   [TELL]   [OUT]   -> Dracutza: Starting roster update.
[2008-06-01 18:04:57]   [ROSTER]   [UPDATE]   Starting roster update
[2008-06-01 18:04:57]   [CRON]   [ROSTER]   Done updating roster. Removed 0 members of which 0 was rerolled characters.
[2008-06-01 18:04:57]   [CRON]   [ROSTER]   Cleaning buddylist.
[2008-06-01 18:04:57]   [SETTINGS]   [SAVED]   LastRosterUpdate for module members set to 1212343497 as datatype int
[2008-06-01 18:04:57]   [CRON]   [ROSTER]   Cleaning buddylist done. 0 buddies removed.
[2008-06-01 18:04:57]   [PGRP]   [MSG]   [SPAMBOT] SPAMBOT: Roster update starting ::: System busy
[2008-06-01 18:04:57]   [PGRP]   [MSG]   [SPAMBOT] SPAMBOT: Roster update completed ::: System ready
[2008-06-01 18:05:03]   [TELL]   [INC]   Dracutza: member
[2008-06-01 18:05:03]   [TELL]   [OUT]   -> Dracutza: 1 members in Pocom :: [link]click to view[/link]
[2008-06-01 18:05:04]   [SETTINGS]   [LOAD]   Loaded settings from database.
[2008-06-01 18:05:04]   [ROSTER]   [UPDATE]   Roster update ran less than 6 hours ago, skipping!
[2008-06-01 18:05:04]   [PGRP]   [MSG]   [SPAMBOT] SPAMBOT: Bot is online ::: Roster update not scheduled ::: System ready
[2008-06-01 18:05:24]   [TELL]   [INC]   Dracutza: announce spam YES MOAR
[2008-06-01 18:05:24]   [TELL]   [OUT]   -> Dracutza: Mass message being sent. Please stand by...
[2008-06-01 18:05:24]   [TELL]   [OUT]   -> Angalicious: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:24]   [TELL]   [OUT]   -> Delkaton: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:24]   [TELL]   [OUT]   -> Dracutza: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:28]   [TELL]   [OUT]   -> Dracutza: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:31]   [TELL]   [OUT]   -> Dracutza: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:31]   [TELL]   [OUT]   -> Dracutza: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:34]   [TELL]   [OUT]   -> Flagube: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:37]   [TELL]   [OUT]   -> Kermaperuna: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:40]   [TELL]   [OUT]   -> Kermaperuna: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
[2008-06-01 18:05:40]   [TELL]   [OUT]   -> Krazmedic: Message from Dracutza: spam YES MOAR
You can disable reciept of mass messages and invites in the Preferences for [link]MassMsg[/link]
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 01, 2008, 08:08:39 pm
however the massinv is now working :)
Title: Re: BeBot v0.5.2 released (development version)
Post by: Blueeagle on June 01, 2008, 08:31:46 pm
That may have happened when you share the online table between bots. I am not sure what would be the preferred way of handling this as it depends on your setup. In a botnet for guild allies !announce and !massinv might want to announce and invite all players in the botnet. However for separate raidbots this is not the best behaviour.

One could ofcourse limit this by $other_bots, as of now however it will only announce to members of the current bot.

If this is not the case for you, I see no solution other than dropping the online table and restarting the bot so it can be re-created.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 02, 2008, 12:01:39 am
autoinvite for guests is broken too?

they get the news spam, the you've been added/removed spam, but no invite when they log on.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Blueeagle on June 02, 2008, 03:03:04 am
autoinvite for guests is broken too?

they get the news spam, the you've been added/removed spam, but no invite when they log on.
Have you checked "!preferences show autoinv" to see that they are set to on? They are off by default.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 02, 2008, 03:45:27 am
ummm... I'm missing preferences??

Quote
To [bot]: !preferences
bot: /tell bot !help

Quote
!oe: [G] [G] [G] [ AN | G | M | L | A | SA | O | D ]
!online: [G] [G] [G] [ AN | G | M | L | A | SA | O | D ]
!pb: [G] [G] [G] [ AN | G | M | L | A | SA | O | D ]
!peter:
  • [ AN | G | M | L | A | SA | O | D ]

!ping:
  • [ AN | G | M | L | A | SA | O | D ]

!points: [N/A] [N/A] [G] [ AN | G | M | L | A | SA | O | D ]
!quote: [G] [G] [G] [ AN | G | M | L | A | SA | O | D ]
!quotes: [G] [G] [G] [ AN | G | M | L | A | SA | O | D ]

Quote
modules news notes notify oe online pb peter ping points quote quotes raffle raid raids rally relaytimer rem remteam remtimer reroll restart roll rosterupdate rtimer say security server setleader settings shortcuts shutdown sm startteam sws symb t2 target teamadmin teamname teams theme time timer tokens tracert trickle verify victory whois whosaidthat
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 02, 2008, 03:48:39 am
[2008-06-02 01:48:44]   [MAIN]   [LOAD]   06_Preferences.php

I have that loading... but the command in the bot produces nothing.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Alreadythere on June 02, 2008, 10:12:07 am
You need modules/Preferences_UI.php too.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 02, 2008, 02:05:20 pm
You need modules/Preferences_UI.php too.

I'll give that a shot later, but then this might pop up again.

Fatal error: Cannot redeclare class Preferences_GUI in E:\bots\modules\PreferencesUI.php on line 66
remove modules/Preferences.php
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 03, 2008, 12:58:11 am
well I was close

[2008-06-02 22:54:23]   [TELL]   [INC]   Dracutza: preferences
[2008-06-02 22:54:23]   [ERROR]   [Preferences_GUI]   Undefined function show_modules(Dracutza)!
[2008-06-02 22:54:23]   [TELL]   [OUT]   -> Dracutza: Error: The module Preferences_GUI returned the error Undefined function show_modules(Dracutza)!
Title: Re: BeBot v0.5.2 released (development version)
Post by: Alreadythere on June 03, 2008, 10:05:37 am
You seem to have a miss-match of preferences UI and preferences main file.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 03, 2008, 04:02:41 pm
You seem to have a miss-match of preferences UI and preferences main file.

anything else it could be?  I DL'd any files from the SVN that were updated recently.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 05, 2008, 09:11:35 pm
fresh install +all 4 files that are "4 days" old and still that error.
Title: Re: BeBot v0.5.2 released (development version)
Post by: Temar on June 06, 2008, 07:01:57 am
Fixed
Title: Re: BeBot v0.5.2 released (development version)
Post by: Dracutza on June 07, 2008, 12:00:26 am
yeap, error gone now.

it seems though that guests do not get a auto invite even if bot is configured as such.  still testing this for verification.
SimplePortal 2.3.7 © 2008-2024, SimplePortal