From 7399b8cc5f6db30e3433f94eb1bb9f612a2aa3ae Mon Sep 17 00:00:00 2001 From: Roman Khabarov Date: Tue, 9 Jul 2024 20:28:05 +0200 Subject: [PATCH] Deploy website - based on e47cbadd832ef6f5a9492b92c197188966f6c48c --- 404.html | 2 +- __docusaurus/debug.html | 2 +- __docusaurus/debug/config.html | 2 +- __docusaurus/debug/content.html | 2 +- __docusaurus/debug/globalData.html | 2 +- __docusaurus/debug/metadata.html | 2 +- __docusaurus/debug/registry.html | 2 +- __docusaurus/debug/routes.html | 2 +- assets/js/717a4525.36361210.js | 1 + assets/js/717a4525.e0369e81.js | 1 - ...runtime~main.79de83b3.js => runtime~main.3d7000a3.js} | 2 +- contributing/code-of-conduct.html | 2 +- contributing/commit-convention.html | 2 +- contributing/contribution-guide.html | 2 +- contributing/funding.html | 2 +- index.html | 2 +- search.html | 2 +- sw.js | 2 +- text-commands.html | 9 ++++++--- 19 files changed, 23 insertions(+), 20 deletions(-) create mode 100644 assets/js/717a4525.36361210.js delete mode 100644 assets/js/717a4525.e0369e81.js rename assets/js/{runtime~main.79de83b3.js => runtime~main.3d7000a3.js} (97%) diff --git a/404.html b/404.html index 56b3cc7..0ee2c1e 100644 --- a/404.html +++ b/404.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug.html b/__docusaurus/debug.html index 6db1726..499f7de 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 075b422..663a511 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 573a755..1354656 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 33ca3e8..fda3dd9 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 15b6272..6fd8d6e 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 4179a6e..0919130 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 d944308..c3363f6 100644 --- a/__docusaurus/debug/routes.html +++ b/__docusaurus/debug/routes.html @@ -14,7 +14,7 @@ - + diff --git a/assets/js/717a4525.36361210.js b/assets/js/717a4525.36361210.js new file mode 100644 index 0000000..733f72f --- /dev/null +++ b/assets/js/717a4525.36361210.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[365],{221:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>l,frontMatter:()=>m,metadata:()=>a,toc:()=>i});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},r=void 0,a={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={},i=[{value:"Arguments",id:"arguments",level:2}];function d(e){const t={code:"code",h2:"h2",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 } 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"})}),"\n",(0,o.jsx)(t.h2,{id:"arguments",children:"Arguments"}),"\n",(0,o.jsx)(t.p,{children:"You can also use arguments with text commands. Arguments are the words after the command name."}),"\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() [ctx]: TextCommandContext, @Arguments() args: string[]) {\n return ctx.reply(args.join(' '));\n }\n}\n"})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(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:()=>r,x:()=>a});var o=n(7378);const s={},m=o.createContext(s);function r(e){const t=o.useContext(m);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(m.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/717a4525.e0369e81.js b/assets/js/717a4525.e0369e81.js deleted file mode 100644 index 142a102..0000000 --- a/assets/js/717a4525.e0369e81.js +++ /dev/null @@ -1 +0,0 @@ -"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 } 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.79de83b3.js b/assets/js/runtime~main.3d7000a3.js similarity index 97% rename from assets/js/runtime~main.79de83b3.js rename to assets/js/runtime~main.3d7000a3.js index 7924e2b..d64a1ce 100644 --- a/assets/js/runtime~main.79de83b3.js +++ b/assets/js/runtime~main.3d7000a3.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(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:"e0369e81",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{"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:"36361210",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 f6fd240..8154401 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 db87b32..9e1fb3d 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 fb265df..b60922e 100644 --- a/contributing/funding.html +++ b/contributing/funding.html @@ -14,7 +14,7 @@ - + diff --git a/index.html b/index.html index f634618..fdab1f0 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - + diff --git a/search.html b/search.html index bff0dd7..c06a201 100644 --- a/search.html +++ b/search.html @@ -14,7 +14,7 @@ - + diff --git a/sw.js b/sw.js index 2230a20..c41376e 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":"46b800323cfd51b925787c79a708ce15","url":"__docusaurus/debug.html"},{"revision":"4e850039db2dfc327ad1a4b50ee45e3f","url":"__docusaurus/debug/config.html"},{"revision":"e3df780f7d91660444b87b7650e6435e","url":"__docusaurus/debug/content.html"},{"revision":"238c2ca591b5d563a9ec74c404a8e82e","url":"__docusaurus/debug/globalData.html"},{"revision":"c17a16f96139d40a99451a551ab3d306","url":"__docusaurus/debug/metadata.html"},{"revision":"5c9b902b0cd58f4e70113f9cadf9f6cd","url":"__docusaurus/debug/registry.html"},{"revision":"661521deec33f61162bee096f7dbeab7","url":"__docusaurus/debug/routes.html"},{"revision":"c53fb636cd8b8df061ef7e80597c7728","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":"b54f10d540b1ec4d532f532c95b62262","url":"assets/js/717a4525.e0369e81.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":"5c05df1d7afdc75750c24ba60c474937","url":"assets/js/runtime~main.79de83b3.js"},{"revision":"024f1907ff649e25067dba7fa6d86fa1","url":"contributing/code-of-conduct.html"},{"revision":"44e1697f537c33de40badcc6c964c041","url":"contributing/commit-convention.html"},{"revision":"2d4d4c61bce8d801e3929302260c30e1","url":"contributing/contribution-guide.html"},{"revision":"d39b23318282f51906337f4e48802225","url":"contributing/funding.html"},{"revision":"72f4d3b0806ae3c73185898264802d25","url":"index.html"},{"revision":"4ef29bfb99deeb2c01654880a0a79aa2","url":"manifest.json"},{"revision":"68488df3826d559647569d6c92649fcc","url":"search.html"},{"revision":"e82bb860dcbeb569eb5b8c607acddece","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":"8b815092a35f71b58bdf49d5b8f184cb","url":"__docusaurus/debug.html"},{"revision":"f738debd81b90f0919aeaabf9115a848","url":"__docusaurus/debug/config.html"},{"revision":"f5111bf2a3ee3656413358ceb0483750","url":"__docusaurus/debug/content.html"},{"revision":"cf6f13a8f0c7f5d732366f00c480d380","url":"__docusaurus/debug/globalData.html"},{"revision":"eccf7e990875536a7faf5af7cacef47d","url":"__docusaurus/debug/metadata.html"},{"revision":"73623c9c89304184eb5f66612aedf5a1","url":"__docusaurus/debug/registry.html"},{"revision":"51a9cd75eddf5dc7f3e2cf29726498ba","url":"__docusaurus/debug/routes.html"},{"revision":"776217dd5cbce8d310d65dba825beb31","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":"ec6f60ada4ec14171c553b0b21d22d48","url":"assets/js/717a4525.36361210.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":"7c69f6110f9e8b487876942699ef0b5b","url":"assets/js/runtime~main.3d7000a3.js"},{"revision":"2596a17c48d1630a2be13347893cf5c7","url":"contributing/code-of-conduct.html"},{"revision":"2f7fd8b93e709972273af214f0a9aef8","url":"contributing/commit-convention.html"},{"revision":"8560ea2616a9ff3d7483390d5c396e7b","url":"contributing/contribution-guide.html"},{"revision":"f4e4d5bddb8ad10ab75c080b9c9e86b8","url":"contributing/funding.html"},{"revision":"7ff25ae6d2a3e935278217f2b60fbda6","url":"index.html"},{"revision":"4ef29bfb99deeb2c01654880a0a79aa2","url":"manifest.json"},{"revision":"a76b99d1b5590c0823426b0b8cf4d3ca","url":"search.html"},{"revision":"fec8ca3150bf417d8dd131bfd78d56ca","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 dbfe0e4..e60a50f 100644 --- a/text-commands.html +++ b/text-commands.html @@ -14,13 +14,16 @@ - + -

Text Commands

Create a simple command handler for messages using @TextCommand.

+

Text Commands

Create a simple command handler for messages using @TextCommand.

src/app.service.ts
import { Injectable } from '@nestjs/common';
import { Context, TextCommand, TextCommandContext } 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

+

Text Command

+

Arguments

+

You can also use arguments with text commands. Arguments are the words after the command name.

+
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() [ctx]: TextCommandContext, @Arguments() args: string[]) {
return ctx.reply(args.join(' '));
}
}
\ No newline at end of file