BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: Hyde on August 23, 2007, 06:19:51 pm

Title: Using another org for Permissions?
Post by: Hyde on August 23, 2007, 06:19:51 pm
I'm wondering if this can be done via Flex?

I have 2 orgbots, 1 for my main org and 1 for our sister org.

Ranks in the sister org are a bit of a mess because we let people have SC to run their own AI raids.

I'd like to set up the sister org bot to use the ranks of our main org to determine admin levels (in combination with alts, which are shared between the 2 bots).

It already works for -me- because I'm the owner of both bots and have alts set. But I'd like Generals in the main org to get the same permissions in the 2nd bot, too.

Title: Re: Using another org for Permissions?
Post by: Alreadythere on August 23, 2007, 08:37:46 pm
It can be done using the flexible security, yes.


That should be all, now try !security whois somegeneral to test it.
Title: Re: Using another org for Permissions?
Post by: Hyde on August 24, 2007, 01:19:25 am
Thanks :)

Documenting the following in case someone else wants to do similar

NOTE: I tried the group name "ap-generals". That ended up not working. The "addgroup" command worked, but the "flexible" command silently failed when I clicked the AND. Turns out the "-" in there is bad. Probably a bug in flexible.

I created "apgenerals" and the AND worked. However I had to modify your command to have the keyword "condition".

So the steps end up being:

* !addgroup {groupname}
* !flexible
* (click "AND" for the new group)
* !flexible condition add {groupname} org = {myname}
* !flexible condition add {groupname} rank_id = 1
(for general, 0 for president, etc)
* !security levels
* (click the security level I want for this group)
Title: Re: Using another org for Permissions?
Post by: Alreadythere on August 24, 2007, 10:10:34 am
Ah yes, sorry. Forgot the condition part.
Title: Re: Using another org for Permissions?
Post by: Alreadythere on August 24, 2007, 01:33:09 pm
You should grab the SVN versions of core/Alts.php too to be save, otherwise alts changes may not be noticed by connected bots (even with shared alts table).

0.4 version (http://svn.shadow-realm.org/index.py/BeBot/branches/0.4/core/Alts.php?view=co), save as .php into core/ directory
0.5 version (http://svn.shadow-realm.org/index.py/BeBot/trunk/core/Alts.php?view=co), save as .php into core/ directory
SimplePortal 2.3.7 © 2008-2024, SimplePortal