[CSM] Faster PMs [pm]

Post Reply
User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

[CSM] Faster PMs [pm]

by ChimneySwift » Post

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.
A spoon is basically a tiny bowl with a stick on it

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [CSM] Faster PMs [pm]

by ManElevation » Post

aha!
This makes so much sense.
Great, thx for the post!
+1
My Public Mods! Discord: Rottweiler Games#3368

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [CSM] Faster PMs [pm]

by Lone_Wolf » Post

I missed this topic. Should have made my suggestion here...
I look forward to the update! (If you feel like updating it)
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Post

Lone_Wolf wrote:I look forward to the update! (If you feel like updating it)
Yep, I'll definitely be updating it. Good suggestion!
A spoon is basically a tiny bowl with a stick on it

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [CSM] Faster PMs [pm]

by Lone_Wolf » Post

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
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Post

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.
A spoon is basically a tiny bowl with a stick on it

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: [CSM] Faster PMs [pm]

by BBmine » Post

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.

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Post

Update: for loops are a pain in the butt and I'm a n00b at lua. Working on it tho...
A spoon is basically a tiny bowl with a stick on it

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: [CSM] Faster PMs [pm]

by ChimneySwift » Post

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.
A spoon is basically a tiny bowl with a stick on it

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest