Commands

From xat wiki
Revision as of 06:49, 17 January 2017 by Crow (talk | contribs) (Added power commands + hugs table + jinxes)

xat has support for special "/" (slash) commands, which allow for advanced actions that are not available in the graphical user interface. Some commands are available for everyone on the chat, while other commands require a specific rank or power.

Default "/" commands

These commands can be used by everyone in any chat, though sometimes you need a certain rank.

/o Smiley effects

You can make the chat box automatically add smiley effects to all the smilies you send. To do this, type "/o" followed by the code of the effect without the # sign.

For example, if you want all of your smilies to be mirrored and you have the Mirror power, type "/om" in to the chat box and send it like a message. You can also combine effects. For example, "/omis" will make all the smilies mirrored, inverted and made square, as long as you have all the required powers. You can also combine color effects. For example, "/oFFFFFF" will make all of your smilies white.

If you want to remove the smiley effect you made, simply type "/o" in to the chat.

/f Add as friend by ID

To add any xat user to your friends list when you only have their ID, type "/f" followed by their ID. Optionally, you can add a name that you want to appear on your friends list.

For example, "/f999999999 Abcd" will add the user with the ID 999999999 to your friends list with the name "Abcd".

/t Ignore a user

Type "/t" in a private chat to ignore a user. If you have the TTTH power, you can also send a full-screen smiley/message along with ignoring.

You can also use the same command in PC to un-ignore a user.

/+ or /- enable or disable Powers

Type "/+powername" to enable a power or "/-powername" to disable a power.

For example, if you type "/-nopc" on the chat, it will disable the NoPC power.

/go Moving from a chat to another

On any chat you can use the /go command to move on another chat. All you need to have is the name of the group or its identification number.

For example, if you type /go xat5, you will be redirected to xat_test. Typing /go xat_test will do the same.

As group names are unique, the command isn't case sensitive.

Template:Img is only allowed in User: namespace. Use [[File:]] (more on that here) or Template:Gallery on articles instead.

/s Scroll message

If you are an owner or a main owner, you can set a scroll message to show at the bottom of the typing box by typing it in the chat. (See Example 1.)

You can, for example, type:

  • /sWelcome to my chat. Please behave well or you will be banned.

You can change the color by adding a color code. For example, add #FF0000 to the end of the message for red:

  • /sWelcome to my chat. Please behave well or you will be banned.#FF0000

/p Protect your group from raids

If your chat is being raided, an owner can enter protect mode by typing "/p" in the main chat. For 1 hour, new unregistered users will have to solve a captcha to join the chat. You can turn off protect mode by typing /p again. Note: There is a 15-second delay after you toggle protect mode on or off and when you may toggle it on or off again.

If "/p" does not work, you can use these alternative modes to increase the protection:

  • /pg or /p2 Captcha unregistered users and gag new guests for 3 minutes
  • /pc or /p3 Captcha all guests
  • /pr or /p4 Make the chat registered users only
  • /pm or /p5 Make the chat members only

The main owner of the chat can use Gcontrol power to change the default duration of hours and the default rank of who can turn on protect mode.

Note: Members and above do not need to complete a captcha when protect mode is on.

/i Information

If you are an owner, you can find out who last changed the scroll or who entered protect mode by typing "/i" in the main chat. You will then receive an automated message along the lines of "/s 1345634 /p 2365342", which shows you the IDs of the last users to use the "/s" and "/p" commands.

/m Make a user a moderator

Owners and main owners can type "/m" in a user's private chat to make them a moderator.

Power "/" commands

Some powers allow you to use more "/" commands. See their articles for more detail.

/away Away from chat

Requires Away power. This command adds a timer icon to your pawn, to let other users know that you are away from the chatroom. To remove the icon, talk or move your mouse within the chat.

/fNewNickname Change your friend's name

Requires Nick power.

  • To change a friend's name while in the main chat, type /fNewNickname ID
  • To change a friend's name while in a private chat, type /fNewNickname or /f to delete the nick

For more customization options, see the Nick article.

/g Make yourself a guest

Requires Guestself power.

/hrD Temporarily stop users from chatting

Requires Hush power. Type this command in the main chat to gag all users of a certain rank at once, for a maximum of 60 seconds. Replace "r" with the rank you wish to gag (listed below), and "D" with the duration (in seconds).

  • g will gag guests
  • m will gag members and guests
  • d will gag moderators, members and guests
  • o will gag owners and all lower ranks (this option requires you to be a main owner)

For example, typing /hg30 will gag all guests for 30 seconds.

The default rank to use this command is owner or above.

/hug Send a hug

Some powers may come with the ability to send hug animations. Although sending a hug in a private chat is free and has unlimited usage, sending a hug in the main chat costs 10 xats per hug, and a total of 20 hugs can be sent in 24 hours. For more information, see Hugs.

Here is an updated list of powers with hugs:

ID Logo Name Command(s) Notes
421 fireworksfx.png Fireworksfx /hug ny
420 battle.png Battle /hug battle
418 christmix.png Christmix /hug xpair
417 tropicalxmas.png Tropicalxmas /hug shark
413 funfair.png Funfair /hug funfair
412 graveyard.png Graveyard /hug grave
411 boo.png Boo /hug boo
410 classic.png Classic /hug classic
409 fall.png Fall /hug fall
408 meow.png Meow /hug meow
407 spacejinx.png Spacejinx /jinx [time in minutes]space[probability%] space can be replaced with rspace for the same animation.
406 ten.png Ten /hug cel
/hug hippo
404 popcorns.png Popcorns /hug pop
401 summerhug.png Summerhug /hug ring
/hug ham
/hug ball
400 eggjinx.png Eggjinx /jinx [time in minutes]egg[probability%]
399 aprincess.png Aprincess /hug ap
395 tooth.png Tooth /hug tooth
394 hangjinx.png Hangjinx /jinx [time in minutes]hang[probability%]
393 diva.png Diva /hug car
391 chores.png Chores /hug clean
388 mom.png Mom /hug stork
387 jumblejinx.png Jumblejinx /jinx [time in minutes]jumble[probability%] jumble can be replaced with mix, reverse, ends or middle for the same animation.
384 songkran.png Songkran /hug sk
382 fools.png Fools /hug slip
381 easterland.png Easterland /hug east
380 ebunny.png Ebunny /hug eb
379 patrick.png Patrick /hug pat
375 lovehug.png Lovehug /hug love
/hug bird
/hug bow
369 fireworkshug.png Fireworkshug /hug fireworks
367 sleighhug.png Sleighhug /hug sleigh
/hug sleigh Your message here#rocket
rocket can be replaced with snow, jeep or hover for different animations.
366 choirhug.png Choirhug /hug choir

Note:

  • All hugs may include an optional message after the hug name.
  • These messages can be colored, for example: /hug ny Happy New Year!#ff0000 would use red text.
  • /hug can be interchanged with /hugall, and /jinx with /jinxall for the same animations. But always be aware of costs!

/jinx Send a jinx

Jinxes are hexes that you can send to people to alter their messages. While /jinx is free (jinxing the user in a private chat only), /jinxall (jinxing the user in the main chat) costs 10 xats per use.

Currently, the best way to "unjinx" a person is to use a unique command found on each jinx power article. These articles are listed here:

ID Logo Name Command(s) Description
407 spacejinx.png Spacejinx /jinx [time in minutes]space[probability%] This command removes all spaces from a message, or adds random ones.
400 eggjinx.png Eggjinx /jinx [time in minutes]egg[probability%] This command adds "egg" before each vowel of a message.
394 hangjinx.png Hangjinx /jinx [time in minutes]hang[probability%] This command will remove some letters from a message and replace others with hangman-like text (underscores).
387 jumblejinx.png Jumblejinx
/jinx [time in minutes]jumble[probability%]
/jinx [time in minutes]mix[probability%]
/jinx [time in minutes]reverse[probability%]
/jinx [time in minutes]ends[probability%]
/jinx [time in minutes]middle[probability%]
These commands will jumble the letters of a message.
jumble - an assortment of any of the following settings:
mix - letters mixed up
reverse - letters reversed
ends - swaps first and last
middle - mixes the middle but leaves first and last alone

Note:

  • /jinx may be replaced with /jinxall, but, again, be aware of rising costs!
  • You cannot jinx a hugher rank.

/ka Kick all guests

Requires Kickall power. This command allows you to kick all guests in the chat. Add one of the following letters to customize your kick:

  • r: Kick registered guests too
  • m: Kick only if they have not talked
  • t: Only kick users who do not have an ID (aka toons)
  • p: Kick from all pools
  • b: Only kick users who are banned

For example, you can use /kat to kick all unregistered guests who are toons, or use /karp to kick all guests from all pools.

The default rank to use this command is moderator or above.

/m Make a temporary moderator

Requires Tempmod power. This command allows you to promote guests and members to moderator rank for any duration of time up to 24 hours.

For example, typing /m12 in a user's private chat would make them a temporary moderator for 12 hours.

The default rank to use this command is owner or above.

/mb Make a temporary member

Requires Tempmem power. This command allows you to promote guests to member rank for any duration of time up to 24 hours.

For example, typing /mb12 in a user's private chat would make them a temporary member for 12 hours.

The default rank to use this command is moderator or above.

/mo Make a temporary owner

Requires Tempown power. This command allows you to promote guests, members and moderators to owner rank for any duration of time up to 24 hours.

For example, typing /mo12 in a user's private chat would make them a temporary owner for 12 hours.

The default rank to use this command is main owner or above.

/n Sinbin a moderator

Requires Sinbin power. Type this command in a permanent moderator's private chat to strip their moderator abilities, from 36 seconds to 24 hours. This power will not work on temporary moderators.

For example, typing /n2.5 in a moderator's private chat will sin bin them for 2 hours 30 minutes.

The default rank to use this command is owner or above.

/nbReasonHere Give a user a badge

Requires Badge power. Type this command in a user's private chat to give them a badge. The same command can be used to remove it.

The default rank to use this command is owner or above.

/r Lock a user to a certain rank

Requires Ranklock power. This command allows you to lock a user's rank, and prevent it from being changed by others until the lock is removed.

How to use:

  • /r ID guest/member/mod/owner/off
e.g /r 4444 guest will lock 4444's rank to guest.

The default rank to use this command is owner or above.

/t Talk to the hand

Requires TTTH power. Type this command in a user's private chat to ignore them, with the option of a giant smiley appearing in their chat if they PC you. To add a smiley and message, type "/tMessage#smiley".

You can also test this by typing "/t" in the main chat to perfect your message and code.

Debug "/" commands

On the debug chats (chats that have a blue 8ball instead of the classic black one), there are some special commands you can use. You can also use the following commands on your own chat if you add "?test" to the end of your group's URL.

These commands seem (and are) generally useless, however they were once used by admins to create and test features.

Note that any messages sent are seen by you only.

/debug See debug information

The default "/debug" command will display some technical details about the chat; the memory usage; how many frames per second (FPS); the average frames per second (aFPS).

/debug clearlists Clear some cached chat data

When you use this command, some of the cached chat data will be cleared. The main chat and user list will be cleared, you will be added back to the top of the list with no cached rank and relationship. The data will begin to cache from that point on, adding users back to the user list when they sign in and begin to chat again.

/debug avs Control avatar effects

This command is used to control avatar effetcs, much like the $glitter macro. This effect is not persistent like the macro.

Use "/debug avs" or "/debug avs 0" to disable avatar effects, and "/debug avs 1" to enable them again.

/debug cacheback See swfs loaded into cache

This command puts a "back" on any swfs (pawns, smilies, etc.) that are loaded into cache. Use "/debug cacheback 1" to turn it on.

/debug zappri/primary/shadow Change the chat's connection details

These three commands all change the IP addresses that the chat connects on, but seem to have no effect.

/debug gctrick Send a "gctrick" Help message

Using "/debug gctrick 1" or any integer will cause the chat to send a Help message back with the same command you sent.

/debug smilietest Test different types of smilies

Test different types of smilies using "/debug smilietest 1" where "1" can be one of the following numbers:

  • 1 - Test random smilies
  • 2 - Test random smiley combinations
  • 3 - Test free smilies.

/debug fakemessage Send a number of dummy messages

Use "/debug fakemessage 1" where "1" can be any number up to 200, and that number of lorem ipsum extracts will be posted on to the chat.

/debug avtest Test two random avatars

Use "/debug avtest 1" and you will start sending messages with two random avatars.

/debug graph See graphs based on debug information

For this command to work, you must first type "/debug". In itself, the graph command has 4 options:

  • 0 - Off.
  • 1 - A horizontal line graph representing your memory usage.
  • 2 - A vertical line graph representing your memory usage.
  • 3 - Both of the above.
  • 4 - A vertical line graph representing your frames per second (FPS).

/debug msgcount Count your messages

Type "/debug msgcount 1" for the chat to automatically start counting your messages from 1. Use "/debug msgcount off" to stop counting.

You can also use any other number instead of 1 to start counting from then.

/debug fps Change the frames per second (FPS) of the chat

The higher the FPS, the faster the animations in the chat. Use "/debug fps 24" to make the chat twice as fast.

Use "/debug fps 0" or "/debug fps 12" to go back to normal.

/debug cache Load an array of smilies into your cache

Type "/debug cache" and a load of smilies (12x12 by default) will overlay the chat. You can use "/debug cache 1 2", where 1 is the speed, and 2 is the number of rows. Repeating the command does not clear the previous smilies.

You must refresh to make it disappear.

You need to refresh to get rid of it.

/debug nocache Load smilies on to the chat

You use this command by typing "/debug nocache 12 pty" where 12 is the number of rows, and pty is the smiley. Repeating the command does not clear the previous smilies.

You must refresh to make it disappear.

/debug dp Testing assigning group powers

Use "/debug dp power 1" where power is the power name. If you own the power, it will return a "Power unassigned ok" message. otherwise it will return "Power system error (db down)" message.

/debug bump Test the bump noise

This command simply plays the bump sound and plays the animation.

/debug stest Smiley testing mechanism

The chat has a built in smiley testing mechanism that is turned on using this command. You must run the chat swf locally, put smiley swfs "C:\smilies\test\" and set the names in the macro $stest like so: "$stest=placeholder,smiley1,smiley2,smiley3", use the /debug stest command and sign out and in.