luadch / luadch/scripts

Load categories on timer - WhenAndWhatToShow and one additional question

Open
#22 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
5
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I get "Command incomplete" as a response when I try to enter "all" for the parameter:
["12:34"] = "all",

I'm no coder or so, but I did find some entries about this command:
`elseif FreshStuff.WhenAndWhatToShow[ os.date( "%H:%N" ) ] == "all" then`
`FreshStuff.Broadcast( FreshStuff.MsgAll, botname() )`
On line 703-704, I think.

What happens from there I don't know.
Did find a line that was remarked, but at the time writing this, I don't remember which one.
I did remove this remark, but no change.

And, one additional question, since there's no documentation about this script to speak of, but how do I issue a command, like "!prunerel", preferably in the same area as the timing for releases? Have I missed any such function in the script file?

Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Lua script around lines 703-704 and trace how os.date("%H:%N") is used with FreshStuff.WhenAndWhatToShow. Check why the value "all" produces "Command incomplete" and determine whether the script documents or supports issuing !prunerel alongside timed releases. Done means the timer case and command behavior are understood and documented or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.