BeBot - An Anarchy Online and Age Of Conan chat automaton
General => General discussion => Topic started by: snyder on August 16, 2009, 02:52:56 pm
-
i dont know if this exists or not, but since i didnt find it, i made my own member and alt delete script.
its small, simple, ugly, but works :)
http://www.cro-guild.com/razno/usermanager.zip
just run it from computer where bebot is.
you need to change 2 main things for this to work
database access
private $dbname = 'bebot'; // database name
private $dbpass = ''; // database password
private $dbuser = 'root'; // database username
private $dbserv = 'localhost';// database server
bot name in small letters
// bot name
private $botname = 'shonjo';
in include/usermanager.class.php
njoy, and feel free to make it even better and post updates!
bruno
-
hi m8, think it looks nice, but it doesnt work for me,
File: usermanager.class.php
Line: 57
Message: Error on query!!
SQL:
select count(u.id) as num from aocbot_users as u
MySQL error: Table 'bot.aocbot_users' doesn't exist
MySQL error number: 1146
The db name is bot.
the name of the bot is embot.
But in my DB
Server: localhost Database: bot Table: aocbot__users
I do something wrong?
thnx,
Jih.
-
wrong bot name? :)
if its embot then
Server: localhost Database: bot Table: [b]embot[/b]_users
post those 5 config lines
-
got it working, nice work m8 and thnx for the help.
Cheerz
Jih.
-
updated with checkboxes for each alt char (when you select one from list to delete)
it should work (didnt test it yet, but it was minor change)
njoy,
bruno
-
Thanks for the change m8, i made it password protected, so not all people can delete people.
http://www.enragedmessiahs.nl/download/usermanager.rar (http://www.enragedmessiahs.nl/download/usermanager.rar)
Just open password_protect.php and change the logins and passwords.
Cheerz Jih.
-
Haven't tested it, but sounds like a nice idea.
Just one sidenote: the changes won't be active for the bot until the next time the members and alts table are read into the caches again. Alts are done once per hours, I don't know about the members caches offhand though.
-
We should probably provide a way to force the bot to reload settings/cache in the future allowing for better integration with a web interface.
-
i updated script a little. now there is nothing to config in usermanager.class.php, all is written in config.php in root.
i added user login (sry jih :P) and users are also added in config.php
please report bugs if any :)
p.s. link is still same in first post
njoy,
bruno