Bios-Marcel / cordless

The Discord terminal client you never knew you wanted.
BSD 3-Clause "New" or "Revised" License
1.65k stars 135 forks source link

Scripting interface for customisation #10

Closed Southclaws closed 5 years ago

Southclaws commented 5 years ago

What do you want

Inspired by the days of mIRC and other clients. This would provide users a way to do things like modify messages prior to sending, add AFK messages ("gone fishing.") and other cool things by triggering events in a small VM.

The two contenders for this would be:

(or why not both!?)

Why

I thought of this while playing with the colour feature. While cool, the colour feature doesn't seem like something that should be available by default while at the same time it's trivial to implement - simply replace [yellow] with \033[33m.

This could also lead to some other simple features, nothing too automated as we don't want to give users too much of a chance to get banned with bot-like messages but simple afk messages when @'d would be useful along with fun /shrug like commands to insert common emoticons ( ͡° ͜ʖ ͡°)

Bios-Marcel commented 5 years ago

Initially implemented with https://github.com/Bios-Marcel/cordless/pull/29.

Currently there is just one method called onMessageSend. I plan to add more soon.

We might still add a second language. At least for the sake of not accidentaly coupling to tight!