forum

Allow /np command to use parameters

posted
Total Posts
10
This is a feature request. Feature requests can be voted up by supporters.
Current Priority: +10
Topic Starter
Nathanael
An alternative request of this thread: Use /np in middle of message

Instead of putting a keyword to replace it as a text, it might be better to change the way /np works.
I'm sure most of us know how /np works and it only outputs the beatmap regardless of any parameters.

My request is to allow /np to have parameters, outputs as a normal text instead of an action (/me) message.
The beatmap link is added to the end of the parameter like these examples:

  • Idle
    Input: /np Have you guys checked this beatmap?
    Output: Have you guys checked this beatmap? [https://osu.ppy.sh/s/151720 ginkiha - EOS]

    Spectating/Playing/Watching/Testplaying
    Input: /np Have you guys checked this beatmap?
    Output: Have you guys checked this beatmap? [https://osu.ppy.sh/b/373781&m=0 ginkiha - EOS [Lycoris]]
If there are no parameters in the command, then the actual message is printed out.

  • * Nathanael is listening to [https://osu.ppy.sh/s/151720 ginkiha - EOS]
    * Nathanael is playing [https://osu.ppy.sh/b/421532&m=0 ginkiha - EOS [RLC's Another]]
  • Advantages
  1. No need for keywords and text replacement.
  2. Avoids any errors at [link text] or [[wiki]] formats
  3. Easier and less work for our developers (possible than the alternative one).
  • Disadvantages
  1. Unable to print out the beatmap link at the middle (e.g. "Play <beatmap> and I'll spectate you")
Sync
I hardly see "Unable to print out the beatmap link at the middle (e.g. "Play <beatmap> and I'll spectate you")" as a disadvantage because "[map_url] Play this and I'll spectate you" works just as well. Good idea.
Pawsu
aw yes, I love this. we need this, and I'm surprised no one else has requested this. :o
FrzR
Where are my stars when I need them.

supporter is gift so rip
-Maus-
/sup
Italo

Nathanael wrote:

Easier and less work for our developers (possible than the alternative one).
Disagree, the implementation has exactly(none) the same difficulty as in the middle of message.
Topic Starter
Nathanael

Italo wrote:

Nathanael wrote:

Easier and less work for our developers (possible than the alternative one).
Disagree, the implementation has exactly(none) the same difficulty as in the middle of message.
I find this way easier to implement imo.

Possible changes for this request:
  1. Client checks if there are parameters in /np (if no, output default)

    • You'll just have to edit the /np command to add a basic If-Else condition for the parameters.
      If (there are parameters) goto (new output) Else goto (default output)
  2. Client sends the message along with the beatmap link depending on the user's status (idle,playing, etc.).

    • The client already has a way to check the user's status so the default /np out can be simply copied for the new output.
      Default output message (of the copy) will be changed to the new output (<message> <beatmap>).
Your request Needs more checking for more things:
  1. Client checks for keywords in the line. -- Simple If-Else
  2. Client limits to 1 keyword if there are two or more detected. -- Avoids spamming of long texts
  3. Client checks if keyword is in a [link text] and [[wiki]] format. -- Avoids misuse
  4. Client removes other detected keywords -- Removes further keywords that are unnecessary (since it is only limited to 1)
  5. Client sends the message with the keyword replaced to the beatmap link.
Gumpy
It's always annoying to have to send two messages to friends for example.

STARS!
- Marco -
STARS (ノ◕ヮ◕)ノ*:・゚✧
Deppyforce
Waw we need this
Please sign in to reply.

New reply