Posted 29 March 2015 - 11:17 AM
Chatty
A way to communicate
Chatty is a chat program that runs on network cables.
It currently has features such as
- Name changing
- Recieve messages while typing one
- Action commands.
- A message when a user changes their nickname
- Messages when users join and leave
- Making your own commands!
pastebin get CQpx4kVm Chatty
Then run Chatty.
To be able to use Chatty, you need to have a wired modem on your computer. You'll also need to connect every computer you want to be able to chat in the network with cables.
Pictures you say?
Spoiler
Right after running:A user has joined!
A user uses the /me command
Bob changed his name
A user sent a message by pressing enter, typing the message and pressing enter again!
A user has left
User commads
To make your own commands, go into the chatty program using edit.
In there, look for
local cmds = {
["me"] = {
["does"] = function(args)
send('* '..name..' '..args)
end
},
["nick"] = {
["does"] = function(nc)
send(name..' is now known as '..nc)
name=nc
end
}
}
Edit this to your preferences.
For example, let's say we want a command that reverses what the user typed.
We'd do this;
local cmds = {
["me"] = {
["does"] = function(args)
send('* '..name..' '..args)
end
},
["nick"] = {
["does"] = function(nc)
send(name..' is now known as '..nc)
name=nc
end
},
["reverse"] = { -- ["reverse"] is the command (The text after the / character)
["does"] = function(args) -- ["does"] is what the command does and args is the arguments. This is required for the command to function
print(args:reverse())
end
}
}
Edited on 23 April 2015 - 06:19 AM