Archive > 0.3.x Custom/Unofficial Modules

AutoMsg.php

(1/2) > >>

Temar:
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


* 18/07/07 - Added Alts Feature and Removed Bug were you had to have atleast 2 words in the msg
* 20/07/07 - Fixed 2 Bugs (see topic)
* 25/07/07 - Now useing cache for messages
* 25/07/07 - Added a Check to see if Loging on or Off
Moved to 0.4 Board Clicky

Nytridr:

--- Code: ---Fatal error: Cannot use string offset as an array in C:\aobots\Bebot\custom\modu
les\AutoMsg.php on line 100
--- End code ---


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

I can
--- Code: ---//$db -> query("ALTER TABLE  #___users ADD `lastmsg` TINYINT(5) DEFAULT '0' NOT NULL");
 
--- End code ---
  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 

Alreadythere:

--- Quote from: Nytridr on July 21, 2007, 12:13:39 am ---would love to have this included in svn along with !mail
--- End quote ---
Won't happen before 0.4 is released though ;)

Temar:
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

--- End quote ---
Should now be fixed (untested)

Nytridr:

--- Quote from: 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

--- End quote ---
Should now be fixed (untested)

--- End quote ---

so far so good.. i will keep testing it but at least it loads up and dont do fatal errors anymore..

Navigation

[0] Message Index

[#] Next page

Go to full version