{"__v":0,"_id":"57d842858df0e22200579580","category":{"__v":0,"_id":"57d556a2496a3117004d70cf","project":"552829408962f339009a678d","version":"552829408962f339009a6790","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-09-11T13:05:38.479Z","from_sync":false,"order":1,"slug":"docker","title":"Quick Start (Docker)"},"parentDoc":null,"project":"552829408962f339009a678d","user":"55282916d9e1db2d00cd923c","version":{"__v":26,"_id":"552829408962f339009a6790","project":"552829408962f339009a678d","createdAt":"2015-04-10T19:49:20.516Z","releaseDate":"2015-04-10T19:49:20.516Z","categories":["552829418962f339009a6791","55284ed68962f339009a67e1","55286c73391a362500d9b3f4","552918f6b316811900149f59","5529b255d739240d00a3483e","553287590a578a0d008d4ff5","55329385e7d1fa0d003fc946","5550b55200420e0d00d1312f","55525fca953c9c0d00f507d7","559199695631432f002d358a","559d8d96980b801700d5ec7e","55c5e833cccdeb2d004e24b9","55d76504f662951900fc0e7d","55ea213cc62aa02f008229cd","56157b750f5ed00d00483dd8","561981fbac0924170069f4e8","561b8b1ea430930d0037ea67","563417428b86331700b488ca","56cd785bface161300dae0ec","56cdcc6e70db8a15006395f4","56cdf1b749abf10b0036a34a","56cedc8ce50c9c1b00830423","56e97ba8d825061900d1ac83","570d505228e6900e00477229","573614ca2ab52e1700c8e851","57d556a2496a3117004d70cf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-13T18:16:37.652Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 1: Create Bot Father token on your Actor Server\"\n}\n[/block]\nBotFather need to run in priveledged mode to create other bots. To achieve this you need to create bot token via `actor-cli` with admin privilegies:\n\n```\nactor-cli create-bot --username botfather --name \"Bot Father\" --admin\n```\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 2: Install Bot\"\n}\n[/block]\nDocker installation is prefferable way to start BotFather and you can do it with command:\n\n```\ndocker run -e BOT_FATHER_USERNAME=<username_of_botfather> -e BOT_FATHER_TOKEN=<bot-token-from-actor-cli> -e BOT_FATHER_ENDPOINT=wss://api.actor.im actor/bot-father\n```\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Argument\",\n    \"0-0\": \"BOT_FATHER_USERNAME\",\n    \"h-1\": \"Requred\",\n    \"0-1\": \"yes\",\n    \"h-2\": \"Description\",\n    \"0-2\": \"Username of a BotFather\",\n    \"1-0\": \"BOT_FATHER_TOKEN\",\n    \"1-1\": \"yes\",\n    \"1-2\": \"Token to access Actor Server\",\n    \"2-0\": \"BOT_FATHER_ENDPOINT\",\n    \"2-1\": \"no\",\n    \"2-2\": \"Endpoint to server API. If no set will connect to main actor cloud.\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\nAlternative is building bot from sources and running app directly. BTW we don't recommend this and won't support such king of installations.","excerpt":"How easily install Bot Father to your Actor Server","slug":"docker-father","type":"basic","title":"Bot Father"}

Bot Father

How easily install Bot Father to your Actor Server

[block:api-header] { "type": "basic", "title": "Step 1: Create Bot Father token on your Actor Server" } [/block] BotFather need to run in priveledged mode to create other bots. To achieve this you need to create bot token via `actor-cli` with admin privilegies: ``` actor-cli create-bot --username botfather --name "Bot Father" --admin ``` [block:api-header] { "type": "basic", "title": "Step 2: Install Bot" } [/block] Docker installation is prefferable way to start BotFather and you can do it with command: ``` docker run -e BOT_FATHER_USERNAME=<username_of_botfather> -e BOT_FATHER_TOKEN=<bot-token-from-actor-cli> -e BOT_FATHER_ENDPOINT=wss://api.actor.im actor/bot-father ``` [block:parameters] { "data": { "h-0": "Argument", "0-0": "BOT_FATHER_USERNAME", "h-1": "Requred", "0-1": "yes", "h-2": "Description", "0-2": "Username of a BotFather", "1-0": "BOT_FATHER_TOKEN", "1-1": "yes", "1-2": "Token to access Actor Server", "2-0": "BOT_FATHER_ENDPOINT", "2-1": "no", "2-2": "Endpoint to server API. If no set will connect to main actor cloud." }, "cols": 3, "rows": 3 } [/block] Alternative is building bot from sources and running app directly. BTW we don't recommend this and won't support such king of installations.