BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.2.x Custom/Unofficial Modules => Topic started by: Alreadythere on September 15, 2005, 05:54:11 pm

Title: Settings interface (rewritten/extended)
Post by: Alreadythere on September 15, 2005, 05:54:11 pm
I've moved my get_/set_setting() functions in a dedicated core/ module, and added a define() function.

Save this file as .php (http://www.m8y.de/ao/bebot/Settings.phps)

Usage is
$this -> bot -> settings -> get($name) to read setting $name
$this -> bot -> settings -> set($name, $value) to set setting $name to the value $value
$this -> bot -> settings -> define($name, $value) to set setting $name to the value $value

No need to edit the Bot.php for the settings functions anymore.

The module does need my $this -> bot -> get_tablename() function though.
Title: Re: Settings interface (rewritten/extended)
Post by: Alreadythere on June 01, 2006, 02:05:21 pm
Rewrote the module, added interface to read/set/define settings.
Title: Re: Settings interface (rewritten/extended)
Post by: Xenixa on June 05, 2006, 12:50:39 am
Oooooh.. nice, I likey!
SimplePortal 2.3.7 © 2008-2024, SimplePortal