dogancelik / irccloud-sws

✏️ Enables text styles in IRCCloud
MIT License
21 stars 6 forks source link

Add %idiot and %trout #1

Closed whiskers75 closed 10 years ago

whiskers75 commented 10 years ago

Adds aliases for the look of disapproval and a rainbow trout.

dogancelik commented 10 years ago

Hello. I see that you've added two aliases to the script. Though it might be helpful for you, not everyone may want these two aliases in their script. That's why I propose a new feature called: Custom aliases.

This new feature will make sure people will be able to add their own custom aliases and commands like these without editing the source code:

%hello,/me says Hi!
:idiot,ಠ_ಠ
?trout,around a bit with a %C01r%C02a%C03i%C04n%C05b%C06o%C07w %C08t%C09r%C10o%C11u%C12t!%R
pls,please

You can see the syntax is as simple as it is, the text block before the comma is the alias and the text block after the comma is the actual text.

  1. Simply typing %hello into chat will produce an ACTION message like this: Doğan says Hi!.
  2. :idiot will be replaced with "ಠ_ಠ".
  3. ?trout uses %C and %R codes to color the text.
  4. If you type "pls" a lot in chat, SWS will change it to "please".

I will probably implement this feature in a week. I'll update and close this issue when I finish implementing it. Feel free to comment. And thanks for your pull request.

whiskers75 commented 10 years ago

@dogancelik Great.