User:Ditto Creeper Bot/Projects/Command Shortcuts

Shortcuts
These are Use-based shortcuts which can only be activated via user itself. Some common Commands with rules. these can be added to the Special:Mypage/chat.js easily

Making a custom command
take the below as an example

'''case '/lowercaseletters': this.value = 'Please read the chatroom rules .'; break;'''

Important notes
Make sure that  $('[name="message"]').keypress(function (e) {    if (e.which == 32 || e.which == 13) {        switch (this.value) { In in the beginning and        }     } }); an the end.

This means you can only use lowercase to make shortcuts, and make sure it's as it should be.

The example is essential in order to make you familiar with the pattern.

Note: Just copy the following to your Special:Mypage/chat.js and edit at will. XD

//