|
jjones666
|
 |
« on: October 27, 2006, 04:34:52 PM » |
|
http://www.jjones.co.uk/files/autoinv.phphttp://www.jjones.co.uk/files/relay_guild.phphttp://www.jjones.co.uk/files/alert.phpJust 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 hereInformation if autoinvite isn't working:Here
|
|
|
|
« Last Edit: January 27, 2007, 09:04:38 PM by jjones666 »
|
Logged
|
|
|
|
|
buff
|
 |
« Reply #1 on: November 08, 2006, 03: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)
|
|
|
|
|
Logged
|
|
|
|
|
jjones666
|
 |
« Reply #2 on: November 08, 2006, 08:14:22 AM » |
|
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... 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]; }
|
|
|
|
|
Logged
|
|
|
|
|
buff
|
 |
« Reply #3 on: November 14, 2006, 07:50:30 PM » |
|
works now, thnx jj 
|
|
|
|
|
Logged
|
|
|
|
Llesa
Freshman
Offline
Posts: 1
|
 |
« Reply #4 on: November 26, 2006, 10:12:42 AM » |
|
Hi  I've been trying to download this module but the link seems to be broken. Is there any other place I can try?
|
|
|
|
|
Logged
|
|
|
|
|
jjones666
|
 |
« Reply #5 on: November 26, 2006, 12:15:32 PM » |
|
Should work now I hope.
-jj-
|
|
|
|
|
Logged
|
|
|
|
|
pusikas
|
 |
« Reply #6 on: December 21, 2006, 10:46:27 AM » |
|
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. 
|
|
|
|
|
Logged
|
Luuv Bot-Keeper of Vengeance ^^*
|
|
|
|
Malosar
|
 |
« Reply #7 on: December 21, 2006, 10:57:15 AM » |
|
|
|
|
|
|
Logged
|
Eternalist General of The Syndicate
|
|
|
|
pusikas
|
 |
« Reply #8 on: December 21, 2006, 11:03:23 AM » |
|
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.
|
|
|
|
|
Logged
|
Luuv Bot-Keeper of Vengeance ^^*
|
|
|
|
|
|
|
|
jjones666
|
 |
« Reply #11 on: January 17, 2007, 02:33:44 AM » |
|
Autoinv.php was updated - same link applies.
-jj-
|
|
|
|
|
Logged
|
|
|
|
ghostimage
Freshman
Offline
Posts: 13
|
 |
« Reply #12 on: January 17, 2007, 06:59:38 AM » |
|
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, 07:01:58 AM by ghostimage »
|
Logged
|
|
|
|
|
pusikas
|
 |
« Reply #13 on: January 17, 2007, 07:01:49 AM » |
|
No, you are probably missing the new settings module. Scroll 3 posts up. 
|
|
|
|
|
Logged
|
Luuv Bot-Keeper of Vengeance ^^*
|
|
|
ghostimage
Freshman
Offline
Posts: 13
|
 |
« Reply #14 on: January 17, 2007, 07:02:46 AM » |
|
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).
|
|
|
|
|
Logged
|
|
|
|
|