bitbot-3.11-fork/modules/permissions
jesopo f60deba6c7 Add a master-admin login system, to have a bot-wide password to give any user
using it complete admin permissions - mostly intended to add new admin users
2019-04-15 14:52:08 +01:00
..
__init__.py Add a master-admin login system, to have a bot-wide password to give any user 2019-04-15 14:52:08 +01:00
README.md Use '&lt;' for '<' in README (permissions) 2019-02-17 14:29:50 +00:00

Permissions

Adding an admin user

This is a little complex at the moment but it will get easier some time soon.

Registering user

Join a channel that BitBot is in (he'll automatically join #bitbot with default configuration) and then type

/msg <botnick> register <password>

Give * permission

The * permission is a special permission that gives you completely unfettered access to all of BitBot's functions.

On IRC, send this to BitBot and take note of the ID response

/msg <botnick> myid

Then take that ID and open the database in sqlite3 (default database location is databases/bot.db

$ sqlite3 databases/bot.db

And then insert your * permission

INSERT INTO user_settings VALUES (<id>, 'permissions', '["*"]');

(where <id> is the response from the myid command)

Authenticating

To authenticate yourself as your admin user, use the following command

/msg <botnick> identify <password>