collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Autoinvite and alert plugin discussion.  (Read 7703 times)

0 Members and 1 Guest are viewing this topic.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« on: October 27, 2006, 11:34:52 pm »
http://www.jjones.co.uk/files/autoinv.php
http://www.jjones.co.uk/files/relay_guild.php
http://www.jjones.co.uk/files/alert.php

Just some little cosmetic things I did for our org bot:

- !guestlist is expanded slightly to turn the autoinvite on and off and alert status on and off (see screenshot).
- !alert (works same as autoinv, just notifies on and offline status to GC instead of inviting).
- autoinvite notifies to GC when someone is autoinvited and shows their main toon if available.
- all settings handled via Glarawyn's module (!settings).
- private group -> guild chat relay is now switchable to turn on automatically at bot start.

Requires:

Plugin Name: Persistant Whois cache
Plugin Name: Module settings
Plugin Name: Roster_Guild (modified)
Download information here

Information if autoinvite isn't working:
Here
« Last Edit: January 28, 2007, 03:04:38 am by jjones666 »

Offline buff

  • BeBot User
  • **
  • Posts: 36
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #1 on: November 08, 2006, 09:14:36 am »
Fatal error: Cannot use string offset as an array in D:\Viraid\BeBot_v0.2.5\modules\autoinv.php on line 53

Got this error msg when I turn autoinv.php one :X (using jj's autoinv.php file)

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #2 on: November 08, 2006, 02:14:22 pm »
Hmm, I thought I fixed that already.  I'll need to check copy on the server at home after work.  Did it work before and suddenly not or?

Try replacing whole Autoinv function with code as below, slightly more longwinded but it should achieve same thing...

Code: [Select]
function AutoInv (&$bot)
{
$this -> bot = &$bot;

$result = $this -> bot -> db -> select("SELECT * FROM settings WHERE setting = 'auto_invite'");

if (empty($result))
$this -> bot -> db -> query("INSERT IGNORE INTO settings (setting, value) VALUES ('auto_invite', '0')");

$result = $this -> bot -> db -> select("SELECT * FROM settings WHERE setting = 'auto_invite'");
$this -> auto = $result[0][1];
}

Offline buff

  • BeBot User
  • **
  • Posts: 36
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #3 on: November 15, 2006, 01:50:30 am »
works now, thnx jj ;)

Offline Llesa

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #4 on: November 26, 2006, 04:12:42 pm »
Hi :)

I've been trying to download this module but the link seems to be broken. Is there any other place I can try?

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #5 on: November 26, 2006, 06:15:32 pm »
Should work now I hope.

-jj-

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #6 on: December 21, 2006, 04:46:27 pm »
Is that the updated version talked about in >this< thread? Because to me it seems to be just a copy from the 0.2.10 bot, without the last_seen column. Or maybe I am just doing something wrong here, would not surprise me. :)
Luuv  Bot-Keeper of Vengeance ^^*

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Autoinvite and alert plugin discussion.
« Reply #7 on: December 21, 2006, 04:57:15 pm »
Eternalist
General of The Syndicate

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #8 on: December 21, 2006, 05:03:23 pm »
Yes! I think so, alt least. Was trying to get JJ's modified !alts and !whois to work. Well, it does work right now, but spams about not finding the lastseen column. Will try this out.
Luuv  Bot-Keeper of Vengeance ^^*

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #9 on: January 14, 2007, 01:07:54 am »
http://www.jjones.co.uk/files/autoinv.php
http://www.jjones.co.uk/files/relay_guild.php
http://www.jjones.co.uk/files/alert.php

Just some little cosmetic things I did for our org bot:

- !guestlist is expanded slightly to turn the autoinvite on and off and alert status on and off (see screenshot).
- !alert (works same as autoinv, just notifies on and offline status to GC instead of inviting).
- autoinvite notifies to GC when someone is autoinvited and shows their main toon if available.

obviously requires all of Xen's fixes above - I had to also delete and re-add guests for it to work correctly (hence option in !guestlist to do that) :-)

prolly crap, it's useful to me tho :-)

I updated these again, with a few sanity checks, obviously you shouldn't be able to add someone to notify/alert list without them being on the guestlist first :-)

http://www.jjones.co.uk/files/autoinv.php
http://www.jjones.co.uk/files/alert.php

-jj-

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #10 on: January 17, 2007, 01:46:55 am »
Converted alert.php and autoinv.php to use Glara's new module settings plugin for all settings.

Above links apply.

-jj-

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #11 on: January 17, 2007, 08:33:44 am »
Autoinv.php was updated - same link applies.

-jj-

Offline ghostimage

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #12 on: January 17, 2007, 12:59:38 pm »
Fatal error: Call to a member function create() on a non-object in C:\Temp\BeBot
-php_v5.1.5\BeBot-php_v5.1.4\modules\Alert.php on line 52

Same error on both Alert.php and AutoInv.php - I guess I'm missing some small tweak in bot.php somewhere?

*edit* Here's the line in question:

   $this -> bot -> set -> create ($module, "status", FALSE, $longdesc, "On;Off", FALSE, $disporder=1);
« Last Edit: January 17, 2007, 01:01:58 pm by ghostimage »

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #13 on: January 17, 2007, 01:01:49 pm »
No, you are probably missing the new settings module. Scroll 3 posts up.  ;)
Luuv  Bot-Keeper of Vengeance ^^*

Offline ghostimage

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Autoinvite and alert plugin discussion.
« Reply #14 on: January 17, 2007, 01:02:46 pm »
No, you are probably missing the new settings module.

Nope, got that up and running. No problems with it that I've seen so far (checked the db and it's got the settings table etc).

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 682
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal