Chatzy Commands

~~~~~User actions~~~~~

/leave or /bye
Leave the chat, letting other users know.

/away
Mark me temporarily away from the chat (the Visitor List will reflect this).

/me smiles
Tell the other users what I am doing (in the third person). E.g.: /me smiles => John smiles

/message
Write a longer message for the room.

~~~~~System queries~~~~~

/time +0200
Show the current time in the indicated time zone. Default is GMT/UTC. The optional time zone parameter must be in the format +/-HHMM. Tell me more.

/flipcoin
Randomly select either heads or tails.

/rolldie
Randomly select a number between 1 and 6. A number may be added indicating a maximum outcome other than 6. E.g.: /rolldie 9 => select a number between 1 and 9.

/choose red, green, blue
Randomly select between the given parameters (e.g. red, green and blue). Minimum two parameters must be supplied, separated with commas.

~~~~~Admin actions~~~~~

/ban
Ban a user from the room. Only available in rooms where the user is required to register his/her email with Chatzy.

/allow
Removes a /ban on a user or adds the user to the list of accepted emails. Only available in rooms where the user is required to register his/her email with Chatzy.

/kick
Kicks a visitor temporarily out of the room. Since the user can simply choose another name, no ban is upheld against the user - he or she can enter again (unless the room is full).

~~~~~Menu shortcuts~~~~~

/clear or /c
Same as clicking "Clear Room" in the menu.

/visitor or /v
Same as clicking "Visitor List".

/invite or /i
Same as clicking "Invite People".

/prefs or /p
Same as clicking "My Preferences".

/room or /r
Same as clicking "Room Properties".

/na /da /sa
Selects "No Alerts", "Alert By Dialog", or "Alert By Sound", respectively.

/input /menu /pane
Shows or hide the multiline input field, the left menu, or the visitor pane, respectively.

/font <1-5>
Changes the font size used for room content. 1 is the smallest font and 5 is the largest. E.g.: /font 3 => select font size 3 (default).

Wecos Chat Commands

package main;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;

public class WecosChatCommands extends JavaPlugin {


@Override
public void onEnable() {
initConfig();
}

private void initConfig() {
this.reloadConfig();
this.getConfig().options().header("WecosChatCommands Config");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.LoadedSuccesfull", "[WecosChatCommands] Loaded Succesfull.");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.InstalledVersion", "[WecosChatCommands] The installed version is");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeLeave", " left the game.");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeJoin", " joined the game.");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeOp", "[Console: Opped ");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeOp2", "]");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.WasFeeded", " was Feeded.");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.YouWereFeeded", "You were Feeded.");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.YouWereHealed", "You were Healed.");
this.getConfig().addDefault("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.WasHealed", " was Healed.");

this.getConfig().options().copyDefaults(true);
this.saveConfig();
System.out.println("[WecosChatCommands] (Re)loaded Config succesfully.");
}

@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

//Umwandlung Sender --> Player
Player p = null;
if(sender instanceof Player){
p = (Player)sender;
}

//test
if(cmd.getName().equalsIgnoreCase("wcctest")){

if (p != null) {

if(p.hasPermission("wecoschatcommands.wcctest"));

String version = this.getDescription().getVersion();

p.sendMessage(ChatColor.GREEN + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.LoadedSuccesfull") + " ");
p.sendMessage(ChatColor.GREEN + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.InstalledVersion") + " " + version);

for(int i = 0; i < this.getDescription().getAuthors().size(); i++){

}

return true;
} else {
String version = this.getDescription().getVersion();
sender.sendMessage(ChatColor.GREEN + "[FakeLeave] Loaded Succesfull.");
sender.sendMessage(ChatColor.GREEN + "[FakeLeave] The installed version is " + version);
return true;
}
}
//fakeleave
if(cmd.getName().equalsIgnoreCase("fakeleave")){
if(p != null){
if(p.hasPermission("wecoschatcommands.fakeleave"));
       for (Player players : Bukkit.getOnlinePlayers()){
players.sendMessage(ChatColor.YELLOW + p.getDisplayName() + "" + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeLeave") +  " ");
return true;
}
}
}
//End

//fakejoin
if(cmd.getName().equalsIgnoreCase("fakejoin")){
if(p != null){
if(p.hasPermission("wecoschatcommands.fakejoin"));
       for (Player players : Bukkit.getOnlinePlayers()){
       
players.sendMessage(ChatColor.YELLOW + p.getDisplayName() + "" + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeJoin") +  " ");
return true;
}
}

}
//End
//fakeop
if(cmd.getName().equalsIgnoreCase("fakeop")){
if(p != null){
if(p.hasPermission("wecoschatcommands.fakeop"));
if(args.length != 1){
return false;
}

Player targetPlayer = this.getServer().getPlayer(args[0]);
targetPlayer.sendMessage(ChatColor.GRAY + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeOp") + "" + targetPlayer.getDisplayName() + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.FakeOp2") + "");

return true;
}
}

//End

//feed
if(cmd.getName().equalsIgnoreCase("wccfeed")){
if(p != null){
if(p.hasPermission("wecoschatcommands.wccfeed"));
if(args.length != 1){
p.setFoodLevel(20);
p.sendMessage(ChatColor.GREEN + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.YouWereFeeded"));
}

Player targetPlayer = this.getServer().getPlayer(args[0]);
targetPlayer.setFoodLevel(20);
p.sendMessage(ChatColor.GREEN + targetPlayer.getDisplayName() + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.WasFeeded") + "");
targetPlayer.sendMessage(ChatColor.GREEN + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.YouWereFeeded"));

return true;
}
}

//End

//heal
if(cmd.getName().equalsIgnoreCase("wccheal")){
if(p != null){
if(p.hasPermission("wecoschatcommands.wccheal"));
if(args.length != 1){
p.setHealth(20.0);
p.setFoodLevel(20);

   for (PotionEffect effect : p.getActivePotionEffects())
      p.removePotionEffect(effect.getType());
 
p.sendMessage(ChatColor.GREEN + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.YouWereHealed"));
}

Player targetPlayer = this.getServer().getPlayer(args[0]);
targetPlayer.setFoodLevel(20);
targetPlayer.setHealth(20.0);
   for (PotionEffect effect : targetPlayer.getActivePotionEffects())
      targetPlayer.removePotionEffect(effect.getType());
 
p.sendMessage(ChatColor.GREEN + targetPlayer.getDisplayName() + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.WasHealed") + "");
targetPlayer.sendMessage(ChatColor.GREEN + this.getConfig().getString("WecosChatCommands.commands.WECOSCHATCOMMANDS.messages.message.YouWereHealed"));

return true;
}
}

//wcckickall
if(cmd.getName().equalsIgnoreCase("wcckickall")){
if(p != null){
if(p.hasPermission("wecoschatcommands.wcckickall"));
       for (Player players : Bukkit.getOnlinePlayers()){
players.kickPlayer(ChatColor.GREEN + "[WecosChatCommands:] " + ChatColor.YELLOW + p.getDisplayName() + " kicked everyone.");
return true;
}
}
}

//End
//wcckillall
if(cmd.getName().equalsIgnoreCase("wcckillall")){
if(p != null){
if(p.hasPermission("wecoschatcommands.wcckillall"));
       for (Player players : Bukkit.getOnlinePlayers()){
       players.sendMessage(ChatColor.GREEN + "[WecosChatCommands:] " + ChatColor.YELLOW + p.getDisplayName() + " killed everyone.");
players.setHealth(0.0);
return true;
}
}
}

//End


return false;
}

}

Phredd's IRC Twitch chat bot

### Phredd's IRC Twitch chat bot

import socket #imports module allowing connection to IRC
import threading #imports module allowing timing functions

#sets variables for connection to twitch chat
bot_owner = 'Phredd_'
nick = 'PhreddBot'
channel = '#oddmast'
server = 'phreddbot.jtvirc.com'
password = 'xxx'

queue = 0 #sets variable for anti-spam queue functionality

#sets variables for !add and !news commands
command = '!notset'
cmdmsg = 'This command is not set yet'
newsmsg = 'No news set'


irc = socket.socket()
irc.connect((server, 6667)) #connects to the server

#sends variables for connection to twitch chat
irc.send('PASS ' + password + '\r\n')
irc.send('USER ' + nick + ' 0 * :' + bot_owner + '\r\n')
irc.send('NICK ' + nick + '\r\n')
irc.send('JOIN ' + channel + '\r\n')

def queuetimer(): #function for resetting the queue every 30 seconds
    global queue
    print 'queue reset'
    queue = 0
    threading.Timer(30,queuetimer).start()
queuetimer()

while True:
   
    def message(msg): #function for sending messages to the IRC chat
        global queue
        queue = queue + 1
        print queue
        if queue < 20: #ensures does not send >20 msgs per 30 seconds.
            irc.send('PRIVMSG ' + channel + ' :' + msg + '\r\n')
        else:
            print 'Message deleted'
           
    def newstimer(): #function for announcing news every 3 minutes
        global newsmsg
        global ntimer
        themessage = '[NEWS]: ' + newsmsg
        message(themessage)
        print 'news on'
        ntimer = threading.Timer(180,newstimer)
        ntimer.start()
        if newsmsg == 'No news set': #stops announcing news if it has been canceled.
            ntimer.cancel()
        else:
            pass
   
    data = irc.recv(1204) #gets output from IRC server
    user = data.split(':')[1]
    user = user.split('!')[0] #determines the sender of the messages
    print data
   
    if data.find('PING') != -1:
        irc.send(data.replace('PING', 'PONG')) #responds to PINGS from the server
   
    if data.find('!test') != -1: #!test command
        message('Phredd_ is awesome! :D')      
    if data.find('!hello') != -1: #!hello command
        if user == 'phredd_':
            mymessage = 'Hi, ' + user + ', you are awesome! :D'
            message(mymessage)
        else:
            mymessage = 'Hi, ' + user + ', you are a Butt! :D'
            message(mymessage)
           
    if data.find('!cmd') != -1 and user == 'phredd_': #adds a new command
        addsplit = channel + ' :' + '!cmd'
        command = '!' + data.split(addsplit)[1].split(' ')[1] #determines new command
        cmdmsg = ' '.join(data.split(addsplit)[1].split(' ')[2:]) #determines command output
        message('Command set!')      
    if data.find(command) != -1: #responds to the new command with the output
        message(cmdmsg)
    if data.find('!delcmd') != -1 and user == 'phredd_': #!deladd command
        command = '!notset'
        cmdmsg = 'This command is not set yet'
        message('Command deleted!')
       
    if data.find('!addnews') != -1 and user == 'phredd_': #!addnews command
        newssplit = channel + ' :' + '!addnews'
        newsmsg = ' '.join(data.split(newssplit)[1].split(' ')[1:]) #determines new news message
        message('News set!')
        newstimer() #starts news timer function    
    if data.find('!news') != -1 and user == 'phredd_': #!news command
        themessage = '[NEWS]: ' + newsmsg
        message(themessage)
    if data.find('!delnews') !=-1 and user == 'phredd_': #deletes the news
        newsmsg = 'No news set'
        message('News deleted!')
        newstimer()
       
    elif data.split(' ')[1] == 'PRIVMSG' and data.split(':')[2].startswith(nick):
        message('Who said my name? SwiftRage')

TERA Online Chatroom commands

/make [ChannelName] [Password] #Password must be 4 characters long and contain only numbers
/join [ChannelName] [Password]
/leave [ChannelName/#]
/ChannelName(ChannelNumber)
/password [ch#] [CurrentPassword] [NewPassword]
/chatkick [ch#] [CharacterName]

##Additional Notes:
#Click on the chat icon and select “Add tab”
#Select a name for your chat room, and apply/confirm
#Right click on new chat tab to change options

##IMPORTANT:
#All commands are used without [] brackets, so replace [password] with 1234 for example
#/ChannelName(1234) ,brackets included

XAT COMMANDS AND GLITCHES

XAT COMMANDS AND GLITCHES By Naim Hashmi

<s2s - Censor glitch
xat.com/chat?test - Debug room
/Debug fps # - Debug speed
/o# disabling smileys
/s - Writing in Text box above

Owners only

/p - Protection mode

Find more commands in youtube and search "Xat Commands"

Pokemon Showdown commands

/msg OR /whisper OR /w [username], [message] - Send a private message.
/reply OR /r [message] - Send a private message to the last person you received a message from, or sent a message to.
/ip - Get your own IP address.
/ip [username] - Get a user's IP address. Requires: @ & ~
/rating - Get your own rating.
/rating [username] - Get user's rating.
/nick [new username] - Change your username.
/avatar [new avatar number] - Change your trainer sprite.
/rooms [username] - Show what rooms a user is in.
/whois [username] - Get details on a username: group, and rooms.
/data [pokemon/item/move/ability] - Get details on this pokemon/item/move/ability.
!data [pokemon/item/move/ability] - Show everyone these details. Requires: + % @ & ~
/analysis [pokemon], [generation] - Links to the Smogon University analysis for this Pokemon in the given generation.
!analysis [pokemon], [generation] - Shows everyone this link. Requires: + % @ & ~
/groups - Explains what the + % @ & next to people's names mean.
!groups - Show everyone that information. Requires: + % @ & ~
/opensource - Links to PS's source code repository.
!opensource - Show everyone that information. Requires: + % @ & ~
/avatars - Explains how to change avatars.
!avatars - Show everyone that information. Requires: + % @ & ~
/intro - Provides an introduction to competitive pokemon.
!intro - Show everyone that information. Requires: + % @ & ~
/cap - Provides an introduction to the Create-A-Pokemon project.
!cap - Show everyone that information. Requires: + % @ & ~
/om - Provides links to information on the Other Metagames.
!om - Show everyone that information. Requires: + % @ & ~
/learn [pokemon], [move, move, ...] - Displays how a Pokemon can learn the given moves, if it can at all.
!learn [pokemon], [move, move, ...] - Show everyone that information. Requires: + % @ & ~
/calc - Provides a link to a damage calculator
!calc - Shows everyone a link to a damage calculator. Requires: + % @ & ~
/away - Blocks challenges so no one can challenge you.
/back - Unlocks challenges so you can be challenged again.
/faq [theme] - Provides a link to the FAQ. Add deviation, doubles, randomcap, restart, or staff for a link to these questions. Add all for all of them.
!faq [theme] - Shows everyone a link to the FAQ. Add deviation, doubles, randomcap, restart, or staff for a link to these questions. Add all for all of them. Requires: + % @ & ~
Set up highlights:
/highlight add, word - add a new word to the highlight list.
/highlight list - list all words that currently highlight you.
/highlight delete, word - delete a word from the highlight list.
/highlight delete - clear the highlight list
/help OR /h OR /? - Gives you help.

Computercraft mining turtle script with variable maxfuel

--Script by victorqyu aka. sol
--11/8/13
--For Computercraft for Minecraft
--For mining turtle.
--Requires pre-fueling. (The more the better but 64 coal is adequate)
--
--running arguments are x,y,z where;
--x = Number of cycles to move forward. (A cycle consists of 3 blocks on the axis of facing where the turtle occupies the central block) eg 10 cycles = 30 blocks
--y = the number of lines to mine to the left of the turtle.
--z = Max depth to dig down
--n = maxFuel value - Value over which coal and other fuels will not be consumed prior to dumping inventory.
--Enderchest to store items in must be placed in the turtle's last inventory slot
--

local tArgs = { ... }
if #tArgs ~= 4 then --If number of args does not equal this, print useage scirpt
print( "Usage: mineAll <# cycles forward> <# lines to the left> <Depth to dig> <Max fuel buffer(7000 recomended)>" )
return --Ends the program
end

-- VAR DEC's
local fwdCycleTarget = tonumber(tArgs[1]) --retrieve blocks to dig forward of turtle
local lftCycleTarget = tonumber(tArgs[2]) --retrieve blocks to dig left of turtle
local digDepth = tonumber(tArgs[3]) --retrieve depth to dig down
local maxFuel = tonumber(tArgs[4]) --Retrieve fuel buffer
local enoughFuel = false
local keepDigging = true
local oddRowNum = false
local miningComplete = false
local yCurPos = 0
local fwdCycleCurrent = 0
local lftCyclePos = 0
-- VAR DEC's

function checkFuel() --wait for turtle to have enough fuel to complete a cycle.
print("Checking fuel level...")
enoughFuel = false
while enoughFuel == false do
if turtle.getFuelLevel() > (7+digDepth*2) then
enoughFuel = true
else
print("Inadequate fuel to cycle")
print("Please place a fuel source in me.")
sleep(5)
shell.run("refuel all")
end
end
end

function dumpInvToChest() --place all items in inv into enderchest (retrieved from inv slot 16)
print("Clearing inventory...")
turtle.dig()
if turtle.getFuelLevel() < maxFuel then
shell.run("refuel all")
end
turtle.select(16)
turtle.place()
sleep(1)
for i = 1,15 do
turtle.select(i)
turtle.drop()
end
turtle.select(16)
turtle.dig()
end

function digCycle() --Dig one cycle & move into pos for next & dump inv to enderchest
print("Begining dig cycle...")
keepDigging = true
yCurPos = digDepth
--Diging part of cycle
while keepDigging == true do
turtle.digDown()
turtle.dig()
if turtle.down() == false then
turtle.dig()
keepDigging = false
end
if keepDigging == true then
yCurPos = yCurPos-1 --If turtle moved down, lower the Y height var by 1
end
if yCurPos == 0 then
keepDigging = false
end
end
--Return part of cycle
turtle.dig()
turtle.turnLeft()
turtle.turnLeft()
while yCurPos < digDepth do
turtle.dig()
turtle.digUp()
turtle.up()
yCurPos = yCurPos+1
end
--call the dump to enderchest func. to clear inv.
turtle.turnLeft()
turtle.turnLeft()
dumpInvToChest()
end

function movePos() --Move into the next position
print("Moving position...")
if fwdCycleCurrent+1 < fwdCycleTarget then --move up if we haven't met cycle count
turtle.dig()
turtle.forward()
turtle.dig()
turtle.forward()
turtle.dig()
turtle.forward()
fwdCycleCurrent=fwdCycleCurrent+1
elseif lftCyclePos+1 < lftCycleTarget and oddRowNum == false then --Get into pos for return line
turtle.dig()
turtle.forward()
turtle.turnLeft()
turtle.dig()
turtle.forward()
turtle.turnLeft()
turtle.dig()
turtle.forward()
lftCyclePos = lftCyclePos+1
fwdCycleCurrent = 0
oddRowNum = true
elseif lftCyclePos+1 < lftCycleTarget and oddRowNum == true then --this part is for the return line
turtle.dig()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.forward()
lftCyclePos = lftCyclePos+1
fwdCycleCurrent = 0
oddRowNum = false
else
miningComplete = true
print("Mining Complete.")
end
end

shell.run("refuel all") --Initial Fuel up

while miningComplete == false do
checkFuel()
digCycle()
movePos()
end