From ec49140a7093cc7aebacf9eb5b6cd88c131a7e84 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 17 Feb 2019 14:26:18 +0000 Subject: Move permissions.py in to a directory and add a README.md for it --- modules/permissions/README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/permissions/README.md (limited to 'modules/permissions/README.md') diff --git a/modules/permissions/README.md b/modules/permissions/README.md new file mode 100644 index 00000000..18f049d6 --- /dev/null +++ b/modules/permissions/README.md @@ -0,0 +1,32 @@ +# 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 BitBo is in (he'll automatically join #bitbot with default +configuration) and then type + +> /msg <botnick> register + +### 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 `` is the response from the `myid` command) -- cgit v1.3.1-10-gc9f91