diff --git a/404.html b/404.html index 03af9f58c..1a42a0527 100644 --- a/404.html +++ b/404.html @@ -10,7 +10,7 @@ - +
diff --git a/advanced/kubernetes/index.html b/advanced/kubernetes/index.html index 30b00b09c..db6bb9ebd 100644 --- a/advanced/kubernetes/index.html +++ b/advanced/kubernetes/index.html @@ -10,7 +10,7 @@ - + diff --git a/advanced/palworld-directory/index.html b/advanced/palworld-directory/index.html index 031c936bf..068351d00 100644 --- a/advanced/palworld-directory/index.html +++ b/advanced/palworld-directory/index.html @@ -10,7 +10,7 @@ - + diff --git a/assets/js/8de80f25.c592c274.js b/assets/js/8de80f25.c592c274.js deleted file mode 100644 index 190f51947..000000000 --- a/assets/js/8de80f25.c592c274.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocusaurus=self.webpackChunkdocusaurus||[]).push([[825],{8960:(e,s,o)=>{o.r(s),o.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>n,metadata:()=>t,toc:()=>a});var r=o(4848),i=o(8453);const n={sidebar_position:1},d="Using discord webhooks",t={id:"guides/discord/discord-webhooks",title:"Using discord webhooks",description:"1. Generate a webhook url for your discord server in your discord's server settings.",source:"@site/docs/guides/discord/discord-webhooks.md",sourceDirName:"guides/discord",slug:"/guides/discord/discord-webhooks",permalink:"/guides/discord/discord-webhooks",draft:!1,unlisted:!1,editUrl:"https://github.com/thijsvanloef/palworld-server-docker/tree/main/docusaurus/docs/guides/discord/discord-webhooks.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Discord integration",permalink:"/category/discord-integration"},next:{title:"Automatic Reboots",permalink:"/guides/automatic-reboots"}},c={},a=[];function u(e){const s={code:"code",h1:"h1",li:"li",ol:"ol",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{id:"using-discord-webhooks",children:"Using discord webhooks"}),"\n",(0,r.jsxs)(s.ol,{children:["\n",(0,r.jsxs)(s.li,{children:["\n",(0,r.jsx)(s.p,{children:"Generate a webhook url for your discord server in your discord's server settings."}),"\n"]}),"\n",(0,r.jsxs)(s.li,{children:["\n",(0,r.jsxs)(s.p,{children:["Set the environment variable with the unique token at the end of the discord webhook url example: ",(0,r.jsx)(s.code,{children:"https://discord.com/api/webhooks/1234567890/abcde"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"send discord messages with docker run:"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-sh",children:'-e DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/1234567890/abcde" \\\n-e DISCORD_PRE_UPDATE_BOOT_MESSAGE="Server is updating..." \\\n'})}),"\n",(0,r.jsx)(s.p,{children:"send discord messages with docker compose:"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-yaml",children:"- DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1234567890/abcde\n- DISCORD_PRE_UPDATE_BOOT_MESSAGE=Server is updating...\n"})})]})}function l(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8453:(e,s,o)=>{o.d(s,{R:()=>d,x:()=>t});var r=o(6540);const i={},n=r.createContext(i);function d(e){const s=r.useContext(n);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function t(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),r.createElement(n.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8de80f25.cef5877b.js b/assets/js/8de80f25.cef5877b.js new file mode 100644 index 000000000..b1355a4b1 --- /dev/null +++ b/assets/js/8de80f25.cef5877b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocusaurus=self.webpackChunkdocusaurus||[]).push([[825],{8960:(e,s,o)=>{o.r(s),o.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>r,metadata:()=>t,toc:()=>a});var i=o(4848),n=o(8453);const r={sidebar_position:1},d="Using discord webhooks",t={id:"guides/discord/discord-webhooks",title:"Using discord webhooks",description:"1. Generate a webhook url for your discord server in your discord's server settings.",source:"@site/docs/guides/discord/discord-webhooks.md",sourceDirName:"guides/discord",slug:"/guides/discord/discord-webhooks",permalink:"/guides/discord/discord-webhooks",draft:!1,unlisted:!1,editUrl:"https://github.com/thijsvanloef/palworld-server-docker/tree/main/docusaurus/docs/guides/discord/discord-webhooks.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Discord integration",permalink:"/category/discord-integration"},next:{title:"Automatic Reboots",permalink:"/guides/automatic-reboots"}},c={},a=[];function u(e){const s={admonition:"admonition",code:"code",h1:"h1",li:"li",ol:"ol",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.h1,{id:"using-discord-webhooks",children:"Using discord webhooks"}),"\n",(0,i.jsxs)(s.ol,{children:["\n",(0,i.jsxs)(s.li,{children:["\n",(0,i.jsx)(s.p,{children:"Generate a webhook url for your discord server in your discord's server settings."}),"\n"]}),"\n",(0,i.jsxs)(s.li,{children:["\n",(0,i.jsxs)(s.p,{children:["Set the environment variable with the unique token at the end of the discord webhook url example: ",(0,i.jsx)(s.code,{children:"https://discord.com/api/webhooks/1234567890/abcde"})]}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"send discord messages with docker run:"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-sh",children:'-e DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/1234567890/abcde" \\\n-e DISCORD_PRE_UPDATE_BOOT_MESSAGE="Server is updating..." \\\n'})}),"\n",(0,i.jsx)(s.p,{children:"send discord messages with docker compose:"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-yaml",children:"- DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1234567890/abcde\n- DISCORD_PRE_UPDATE_BOOT_MESSAGE=Server is updating...\n"})}),"\n",(0,i.jsx)(s.admonition,{type:"tip",children:(0,i.jsxs)(s.p,{children:["You can mention people in the messages by adding ",(0,i.jsx)(s.code,{children:"<@user_id>"})," in the message!"]})})]})}function l(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,s,o)=>{o.d(s,{R:()=>d,x:()=>t});var i=o(6540);const n={},r=i.createContext(n);function d(e){const s=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function t(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:d(e.components),i.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.bf7efa3b.js b/assets/js/runtime~main.381ec3a6.js similarity index 98% rename from assets/js/runtime~main.bf7efa3b.js rename to assets/js/runtime~main.381ec3a6.js index 023ed623c..ca725ef69 100644 --- a/assets/js/runtime~main.bf7efa3b.js +++ b/assets/js/runtime~main.381ec3a6.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,t,r,f,o={},c={};function n(e){var a=c[e];if(void 0!==a)return a.exports;var t=c[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=o,n.c=c,e=[],n.O=(a,t,r,f)=>{if(!t){var o=1/0;for(i=0;isend discord messages with docker run:
-e DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/1234567890/abcde" \
-e DISCORD_PRE_UPDATE_BOOT_MESSAGE="Server is updating..." \
send discord messages with docker compose:
-- DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1234567890/abcde
- DISCORD_PRE_UPDATE_BOOT_MESSAGE=Server is updating...
- DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1234567890/abcde
- DISCORD_PRE_UPDATE_BOOT_MESSAGE=Server is updating...
You can mention people in the messages by adding <@user_id>
in the message!