{"_id":"@danclay/discord-dialogflow","_rev":"4-42a055dabc0ba361f53a1087f67c522c","name":"@danclay/discord-dialogflow","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@danclay/discord-dialogflow","version":"1.0.0","description":"Quick integration of dialogflow for Discord bots","main":"index.js","repository":{"type":"git","url":"https://github.com/danclay/discord-dialogflow"},"author":{"name":"danclay"},"license":"MIT","scripts":{"prepublishOnly":"./node_modules/.bin/jsdoc -c .jsdoc.json","test":"node ./test/test.js"},"devDependencies":{"dotenv":"^8.2.0","eris":"^0.11.2","jsdoc":"~3.6.4","jsdoc-template":"https://github.com/braintree/jsdoc-template"},"dependencies":{"dialogflow":"^1.2.0","uuid":"^7.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2020 danclay\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@danclay/discord-dialogflow@1.0.0","dist":{"shasum":"ed585d17ac6fa1126e4b8c3fcd0a655461900587","integrity":"sha512-5uq9taZG+6QB4C2B5XBpMzFuzDq9TEhaIKy9iuvBM4xu7tV6F9ilT/W7WWXow4SPP+fv7+1WB5GLbTVlWPzlag==","tarball":"https://registry.npmjs.org/@danclay/discord-dialogflow/-/discord-dialogflow-1.0.0.tgz","fileCount":63,"unpackedSize":1553695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJej8sbCRA9TVsSAnZWagAA4BgP/AqRCHq6lbWdHr+8ziU3\n+wkG15HvrBXS5XMMExU04bCOXYR/eiUukZ4ikMyMAfLBfkzvCZkqTgyUav5S\nHxBmm244DiCoxL9n3+KWARXdKjAfHl59DfgRmGQmGSc0XQhRgT1DgEG1vGaV\nMR5o9Uw5AoY8/BFIAIkrCJqNXpO/gM2+cygTVYrdODmp+LWRtaJGpwcH8jLn\nRQmoJNOwNsvd8wNlut3t9y1i63J+vkaaUdyEBrXmw33G0YPUfjAIRFxrx4UC\ndT2XjIj6vgXQJROQoxLJ7Towo8U0llALovkdQdpIO5tEkcmP35EZtSMY9oFP\nJBHC2rvEY7Vm7sN+0LCIacn1/C4f3V8ahAA+11wjnSij656mAuWqRCvF+4k4\nekQ99Xnl2mZamnaJ78Vy1UrE8c1shdhH4cf/GEulj0l3FBkbrJ4qZujcyT0n\n0kIjD3Xu8sldMNfhEKzwoH7FcHuPHqFHn8+OQuxcb3bfTvTcpx1vkB5trpyH\nHwRI7ZrDhzxHbYxW6VIGhRaNL+MiNJLcCJltbypINIWjE1fSjohAYKlXPyP9\nZZXM7oD6N8fmQc2vXwxa6jPQBd1l30A1/0e3v+SbGA4v4q1F7PoXSaZ4KSSX\nfxk4f+D06gIPSG25z/z0WLyoXh5BPH45dGdNcU5LEeNTa8BDeSKCDU9yj+9p\nrkry\r\n=P8HM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIClIC2e3UdlgPJCdqkvi/YK01bqsWk2AktkjO/VPUqDbAiBP8Go5R7HfwKpM9hFiTz7XOom9kXaYh+/n9n0nODmdRg=="}]},"maintainers":[{"name":"danclay","email":"danilclayton@gmail.com"}],"_npmUser":{"name":"danclay","email":"danilclayton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/discord-dialogflow_1.0.0_1586481946650_0.6840761070448971"},"_hasShrinkwrap":false},"1.0.1":{"name":"@danclay/discord-dialogflow","version":"1.0.1","description":"Quick integration of dialogflow for Discord bots","main":"index.js","repository":{"type":"git","url":"https://github.com/danclay/discord-dialogflow"},"author":{"name":"danclay"},"license":"MIT","scripts":{"prepublishOnly":"./node_modules/.bin/jsdoc -c .jsdoc.json","test":"node ./test/test.js"},"devDependencies":{"dotenv":"^8.2.0","eris":"^0.11.2","jsdoc":"~3.6.4","jsdoc-template":"https://github.com/braintree/jsdoc-template"},"bugs":{"url":"https://github.com/danclay/discord-dialogflow/issues"},"dependencies":{"dialogflow":"^1.2.0","uuid":"^7.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2020 danclay\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@danclay/discord-dialogflow@1.0.1","dist":{"shasum":"7dbc4984444f6e6bb818d7cb2944a6879bba690f","integrity":"sha512-kntb4N+xj30LVBJB8pklk363fdY6nvpueV/3l9CAC+FNF1gMd8X4NduOXHCjySYuGSwNU0A4Z2N+0Vk3pHQvyQ==","tarball":"https://registry.npmjs.org/@danclay/discord-dialogflow/-/discord-dialogflow-1.0.1.tgz","fileCount":63,"unpackedSize":1555275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJej9ONCRA9TVsSAnZWagAAT2kP/iee3o/YC37MVEUFMkGN\nfUpQF/SCOBmDhKUzecsgRR3GDVH/9cq+YcjiwzP5iOLEil2EJHnR6bTg+EPs\nxZ7TckM7auNcu6jG4SYqcCSSbSkai0Bxgk5e2ykl9leGpIDuKVlGr9u1cUl9\nJcbG8YFRF3UobOyle9JLaUCieC/rE31yhoIWMLnMOTuXfUqTbZkOtuAgm7SH\nMEY/t92IAyjcN0FEt4u/sLRjyoXZmbbAoNukgiLyxMMQ3bSaQV3Y4eafgCfC\nWYcfAtpEai+G+h3dpHEWhJX5H0C45cOKv7wouVR0SpIKH5ElVqCZYEKA7jPf\nCnsbaKlTxc1j5+w8rgcT6d8dayPo9rU5itcew3WgI8BG+XGsvJ8kXoN3QrLm\nqm1HjtBEvi6d8a0tN6zTJlKzNo1VmTNkVQ+s7vSgxakQwlRYrrkUcU4jAPU5\nCqg2FuEKLhYYfaHddAek0yDmBaieyemVvQcIv+ui2gOwlPCe4nR9QfZPx60R\nCqlcg6NPlRo7ygfNiKtYUKSwx8JO+vKgSzNRC4V/Z9759r7uq36TRTNi1faE\nWldnTok3TwQphHH7R4OSjclu09tlpkkcJFEq/ekYLGDI2rcDXVvN5P1UIvFi\nRBsmb4xb8Aoa5YqE/KMGBrx02t57/cUIIlGQKE8C+2X/fJ1jktUN9TY0CCwd\nlfwq\r\n=uzeG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvZEY0KGfZkj/z9PZDTSxaWXRKiml76DnDKnX7j2qcHQIgYHegJgCt7P2uFAMVxrgWWZRj5YXy2dVW1QqLY5fhdX8="}]},"maintainers":[{"name":"danclay","email":"danilclayton@gmail.com"}],"_npmUser":{"name":"danclay","email":"danilclayton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/discord-dialogflow_1.0.1_1586484108587_0.6616178192616835"},"_hasShrinkwrap":false},"1.0.2":{"name":"@danclay/discord-dialogflow","version":"1.0.2","description":"Quick integration of dialogflow for Discord bots","main":"index.js","repository":{"type":"git","url":"https://github.com/danclay/discord-dialogflow"},"author":{"name":"danclay"},"license":"MIT","scripts":{"prepublishOnly":"./node_modules/.bin/jsdoc -c .jsdoc.json","test":"node ./test/test.js"},"devDependencies":{"dotenv":"^8.2.0","eris":"^0.11.2","jsdoc":"~3.6.4","jsdoc-template":"https://github.com/braintree/jsdoc-template"},"bugs":{"url":"https://github.com/danclay/discord-dialogflow/issues"},"dependencies":{"dialogflow":"^1.2.0","uuid":"^7.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2020 danclay\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@danclay/discord-dialogflow@1.0.2","dist":{"shasum":"7d331a3ed1be174aa3b25e0901114c8c1941bb9a","integrity":"sha512-2ZuPc+7xj3poicuTV48JomrDZlmp+pLd2lkUg9kiLJJh0WItay56I8L7iZdJXGxneKB/fMHNOcPuCrSB1OvRPQ==","tarball":"https://registry.npmjs.org/@danclay/discord-dialogflow/-/discord-dialogflow-1.0.2.tgz","fileCount":63,"unpackedSize":1563088,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJej91ACRA9TVsSAnZWagAAqqEQAI1nGKdZnNW37vvsRKRU\n1PTglQNWvyGdu1XG4vwPDdFKod2E95K846NSfixJx+LwSLVqdZmt7RXXp9I2\nqIQWF+OpCgsQvxMvTLe+3KCpRDfoKQE2dAI4fSwS0V3DvZQnnGELLIXc33EG\nhWGxnC045e+n9xxCo31gv3uJfeOEqXDF6xgKbkXCZbmfsZ+zdaLDfGu3mRbG\nOz2FEYqKU/WTAtdba1E+2hzq2WQX1E24vfcCSYWVfziM0OR96JITKiVpPdkb\ng86zznvhkwTX90cToxvuT2TOeuOXO/DnQfJpq+xHqRsFSEaZ+dadBK9FAsJ1\nvClXnEOxkplGF4MJFE0kiM6FoumbQR2SInphsCZJZW5UCzlfTrOdmjYjDRqj\nS8//pE/sEYEnl6U7+q+g8wbe4RjWySrayiDjW0jwajoRSimWWiHJrX5bxTdx\nhmieQh0gJClPP0vGRcODb4QkM+FlP+P6QTueOgnLpMFF2kramLg3pz1dMuU5\nsSqtL4kCzeP5QDVd7J7S5SIGKon4TPRfm66JWVr6zlDooyR5Usu4hGKD/M3R\nm7Au6sN7fgOLFmLVGK5zgcxBpoSeqjluBniu76dryeopsRrLq9fZBjG1eYPE\n40o+nFU9O5EOdW+Gv4vlkoiPTlRWacityduEfyqX+xoc2jo3FzV3lNijmcV4\nUXhm\r\n=nv64\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4XtxlSH9/OJrYOse+Vzq4RIU5XTtO8XGv5DGPwRnouwIgdwHDY1Plk3b52kPXgEv3ywdG2Y5mBaj0cH9LrXJN+jw="}]},"maintainers":[{"name":"danclay","email":"danilclayton@gmail.com"}],"_npmUser":{"name":"danclay","email":"danilclayton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/discord-dialogflow_1.0.2_1586486592211_0.010590862576558058"},"_hasShrinkwrap":false},"1.0.3":{"name":"@danclay/discord-dialogflow","version":"1.0.3","description":"Quick integration of dialogflow for Discord bots","main":"index.js","repository":{"type":"git","url":"https://github.com/danclay/discord-dialogflow"},"author":{"name":"danclay"},"license":"MIT","scripts":{"prepublishOnly":"./node_modules/.bin/jsdoc -c .jsdoc.json","test":"node ./test/test.js"},"devDependencies":{"dotenv":"^8.2.0","eris":"^0.11.2","jsdoc":"~3.6.4","jsdoc-template":"https://github.com/braintree/jsdoc-template"},"bugs":{"url":"https://github.com/danclay/discord-dialogflow/issues"},"dependencies":{"@google-cloud/dialogflow":"^3.3.0","uuid":"^7.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2020 danclay\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@danclay/discord-dialogflow@1.0.3","dist":{"shasum":"f1dda0735dbf8f06cfb4b78732f084304d749d09","integrity":"sha512-p8JQisVSnubcW6ThfmI2A6cvKQBQPq7ruvteg3KlW3MlQlDRNVRcH1Q10STFX0gKvKOLrkaPucWoN6U8oWDqPg==","tarball":"https://registry.npmjs.org/@danclay/discord-dialogflow/-/discord-dialogflow-1.0.3.tgz","fileCount":63,"unpackedSize":1562404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJyv1CRA9TVsSAnZWagAAsJAP/3MFF4kWChknpxDmbE74\nYjy/Sr7iL/Xlty0ifRaffcvqn8+7IavK8Z02KQ49Wqk0hEP2uUMAIxquUKGy\nnkFXunmarqLcUk4SwMRnIRDt/cn0Ru2/Ks6eT979KL1Gk9XTqjfYqZFMOsYC\nECzqxUuvwl7BTvkRLaOv0mIYQ0ITL/UcaEZboj9SsxVjQfGRjKU0uTENyAKV\nutlFh9/qjVGXVox3DNc1S4mvMQ/e1+ZSfQqZuxeKwmmCI0/QdfM+BymtYkwV\nHfpSLfitVCtZ0tpCm9FPtAVDYBSgU6HF3oSOXszmdu+mP9yz295kkrOG7MeG\ntVCt/pdNYpTr8RYwS4nwWGFyZYcr2bH5NudCtLO7dIJbfqbD0ik1iN8PZ5Wz\nRTQ27VFe6tZb4ADbuIfRY4D1yz3/tEzSV8ykJEh9+u1d/2tXNg/an6GGWL83\nLsAljoEhUsuHe1SdKyQgmKmEe2XLWBDEmWQ1XQYPTEoHnWUIHfpNIdZrJ8jm\nFjAugV/oU5c7K/K8ibGlX8oVcElIBJAZPelAO9evrlin5FILd3BKJ3ZRYc7G\nAbkvR1foGhYQf8YLFhPnzk2qnOfPzqTqX7fQrxOJHGioVE2Li5df3v3/drP0\nqZF85CVZ8QmPdt4SUpIiIwyaKUYo7ke2a/cLCn31v6Mj0HMOekWbngEAGl2s\nRjLA\r\n=A37R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFhAE4zyiW6l097yLQnB7pk+GwkxEVlDJKofG5GVw/KAIgUBA6DB3s2xBgPa5WUKxbu3VWxannGKC8kq/dx3INQZg="}]},"_npmUser":{"name":"danclay","email":"danilclayton@gmail.com"},"directories":{},"maintainers":[{"name":"danclay","email":"danilclayton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/discord-dialogflow_1.0.3_1613179893194_0.04852686880257284"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-10T01:25:46.573Z","1.0.0":"2020-04-10T01:25:46.832Z","modified":"2022-04-05T02:39:32.378Z","1.0.1":"2020-04-10T02:01:48.743Z","1.0.2":"2020-04-10T02:43:12.433Z","1.0.3":"2021-02-13T01:31:33.439Z"},"maintainers":[{"name":"danclay","email":"danilclayton@gmail.com"}],"description":"Quick integration of dialogflow for Discord bots","repository":{"type":"git","url":"https://github.com/danclay/discord-dialogflow"},"author":{"name":"danclay"},"license":"MIT","readme":"<div align=\"center\">\n  <p>\n    <a href=\"https://www.npmjs.com/package/@danclay/discord-dialogflow\"><img src=\"https://img.shields.io/npm/v/@danclay/discord-dialogflow.svg?cacheSeconds=3600&style=flat-square\" alt=\"NPM version\" /></a>\n    <a href=\"https://raw.githubusercontent.com/danclay/discord-dialogflow/master/LICENSE\"><img alt=\"License\" src=\"https://img.shields.io/npm/l/@danclay/discord-dialogflow?style=flat-square\">\n    <a href=\"https://david-dm.org/danclay/discord-dialogflow\"><img src=\"https://img.shields.io/david/danclay/discord-dialogflow.svg?cacheSeconds=3600&style=flat-square\" alt=\"Dependencies\" /></a>\n  </p>\n  <p>\n    <a href=\"https://nodei.co/npm/@danclay/discord-dialogflow/\"><img src=\"https://nodeico.herokuapp.com/@danclay/discord-dialogflow.svg\"></a>\n  </p>\n</div>\n\n### [Documentation](https://danclay.github.io/discord-dialogflow/) | [Eris](https://abal.moe/Eris/docs/index.html) | [discord.js](https://discord.js.org/#/docs/main/stable/general/welcome)\n\n# About\n\nEasily integrate Dialogflow into your Discord bot to allow for natural conversations. This should work with the message object for both Eris and discord.js\n\n# Installation\nRun `npm install @danclay/discord-dialogflow --save`\nor with yarn: `yarn add @danclay/discord-dialogflow`\n\n# Usage\n\n## Config\nTo configure the bot, use the `init(options)` function of this package. The options parameter is a object as follows:\n| Name           | Type    | Optional? | Default | Description                                                                                                                                  |\n|----------------|---------|-----------|---------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| projectID      | string  |           |         | GCP project ID                                                                                                                               |\n| keyPath        | string  |           |         | Absolute path to the GCP service account JSON key                                                                                            |\n| convertResult  | Boolean | Yes       | true    | If using a custom response payload and you want it to be given to you in JSON (if used this will be given in result.fulfillmentMessagesJSON) |\n| storeSessions  | Boolean | Yes       | true    | If you want sessions IDs to remain to same for specific users                                                                                |\n| sessionExpires | Number  | Yes       | 5       | How long until each session ID is deleted (only if options.storeSessions=true)                                                               |\n| easyMode       | Boolean | Yes       | false   | Enable basic mode where the callback will only have the fulfillment text                                                                     |\n| debug          | Boolean | Yes       | false   | Enable or disable debug logging                                                                                                              |\n\n## Getting a result\nTo get a result object from dialogflow, use the `getIntent(msg, callback)` function of this package. The parameters are as follows:\n### Parameters:\n| Name     | Type     | Description                                                    |\n|----------|----------|----------------------------------------------------------------|\n| msg      | Object   | message object (see below)                                     |\n| callback | callback | callback function (result object or string if using easy mode) |\n\n### Msg parameter:\n| Name      | Type   | Optional? | Description                                                                                   |\n|-----------|--------|-----------|-----------------------------------------------------------------------------------------------|\n| content   | string | Yes       | If not using a custom query, this will be used as the query text input                        |\n| author.id | Number | Yes       | If not using a custom query, this is needed for the ID                                        |\n| locale    | string | Yes       | message locale if you want it to not be English (only if no using custom query) (e.g.'en-US') |\n| query     | Object | Yes       | custom dialogflow query                                                                       |\n\n## Basics\n```javascript\nconst dialogflow = require('discord-dialogflow'); // requires the package\ndialogflow.init(\"project-id\", \"path-to-service-account-key.json\"); // init your project\ndialogflow.getIntent(msg, r => { // get the intent\n    // code using the results\n});\n```\n\n### Example using Eris and easy mode \n(as seen in [test/test.js](https://raw.githubusercontent.com/danclay/discord-dialogflow/master/test/test.js)):\n```javascript\nif (!(process.env.NODE_ENV === \"production\")) { // Use dotenv for local testing\n    require('dotenv').config();\n};\n\nconst Eris = require('eris');\n\nvar bot = new Eris(process.env.token);\nbot.on(\"ready\", () => {\n    console.log(\"Ready!\");\n});\n\n// Dialogflow\nconst dialogflow = require('../index.js'); // require the package (use the package name \"discord-dialogflow\" when you do it)\ndialogflow.init({\n    projectID: process.env.projectID,\n    keyPath: process.env.keyPath,\n    easyMode: true,\n    debug: true\n});\n\n\nbot.on(\"messageCreate\", async (msg) => {\n    if (!msg.author.bot) {\n        dialogflow.getIntent(msg, (r) => { // gets the intent and fallback text\n            bot.createMessage(msg.channel.id, r);\n        });\n    };\n});\nbot.connect();\n});\n```\n\n### Example using Eris and easy mode disabled:\n```javascript\nif (!(process.env.NODE_ENV === \"production\")) { // Use dotenv for local testing\n    require('dotenv').config();\n};\n\nconst Eris = require('eris');\n\nvar bot = new Eris(process.env.token);\nbot.on(\"ready\", () => {\n    console.log(\"Ready!\");\n});\n\n// Dialogflow\nconst dialogflow = require('../index.js'); // require the package (use the package name \"discord-dialogflow\" when you do it)\ndialogflow.init({\n    projectID: process.env.projectID,\n    keyPath: process.env.keyPath,\n    easyMode: false,\n    debug: true\n});\n\n\nbot.on(\"messageCreate\", async (msg) => {\n    if (!msg.author.bot) {\n        dialogflow.getIntent(msg, (r) => { // gets the intent and fallback text\n            console.log(JSON.stringify(r));\n            console.log(JSON.stringify(r.fulfillmentMessagesJSON[0].discord));\n            bot.createMessage(msg.channel.id, {embed: r.fulfillmentMessagesJSON[0].discord});\n        });\n    };\n});\nbot.connect();\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/danclay/discord-dialogflow/issues"}}