Reinvention of the announcements #4430
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#4430
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we announce every hour. All of them. That's a wall of text. They need to be set with one long string. So everyone who wants to add or remove a line needs to give the whole string. That's bad, too.
This is the whole code:
We'd like to change that so that we have more control over the announcements.
/announcement_list
, which lists all current announcements with ID, owner and messageannouncement_show ID
, which shows one specific announcement with all metadataannouncement_delete ID
, which removes one specific announcement with IDannouncement_set
, which adds a new announcement. You could choose $ or # as separators for the parametersannouncement_say all|ID
which takes a parameter. If this parameter is "all", then show all announcements at once to the public chat. If the parameter is a specific ID, then only show the announcement of this ID.Reinvention of the annoucnementsto Reinvention of the announcementsIf there are two 20-min announcements, they should be shown every 10 minutes? How should they interact with the 1-hour ones?
I feel this system may need some pre-defined time slots, fixed intervals (60/30 min?) and maybe grouping of announcements into one to prevent spam?
Hello, here is the 'rewrite' of the code with the requested additions. However I haven't tested it, there may be errors...
No sanity checks on parameters, will crash if given words instead of numbers, for example.
Broken in several places, can't test it after a couple of small fixes.
Since it does not depend on anything yl_commons really, you could test it as a separate mod and fix it.
And maybe even create a repo for it here?
Instead of
consider using just one
output = output..
with string.formatAnd just use one date time format