BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.3.x Custom/Unofficial Modules => Topic started by: Temar on July 17, 2007, 10:39:59 pm

Title: AutoMsg.php
Post by: Temar on July 17, 2007, 10:39:59 pm
AutoMsg

This is Like a cross between !announce and !news

it will send a msg to every 1 online and save the msg and then send it to other members when they log on.
u can do as many messages as you want.
a message will only be sent once.
messages can be deleted at any time.

it Now Only Sends the Message to 1 Alt

!automsg - Show messages
!automsg add <msg> - Add msg and send to members online
!automsg del <ID> - Delete message
!automsg rem <ID> - Delete message

Change Log


Moved to 0.4 Board Clicky (http://bebot.link/index.php/topic,891)
Title: Re: AutoMsg.php
Post by: Nytridr on July 21, 2007, 12:13:39 am
Code: [Select]
Fatal error: Cannot use string offset as an array in C:\aobots\Bebot\custom\modu
les\AutoMsg.php on line 100

Code: [Select]
MySQL error (# 0) on query: ALTER TABLE rsbot_users ADD `lastmsg` TINYINT(5) DEF
AULT '0' NOT NULL
Duplicate column name 'lastmsg'

I can
Code: [Select]
//$db -> query("ALTER TABLE  #___users ADD `lastmsg` TINYINT(5) DEFAULT '0' NOT NULL");
 
  to get rid if the the last error, but I think the fatal you get to have fun with it..  This is using the latest svn, would love to have this included in svn along with !mail 
Title: Re: AutoMsg.php
Post by: Alreadythere on July 21, 2007, 12:39:42 am
would love to have this included in svn along with !mail
Won't happen before 0.4 is released though ;)
Title: Re: AutoMsg.php
Post by: Temar on July 21, 2007, 01:37:55 am
Bugs Fixed

It will now only attempt to Alter the Table and add the Extra field if it doesnt exist( this error will apear if you have no members tho)

Quote
Fatal error: Cannot use string offset as an array in C:\aobots\Bebot\custom\modu
les\AutoMsg.php on line 100
Should now be fixed (untested)
Title: Re: AutoMsg.php
Post by: Nytridr on July 21, 2007, 02:43:07 am
Bugs Fixed

It will now only attempt to Alter the Table and add the Extra field if it doesnt exist( this error will apear if you have no members tho)

Quote
Fatal error: Cannot use string offset as an array in C:\aobots\Bebot\custom\modu
les\AutoMsg.php on line 100
Should now be fixed (untested)

so far so good.. i will keep testing it but at least it loads up and dont do fatal errors anymore..
Title: Re: AutoMsg.php
Post by: Temar on July 25, 2007, 05:22:43 am
Now useing Cache for Messages
SimplePortal 2.3.7 © 2008-2024, SimplePortal