diff --git a/404.html b/404.html index c509716..2bf6fa0 100644 --- a/404.html +++ b/404.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug.html b/__docusaurus/debug.html index c1515a7..8a08f26 100644 --- a/__docusaurus/debug.html +++ b/__docusaurus/debug.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/config.html b/__docusaurus/debug/config.html index 9cb262d..60658ac 100644 --- a/__docusaurus/debug/config.html +++ b/__docusaurus/debug/config.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/content.html b/__docusaurus/debug/content.html index 6fee566..400f071 100644 --- a/__docusaurus/debug/content.html +++ b/__docusaurus/debug/content.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/globalData.html b/__docusaurus/debug/globalData.html index 6fb12c8..38c9836 100644 --- a/__docusaurus/debug/globalData.html +++ b/__docusaurus/debug/globalData.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/metadata.html b/__docusaurus/debug/metadata.html index 150d7d3..93a7997 100644 --- a/__docusaurus/debug/metadata.html +++ b/__docusaurus/debug/metadata.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/registry.html b/__docusaurus/debug/registry.html index 634cdd5..7797382 100644 --- a/__docusaurus/debug/registry.html +++ b/__docusaurus/debug/registry.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/routes.html b/__docusaurus/debug/routes.html index cfe18e1..8dbea7f 100644 --- a/__docusaurus/debug/routes.html +++ b/__docusaurus/debug/routes.html @@ -14,7 +14,7 @@ - + diff --git a/assets/js/717a4525.1e5549c1.js b/assets/js/717a4525.a70c7e5b.js similarity index 57% rename from assets/js/717a4525.1e5549c1.js rename to assets/js/717a4525.a70c7e5b.js index 4015545..70b0153 100644 --- a/assets/js/717a4525.1e5549c1.js +++ b/assets/js/717a4525.a70c7e5b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[365],{221:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>l,frontMatter:()=>m,metadata:()=>r,toc:()=>d});var o=n(6106),s=n(9252);const m={id:"text-commands",slug:"text-commands",title:"Text Commands",description:"Text commands are the most common type of command. They are used to send a message to the channel.",sidebar_position:5},a=void 0,r={id:"text-commands",title:"Text Commands",description:"Text commands are the most common type of command. They are used to send a message to the channel.",source:"@site/content/text-commands.md",sourceDirName:".",slug:"/text-commands",permalink:"/text-commands",draft:!1,unlisted:!1,editUrl:"https://github.com/GlobalArtInc/nestgram/tree/master/docs/content/text-commands.md",tags:[],version:"current",sidebarPosition:5,frontMatter:{id:"text-commands",slug:"text-commands",title:"Text Commands",description:"Text commands are the most common type of command. They are used to send a message to the channel.",sidebar_position:5},sidebar:"docsSidebar",previous:{title:"Introduction",permalink:"/"},next:{title:"Contribution Guide",permalink:"/contributing/contribution-guide"}},c={},d=[];function i(e){const t={code:"code",img:"img",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t.p,{children:["Create a simple command handler for messages using ",(0,o.jsx)(t.code,{children:"@TextCommand"}),"."]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-typescript",metastring:'title="src/app.service.ts"',children:"import { Injectable } from '@nestjs/common';\nimport { Context, TextCommand, TextCommandContext, Arguments } from '@nestgramjs/core';\n\n@Injectable()\nexport class AppService {\n @TextCommand({\n name: 'start',\n description: 'Start command!',\n })\n public onStart(@Context() [message]: TextCommandContext) {\n return message.reply('Start command triggered!');\n }\n}\n"})}),"\n",(0,o.jsx)(t.p,{children:"If all goes well, you should see something like this:"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.img,{alt:"Text Command",src:n(7832).A+"",title:"Text Command",width:"710",height:"140"})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(i,{...e})}):i(e)}},7832:(e,t,n)=>{n.d(t,{A:()=>o});const o=n.p+"assets/images/text_command-782df5bb3c7d38123b1912df5b03d535.png"},9252:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>r});var o=n(7378);const s={},m=o.createContext(s);function a(e){const t=o.useContext(m);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),o.createElement(m.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[365],{221:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>l,frontMatter:()=>m,metadata:()=>r,toc:()=>d});var o=n(6106),s=n(9252);const m={id:"text-commands",slug:"text-commands",title:"Text Commands",description:"Text commands are the most common type of command. They are used to send a message to the channel.",sidebar_position:5},a=void 0,r={id:"text-commands",title:"Text Commands",description:"Text commands are the most common type of command. They are used to send a message to the channel.",source:"@site/content/text-commands.md",sourceDirName:".",slug:"/text-commands",permalink:"/text-commands",draft:!1,unlisted:!1,editUrl:"https://github.com/GlobalArtInc/nestgram/tree/master/docs/content/text-commands.md",tags:[],version:"current",sidebarPosition:5,frontMatter:{id:"text-commands",slug:"text-commands",title:"Text Commands",description:"Text commands are the most common type of command. They are used to send a message to the channel.",sidebar_position:5},sidebar:"docsSidebar",previous:{title:"Introduction",permalink:"/"},next:{title:"Contribution Guide",permalink:"/contributing/contribution-guide"}},c={},d=[];function i(e){const t={code:"code",img:"img",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t.p,{children:["Create a simple command handler for messages using ",(0,o.jsx)(t.code,{children:"@TextCommand"}),"."]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-typescript",metastring:'title="src/app.service.ts"',children:"import { Injectable } from '@nestjs/common';\nimport { Context, TextCommand, CommandContext } from '@nestgramjs/core';\n\n@Injectable()\nexport class AppService {\n @TextCommand({\n name: 'start',\n description: 'Start command!',\n })\n public onStart(@Context() [ctx]: TextCommandContext) {\n return ctx.reply('Start command triggered!');\n }\n}\n"})}),"\n",(0,o.jsx)(t.p,{children:"If all goes well, you should see something like this:"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.img,{alt:"Text Command",src:n(7832).A+"",title:"Text Command",width:"710",height:"140"})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(i,{...e})}):i(e)}},7832:(e,t,n)=>{n.d(t,{A:()=>o});const o=n.p+"assets/images/text_command-782df5bb3c7d38123b1912df5b03d535.png"},9252:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>r});var o=n(7378);const s={},m=o.createContext(s);function a(e){const t=o.useContext(m);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),o.createElement(m.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.b59bf7db.js b/assets/js/runtime~main.6623b028.js similarity index 82% rename from assets/js/runtime~main.b59bf7db.js rename to assets/js/runtime~main.6623b028.js index 26c4d5a..6261080 100644 --- a/assets/js/runtime~main.b59bf7db.js +++ b/assets/js/runtime~main.6623b028.js @@ -1 +1 @@ -(()=>{"use strict";var e,t,r,a,o,n={},f={};function d(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,d),r.loaded=!0,r.exports}d.m=n,d.c=f,e=[],d.O=(t,r,a,o)=>{if(!r){var n=1/0;for(b=0;b=o)&&Object.keys(d.O).every((e=>d.O[e](r[c])))?r.splice(c--,1):(f=!1,o0&&e[b-1][2]>o;b--)e[b]=e[b-1];e[b]=[r,a,o]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var o=Object.create(null);d.r(o);var n={};t=t||[null,r({}),r([]),r(r)];for(var f=2&a&&e;"object"==typeof f&&!~t.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,d.d(o,n),o},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce(((t,r)=>(d.f[r](e,t),t)),[])),d.u=e=>"assets/js/"+({48:"a94703ab",98:"a7bd4aaa",138:"1a4e3797",222:"b38399eb",254:"68e633d4",365:"717a4525",399:"a4b529fe",401:"17896441",497:"f217256c",504:"ede3a018",506:"003b49f9",567:"22dd74f7",597:"3c0a97de",610:"946bd85a",647:"5e95c892",680:"6794d4cd",742:"aba21aa0",815:"ba8b3534",911:"23abe487",931:"ec3f407b",957:"c141421f",984:"5ca74542"}[e]||e)+"."+{48:"5f1134df",82:"24f8379a",98:"94b43be7",138:"73f56dac",152:"2879f71a",222:"b50206ab",254:"326c0945",365:"1e5549c1",399:"341c5d2e",401:"1d360417",497:"70a0c149",504:"c7928b24",506:"12210af2",567:"c868207f",576:"cdafb8cc",591:"902b1791",597:"95cc0a34",610:"b9fb3053",647:"02078198",649:"9a6961f8",680:"d6162667",742:"eb7bf6f2",815:"c212ece2",883:"96c53632",903:"266c3f77",911:"67a0649f",931:"f3e43dc0",957:"faee654a",984:"015ae1ff"}[e]+".js",d.miniCssF=e=>{},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a={},o="docs:",d.l=(e,t,r,n)=>{if(a[e])a[e].push(t);else{var f,c;if(void 0!==r)for(var i=document.getElementsByTagName("script"),b=0;b{f.onerror=f.onload=null,clearTimeout(s);var o=a[e];if(delete a[e],f.parentNode&&f.parentNode.removeChild(f),o&&o.forEach((e=>e(r))),t)return t(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),c&&document.head.appendChild(f)}},d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.p="/",d.gca=function(e){return e={17896441:"401",a94703ab:"48",a7bd4aaa:"98","1a4e3797":"138",b38399eb:"222","68e633d4":"254","717a4525":"365",a4b529fe:"399",f217256c:"497",ede3a018:"504","003b49f9":"506","22dd74f7":"567","3c0a97de":"597","946bd85a":"610","5e95c892":"647","6794d4cd":"680",aba21aa0:"742",ba8b3534:"815","23abe487":"911",ec3f407b:"931",c141421f:"957","5ca74542":"984"}[e]||e,d.p+d.u(e)},(()=>{var e={354:0,869:0};d.f.j=(t,r)=>{var a=d.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else if(/^(354|869)$/.test(t))e[t]=0;else{var o=new Promise(((r,o)=>a=e[t]=[r,o]));r.push(a[2]=o);var n=d.p+d.u(t),f=new Error;d.l(n,(r=>{if(d.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;f.message="Loading chunk "+t+" failed.\n("+o+": "+n+")",f.name="ChunkLoadError",f.type=o,f.request=n,a[1](f)}}),"chunk-"+t,t)}},d.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,n=r[0],f=r[1],c=r[2],i=0;if(n.some((t=>0!==e[t]))){for(a in f)d.o(f,a)&&(d.m[a]=f[a]);if(c)var b=c(d)}for(t&&t(r);i{"use strict";var e,t,r,a,o,n={},f={};function d(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,d),r.loaded=!0,r.exports}d.m=n,d.c=f,e=[],d.O=(t,r,a,o)=>{if(!r){var n=1/0;for(i=0;i=o)&&Object.keys(d.O).every((e=>d.O[e](r[c])))?r.splice(c--,1):(f=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,a,o]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var o=Object.create(null);d.r(o);var n={};t=t||[null,r({}),r([]),r(r)];for(var f=2&a&&e;"object"==typeof f&&!~t.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,d.d(o,n),o},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce(((t,r)=>(d.f[r](e,t),t)),[])),d.u=e=>"assets/js/"+({48:"a94703ab",98:"a7bd4aaa",138:"1a4e3797",222:"b38399eb",254:"68e633d4",365:"717a4525",399:"a4b529fe",401:"17896441",497:"f217256c",504:"ede3a018",506:"003b49f9",567:"22dd74f7",597:"3c0a97de",610:"946bd85a",647:"5e95c892",680:"6794d4cd",742:"aba21aa0",815:"ba8b3534",911:"23abe487",931:"ec3f407b",957:"c141421f",984:"5ca74542"}[e]||e)+"."+{48:"5f1134df",82:"24f8379a",98:"94b43be7",138:"73f56dac",152:"2879f71a",222:"b50206ab",254:"326c0945",365:"a70c7e5b",399:"341c5d2e",401:"1d360417",497:"70a0c149",504:"c7928b24",506:"12210af2",567:"c868207f",576:"cdafb8cc",591:"902b1791",597:"95cc0a34",610:"b9fb3053",647:"02078198",649:"9a6961f8",680:"d6162667",742:"eb7bf6f2",815:"c212ece2",883:"96c53632",903:"266c3f77",911:"67a0649f",931:"f3e43dc0",957:"faee654a",984:"015ae1ff"}[e]+".js",d.miniCssF=e=>{},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a={},o="docs:",d.l=(e,t,r,n)=>{if(a[e])a[e].push(t);else{var f,c;if(void 0!==r)for(var b=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var o=a[e];if(delete a[e],f.parentNode&&f.parentNode.removeChild(f),o&&o.forEach((e=>e(r))),t)return t(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),c&&document.head.appendChild(f)}},d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.p="/",d.gca=function(e){return e={17896441:"401",a94703ab:"48",a7bd4aaa:"98","1a4e3797":"138",b38399eb:"222","68e633d4":"254","717a4525":"365",a4b529fe:"399",f217256c:"497",ede3a018:"504","003b49f9":"506","22dd74f7":"567","3c0a97de":"597","946bd85a":"610","5e95c892":"647","6794d4cd":"680",aba21aa0:"742",ba8b3534:"815","23abe487":"911",ec3f407b:"931",c141421f:"957","5ca74542":"984"}[e]||e,d.p+d.u(e)},(()=>{var e={354:0,869:0};d.f.j=(t,r)=>{var a=d.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else if(/^(354|869)$/.test(t))e[t]=0;else{var o=new Promise(((r,o)=>a=e[t]=[r,o]));r.push(a[2]=o);var n=d.p+d.u(t),f=new Error;d.l(n,(r=>{if(d.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;f.message="Loading chunk "+t+" failed.\n("+o+": "+n+")",f.name="ChunkLoadError",f.type=o,f.request=n,a[1](f)}}),"chunk-"+t,t)}},d.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,n=r[0],f=r[1],c=r[2],b=0;if(n.some((t=>0!==e[t]))){for(a in f)d.o(f,a)&&(d.m[a]=f[a]);if(c)var i=c(d)}for(t&&t(r);b - + diff --git a/contributing/commit-convention.html b/contributing/commit-convention.html index 42bc3a5..a6d0689 100644 --- a/contributing/commit-convention.html +++ b/contributing/commit-convention.html @@ -14,7 +14,7 @@ - + diff --git a/contributing/contribution-guide.html b/contributing/contribution-guide.html index fc31883..5c2f0c7 100644 --- a/contributing/contribution-guide.html +++ b/contributing/contribution-guide.html @@ -14,7 +14,7 @@ - + diff --git a/contributing/funding.html b/contributing/funding.html index b3fa560..b5ad9c8 100644 --- a/contributing/funding.html +++ b/contributing/funding.html @@ -14,7 +14,7 @@ - + diff --git a/index.html b/index.html index 8a2f8af..0cc9ce0 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - + diff --git a/search.html b/search.html index 54ce845..59bbf6a 100644 --- a/search.html +++ b/search.html @@ -14,7 +14,7 @@ - + diff --git a/sw.js b/sw.js index 87779b3..fcc9f0d 100644 --- a/sw.js +++ b/sw.js @@ -4554,7 +4554,7 @@ function getPossibleURLs(url) { (async () => { const params = parseSwParams(); // eslint-disable-next-line no-underscore-dangle - const precacheManifest = [{"revision":"34050ffdf6cda0ccb72ebe80fb917ac7","url":"__docusaurus/debug.html"},{"revision":"ea4df70560b4f8b5f8fdb7e3c88faa7c","url":"__docusaurus/debug/config.html"},{"revision":"0c7e835146e9f2e9b8027b39663e3407","url":"__docusaurus/debug/content.html"},{"revision":"187fc7ed6db371d66c1039b27451f831","url":"__docusaurus/debug/globalData.html"},{"revision":"f183caa45fcfa36825299fde498c9b5b","url":"__docusaurus/debug/metadata.html"},{"revision":"f3a4aee730fa4c9fe6d3aab33509661e","url":"__docusaurus/debug/registry.html"},{"revision":"d01e68d8394b385b62d970e373edbcf6","url":"__docusaurus/debug/routes.html"},{"revision":"5200946a3d0c1a7270827c03c5e7484d","url":"404.html"},{"revision":"c241b1e830b64be7ae68d3181d3de0a6","url":"assets/css/styles.f179d114.css"},{"revision":"89966e16ee5c9907cb9f3f422b87a72f","url":"assets/js/003b49f9.12210af2.js"},{"revision":"b78faca260d8cb3e03338dc4cf8f0e17","url":"assets/js/152.2879f71a.js"},{"revision":"6fa6f261fc67ca18f662da5abd07d036","url":"assets/js/17896441.1d360417.js"},{"revision":"516274704cb2dd46bb41b2c77a237676","url":"assets/js/1a4e3797.73f56dac.js"},{"revision":"f49ed679e58d0b0c8b8733166bb4c907","url":"assets/js/22dd74f7.c868207f.js"},{"revision":"12a2ef23f406107f05fb1435641dc4ca","url":"assets/js/23abe487.67a0649f.js"},{"revision":"4dd80c019006f04c50f85667dcff66d2","url":"assets/js/3c0a97de.95cc0a34.js"},{"revision":"6d91f7ba48fb8d534d75ed44392dc059","url":"assets/js/576.cdafb8cc.js"},{"revision":"a135d82e899848409aa62ceb5f03554c","url":"assets/js/591.902b1791.js"},{"revision":"9166e7f43ad8f684a53e187c73aca922","url":"assets/js/5ca74542.015ae1ff.js"},{"revision":"22810cc3758edec24f992c70ea7fc763","url":"assets/js/5e95c892.02078198.js"},{"revision":"3b4d5cfb4856697ac850fb1d30e8cd64","url":"assets/js/649.9a6961f8.js"},{"revision":"a77458d94ad4214308746311c24c30f3","url":"assets/js/6794d4cd.d6162667.js"},{"revision":"576deef15dbb7c3f5bdd3417d0d86deb","url":"assets/js/68e633d4.326c0945.js"},{"revision":"aa28eb7594665ca4a5e83c867cafeb4a","url":"assets/js/717a4525.1e5549c1.js"},{"revision":"3b014a55c8bc0e06d7f5eab9186a075b","url":"assets/js/82.24f8379a.js"},{"revision":"25d9a7780d498bb73d147d9460fb3458","url":"assets/js/883.96c53632.js"},{"revision":"94f683ed1d70c79c1d8541fbde43a765","url":"assets/js/903.266c3f77.js"},{"revision":"1805d7c9d62d1c1a3182a2114f713f82","url":"assets/js/946bd85a.b9fb3053.js"},{"revision":"a3b96957f067722cc0f672d30bb82fa5","url":"assets/js/a4b529fe.341c5d2e.js"},{"revision":"e3f807fd467d27c9aa71c24da992677d","url":"assets/js/a7bd4aaa.94b43be7.js"},{"revision":"3bff431bd885bd3c36bab2ca1c26bfa3","url":"assets/js/a94703ab.5f1134df.js"},{"revision":"9137f75b4d3f64d3490035c7b7f03687","url":"assets/js/aba21aa0.eb7bf6f2.js"},{"revision":"d45f166006e05d9c423a4b6536a23dfb","url":"assets/js/b38399eb.b50206ab.js"},{"revision":"4267c7ef7f4fd959fed058e1ef435405","url":"assets/js/ba8b3534.c212ece2.js"},{"revision":"babf611af288d78166ee5e8729cedf6e","url":"assets/js/c141421f.faee654a.js"},{"revision":"dc70a43dc73e4800c29089ee33f5381f","url":"assets/js/ec3f407b.f3e43dc0.js"},{"revision":"ad472c4978ab977a42f1b402d0391faf","url":"assets/js/ede3a018.c7928b24.js"},{"revision":"9fe9589358cb2366d981a9ab25c5c171","url":"assets/js/f217256c.70a0c149.js"},{"revision":"6972e4b6780c283ab5b43b4673dcca89","url":"assets/js/main.70b00b4a.js"},{"revision":"d416479ef5fabb2bcc8764d3abf12c68","url":"assets/js/runtime~main.b59bf7db.js"},{"revision":"24c459e2f88ee46d03927a20fbb8cf74","url":"contributing/code-of-conduct.html"},{"revision":"8702ecce1ef5ecedb893e9163c260498","url":"contributing/commit-convention.html"},{"revision":"8948aba836efec6741ca08b607c2a94d","url":"contributing/contribution-guide.html"},{"revision":"c54d03563aa5eb0be3653d5930025384","url":"contributing/funding.html"},{"revision":"cce02829322d0263459d8dad9ccd7e29","url":"index.html"},{"revision":"4ef29bfb99deeb2c01654880a0a79aa2","url":"manifest.json"},{"revision":"8793d8a1193ffa055d0fca3ed32330c4","url":"search.html"},{"revision":"09a174f59e1d666993b572c428fdffc6","url":"text-commands.html"},{"revision":"42074535ef68beb68f7335092da3afb8","url":"assets/images/text_command-782df5bb3c7d38123b1912df5b03d535.png"},{"revision":"42074535ef68beb68f7335092da3afb8","url":"img/content/text_command.png"},{"revision":"f43ddaffb2ecb4d2dace5f2e00c27509","url":"img/favicon.ico"},{"revision":"2698a4a2882cc09556e0f95c34a7ab2d","url":"img/icons/icon-72x72.png"},{"revision":"2698a4a2882cc09556e0f95c34a7ab2d","url":"img/logo-small.png"},{"revision":"b91591ef7b01350f7e1aac0e704501f1","url":"img/logo.png"},{"revision":"1f4646a0899ab726e00f5c86a9271222","url":"img/logo.svg"}]; + const precacheManifest = [{"revision":"11a10e9d0e0657175e58af716fb87c4c","url":"__docusaurus/debug.html"},{"revision":"7b132aafc3eb655a16945743b57ba867","url":"__docusaurus/debug/config.html"},{"revision":"df1ce2971b98a7c32837b3e870893091","url":"__docusaurus/debug/content.html"},{"revision":"ff90384b90aaa482d8cd67468c50b6ef","url":"__docusaurus/debug/globalData.html"},{"revision":"2d3ab3840ece42604515789090158599","url":"__docusaurus/debug/metadata.html"},{"revision":"b0201556c8fdcdb3b92abe60b34e3e61","url":"__docusaurus/debug/registry.html"},{"revision":"19d3c67578b67943b517a391f1553569","url":"__docusaurus/debug/routes.html"},{"revision":"97ef48529d1e6e1b6c00e016f29e59ff","url":"404.html"},{"revision":"c241b1e830b64be7ae68d3181d3de0a6","url":"assets/css/styles.f179d114.css"},{"revision":"89966e16ee5c9907cb9f3f422b87a72f","url":"assets/js/003b49f9.12210af2.js"},{"revision":"b78faca260d8cb3e03338dc4cf8f0e17","url":"assets/js/152.2879f71a.js"},{"revision":"6fa6f261fc67ca18f662da5abd07d036","url":"assets/js/17896441.1d360417.js"},{"revision":"516274704cb2dd46bb41b2c77a237676","url":"assets/js/1a4e3797.73f56dac.js"},{"revision":"f49ed679e58d0b0c8b8733166bb4c907","url":"assets/js/22dd74f7.c868207f.js"},{"revision":"12a2ef23f406107f05fb1435641dc4ca","url":"assets/js/23abe487.67a0649f.js"},{"revision":"4dd80c019006f04c50f85667dcff66d2","url":"assets/js/3c0a97de.95cc0a34.js"},{"revision":"6d91f7ba48fb8d534d75ed44392dc059","url":"assets/js/576.cdafb8cc.js"},{"revision":"a135d82e899848409aa62ceb5f03554c","url":"assets/js/591.902b1791.js"},{"revision":"9166e7f43ad8f684a53e187c73aca922","url":"assets/js/5ca74542.015ae1ff.js"},{"revision":"22810cc3758edec24f992c70ea7fc763","url":"assets/js/5e95c892.02078198.js"},{"revision":"3b4d5cfb4856697ac850fb1d30e8cd64","url":"assets/js/649.9a6961f8.js"},{"revision":"a77458d94ad4214308746311c24c30f3","url":"assets/js/6794d4cd.d6162667.js"},{"revision":"576deef15dbb7c3f5bdd3417d0d86deb","url":"assets/js/68e633d4.326c0945.js"},{"revision":"853641f2cb2a4385aae73067c2e02bdd","url":"assets/js/717a4525.a70c7e5b.js"},{"revision":"3b014a55c8bc0e06d7f5eab9186a075b","url":"assets/js/82.24f8379a.js"},{"revision":"25d9a7780d498bb73d147d9460fb3458","url":"assets/js/883.96c53632.js"},{"revision":"94f683ed1d70c79c1d8541fbde43a765","url":"assets/js/903.266c3f77.js"},{"revision":"1805d7c9d62d1c1a3182a2114f713f82","url":"assets/js/946bd85a.b9fb3053.js"},{"revision":"a3b96957f067722cc0f672d30bb82fa5","url":"assets/js/a4b529fe.341c5d2e.js"},{"revision":"e3f807fd467d27c9aa71c24da992677d","url":"assets/js/a7bd4aaa.94b43be7.js"},{"revision":"3bff431bd885bd3c36bab2ca1c26bfa3","url":"assets/js/a94703ab.5f1134df.js"},{"revision":"9137f75b4d3f64d3490035c7b7f03687","url":"assets/js/aba21aa0.eb7bf6f2.js"},{"revision":"d45f166006e05d9c423a4b6536a23dfb","url":"assets/js/b38399eb.b50206ab.js"},{"revision":"4267c7ef7f4fd959fed058e1ef435405","url":"assets/js/ba8b3534.c212ece2.js"},{"revision":"babf611af288d78166ee5e8729cedf6e","url":"assets/js/c141421f.faee654a.js"},{"revision":"dc70a43dc73e4800c29089ee33f5381f","url":"assets/js/ec3f407b.f3e43dc0.js"},{"revision":"ad472c4978ab977a42f1b402d0391faf","url":"assets/js/ede3a018.c7928b24.js"},{"revision":"9fe9589358cb2366d981a9ab25c5c171","url":"assets/js/f217256c.70a0c149.js"},{"revision":"6972e4b6780c283ab5b43b4673dcca89","url":"assets/js/main.70b00b4a.js"},{"revision":"94f23766a3ee0d8edca548c46541a4e6","url":"assets/js/runtime~main.6623b028.js"},{"revision":"e6104fbd40b5d6320db81f0214e44396","url":"contributing/code-of-conduct.html"},{"revision":"2c59acbb48e31610ad468d14425237cb","url":"contributing/commit-convention.html"},{"revision":"df74330a99561e0f082ced869edfa1c8","url":"contributing/contribution-guide.html"},{"revision":"4f6e7cae896e38ca6575f28ac9a52a1d","url":"contributing/funding.html"},{"revision":"822653a6f8fd032be17fae56944c53f4","url":"index.html"},{"revision":"4ef29bfb99deeb2c01654880a0a79aa2","url":"manifest.json"},{"revision":"09040b07b0faf327f655b53af8fb51ee","url":"search.html"},{"revision":"08d88e5677bac5b5d3b51a0e17cb63fb","url":"text-commands.html"},{"revision":"42074535ef68beb68f7335092da3afb8","url":"assets/images/text_command-782df5bb3c7d38123b1912df5b03d535.png"},{"revision":"42074535ef68beb68f7335092da3afb8","url":"img/content/text_command.png"},{"revision":"f43ddaffb2ecb4d2dace5f2e00c27509","url":"img/favicon.ico"},{"revision":"2698a4a2882cc09556e0f95c34a7ab2d","url":"img/icons/icon-72x72.png"},{"revision":"2698a4a2882cc09556e0f95c34a7ab2d","url":"img/logo-small.png"},{"revision":"b91591ef7b01350f7e1aac0e704501f1","url":"img/logo.png"},{"revision":"1f4646a0899ab726e00f5c86a9271222","url":"img/logo.svg"}]; const controller = new workbox_precaching__WEBPACK_IMPORTED_MODULE_0__.PrecacheController({ // Safer to turn this true? fallbackToNetwork: true, diff --git a/text-commands.html b/text-commands.html index ddc7d79..af657f9 100644 --- a/text-commands.html +++ b/text-commands.html @@ -14,12 +14,12 @@ - +

Text Commands

Create a simple command handler for messages using @TextCommand.

-
src/app.service.ts
import { Injectable } from '@nestjs/common';
import { Context, TextCommand, TextCommandContext, Arguments } from '@nestgramjs/core';

@Injectable()
export class AppService {
@TextCommand({
name: 'start',
description: 'Start command!',
})
public onStart(@Context() [message]: TextCommandContext) {
return message.reply('Start command triggered!');
}
}
+
src/app.service.ts
import { Injectable } from '@nestjs/common';
import { Context, TextCommand, CommandContext } from '@nestgramjs/core';

@Injectable()
export class AppService {
@TextCommand({
name: 'start',
description: 'Start command!',
})
public onStart(@Context() [ctx]: TextCommandContext) {
return ctx.reply('Start command triggered!');
}
}

If all goes well, you should see something like this:

Text Command