Comments (12)
@Jadiction Please go ahead and test it and give me feedback.
Works good! Thank you!
To me, this looks better
rather than repeating the "Status update" when the information in the embed shows everything needed
from docker-palworld-dedicated-server.
WEBHOOK_ALL_TITLE
will never be not set, because it goes in the Dockerfile for default-sets and Backwards-Compability.
This makes things more complicated. But when i understand you correctly you would offer:
Ah true, after thinking about it, the first solution wouldn't work, my bad. Was thinking differently.
if "isset" WEBHOOK_ALL_TITLE -> Add line and value
if "empty" WEBHOOK_ALL_TITLE -> Remove line
Yeah, this would work well. Sorry for the delay.
from docker-palworld-dedicated-server.
If you like this project, please consider giving this repo and the Docker-Hub-Repo a Star.
from docker-palworld-dedicated-server.
Hey @Jadiction - Should the line "content": WEBHOOK_ALL_TITLE,
be removed if the ENV variable is set to empty/nothing?
from docker-palworld-dedicated-server.
Also please use the Prefix of titles like i set it up for FR, that helps me to stay organized.
from docker-palworld-dedicated-server.
Hey @Jadiction - Should the line
"content": WEBHOOK_ALL_TITLE,
be removed if the ENV variable is set to empty/nothing?
Good question, certain webhooks may require the content to be specified (even if empty).
Depending on how you'd like it, I can think of 2 solutions:
- If the ENV variable is specified, the line gets used (aka don't check if empty, only if set), otherwise exclude the line.
- To play it safe and default it to "Status update," check for the ENV variable to be "NULL" to exclude it
if ENV var is set & not "null", include line else if the ENV variable is not empty, content = ENV var, else content = "Status update"
I understand this makes it a little specific and would need some extra explaining in the documentation, but I believe it adds customizability.
from docker-palworld-dedicated-server.
WEBHOOK_ALL_TITLE
will never be not set, because it goes in the Dockerfile for default-sets and Backwards-Compability.
This makes things more complicated. But when i understand you correctly you would offer:
if "isset" WEBHOOK_ALL_TITLE -> Add line and value
if "empty" WEBHOOK_ALL_TITLE -> Remove line
Right? I think talking in pseudo-code is more easy to explain than very comlicated text 🤣
from docker-palworld-dedicated-server.
@Jadiction Ping
from docker-palworld-dedicated-server.
It doesnt really save space but it works:
Pushing it to develop and to latest later.
from docker-palworld-dedicated-server.
See https://discord.com/channels/532141442731212810/1209949579185881139/1211257198869749800
from docker-palworld-dedicated-server.
@Jadiction Please go ahead and test it and give me feedback.
from docker-palworld-dedicated-server.
@Jadiction all good, happy to help!
from docker-palworld-dedicated-server.
Related Issues (20)
- [Bug Report] Player join/left issue with character creation HOT 1
- [Bug Report] Player join/leave cannot have commas in name HOT 1
- [Bug Report] Player join/leave doesn't work with players of the same name HOT 1
- [Bug Report] Crash Loop (LowLevelFatalError) HOT 4
- [Feature Request] Automatic Restart should not wait 15 minutes when no player is on the server
- [Bug Report] RCON Port setting change in 1.50 HOT 6
- [Bug Report] Error when auto restart HOT 3
- docker部署后无法正常使用RCON,cli: execute: auth: rcon: dial tcp: lookup tcp/###RCON_PORT###:unknown port HOT 6
- [Feature Request] Make gosu-binary building more transparent
- [Bug Report] Log file consumes all remaining HDD space associated with Docker system HOT 3
- [Feature Request] Implement server OoM crash detection and restart HOT 2
- [Bug Report] RCON Log gets cut off
- [Bug Report] New alias for rconcli with timestamp
- [Bug Report] After docker container update Server failed to start with permission denied HOT 11
- [Bug Report] Container backups also backup the Palworld built-in backups HOT 1
- [Bug Report] Automatic Restart stopped working HOT 2
- [Question] 您好,我在游戏中,会接受到容器显示的备份 通知,我想询问下这个备份通知能否不在游戏内显示,可以在容器日志中 HOT 3
- [Feature Request] use semantic versioning HOT 7
- [Bug Report] No config found, generating one HOT 3
- [Bug Report] Your descriptive title here! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-palworld-dedicated-server.