Page 1 of 1

[CSM] Faster PMs [pm]

Posted: Thu Oct 19, 2017 09:02
by ChimneySwift
PM

A simple CSM designed to make sending PMs just a little bit easier.

License: MIT

Download
Github
Spoiler
We've all been there. You want to talk to someone privately about something, but the recipient's name consists of 3 words and no less than 12 numbers, typing it every time takes forever and you keep messing it up. Enter the PM CSM, set the long name only once, then used a simple, short command to repetitively send PMs.

Re: [CSM] Faster PMs [pm]

Posted: Thu Oct 19, 2017 18:58
by ManElevation
aha!
This makes so much sense.
Great, thx for the post!
+1

Re: [CSM] Faster PMs [pm]

Posted: Fri Oct 20, 2017 02:56
by Lone_Wolf
I missed this topic. Should have made my suggestion here...
I look forward to the update! (If you feel like updating it)

Re: [CSM] Faster PMs [pm]

Posted: Fri Oct 20, 2017 03:38
by ChimneySwift
Lone_Wolf wrote:I look forward to the update! (If you feel like updating it)
Yep, I'll definitely be updating it. Good suggestion!

Re: [CSM] Faster PMs [pm]

Posted: Fri Oct 20, 2017 03:46
by Lone_Wolf
ChimneySwift wrote:
Lone_Wolf wrote:I look forward to the update! (If you feel like updating it)
Yep, I'll definitely be updating it. Good suggestion!
You might want to separate the cmds though. Maybe:
.set <playername> to set the single recipient msg
.msg <playername> <message> to PM the single recipient
.all <message> to message the group. Maybe .t <message> the t being short for team
Probably want this too:
.list shows what player is set for the single message and what players are in the multiple message group
For people that haven't seen my suggestion on the Github repo:
.add <playername> add a recipient to the multiple message group
.del <playername> remove a player from the multiple message group

Re: [CSM] Faster PMs [pm]

Posted: Fri Oct 20, 2017 03:57
by ChimneySwift
Lone_Wolf wrote:
ChimneySwift wrote:
Lone_Wolf wrote:I look forward to the update! (If you feel like updating it)
Yep, I'll definitely be updating it. Good suggestion!
You might want to separate the cmds though. Maybe:
.set <playername> to set the single recipient msg
.msg <playername> <message> to PM the single recipient
.all <message> to message the group. Maybe .t <message> the t being short for team
Probably want this too:
.list shows what player is set for the single message and what players are in the multiple message group
For people that haven't seen my suggestion on the Github repo:
.add <playername> add a recipient to the multiple message group
.del <playername> remove a player from the multiple message group
Yeah true, but I figure if they need to message a single player as a once-off and don't want to change their recipient, they can just send it normally. I was thinking having something like this:

.pm_set <playername> to set the recipient
.pm <message> to PM the recipient
.pm_add <playername> to add to a group list, which could have unlimited recipients, and is a completely separate list when compared to the single recipient (Save to modstorage?)
.pm_all <message> to send a PM to everyone in the group recipients list. Instead of having a separate command, you could run this command with no parameters to list the members of the PM group.
.pm_del <playername> to remove a player from the group

I want to keep the list of commands themselves as short as possible to make them very fast to type, while also not making them too general so it's easy to have interference from other CSMs (thus adding pm_ before all of the secondary commands.

In future I may also have 2 or 3 .pm commands which would message separate people.

Re: [CSM] Faster PMs [pm]

Posted: Thu Oct 26, 2017 13:36
by BBmine
In 0.5.0-dev, you can just do [Tab] to autocomplete the name. In 0.4.16, you can also do that, but the player has to be close enough.

Re: [CSM] Faster PMs [pm]

Posted: Sun Oct 29, 2017 10:07
by ChimneySwift
Update: for loops are a pain in the butt and I'm a n00b at lua. Working on it tho...

Re: [CSM] Faster PMs [pm]

Posted: Sat Nov 04, 2017 02:35
by ChimneySwift
Update:

Ok I've added group messaging functionality. You can now add names to, remove names from and clear a list of recipients, then send a message to everyone on that list with a simple command. You can add as many recipients as you wish, however considering the CSM loops over the list of recipients and sends them via the /msg command, the chat can get a little spammy if you add too many players. Fixing this is on my Todo list.

I'm still not sure whether it would be useful to have the player list save to modstorage, if you feel it should or have any other suggestions, please let me know.

Anyway, the readme has been updated, however the new commands are as follows:
  • .pm_group <message> sends the massage to each recipient on the list. Input no parameters to see the players currently in the list.
  • .pm_add <playername> adds a player to the list, remember playernames are case-sensitive.
  • .pm_remove <playername> removes a player from the list, remember playernames are case-senstitve, if you input a name that is not on the list the CSM will tell you.
  • .pm_clear clears the player list.
I've also fixed a bug where the client will crash if you try to send a message with .pm without first setting a recipient.