This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
wilcomega's profile picture

A better chat server | no need for new client | 7 commands

Started by wilcomega, 25 March 2014 - 06:46 PM
wilcomega #1
Posted 25 March 2014 - 07:46 PM
so i found the chat program from the beta's pretty boring, so i decided to improve it
here is the changelog:

- added 7 commands
- /help - displays all the commands for the user availible, non admin if not admin
- /msg <name> <msg ..> - sends a private message to someone
- /name <name> - changes your username
- /admin <password> - if correct, gets you admin acces for the session
- /othername <name> <new name> - changes the name of everyone with <name> to <new name>
- /forcesay <name> <msg ..> - forces someone to say something, also works for commands
- /kick <name> - kicks everyone with <name>
- /shutdown <password> - stops the server if the password is correct
- added extra parameter to the host <password>
- added welcome message variable

basicly you just need to change your chat servers from "chat host name" to "chat host name password"
also its recomended that you change the welcome message to your own

this does now require a diffrent client, you just login with the normal client and all the features are there
so have fun!

installation:

pastebin get [url="http://pastebin.com/MvMymbGx"]MvMymbGx[/url] server
then make a startup file with the following code:

shell.run("server", "host", "hostname", "password")

plans for the future:

- add more commands of course!
- make an api for games and other programs to have in-game chat powered by a chat server

any suggestions are welcome
please use this but dont claim it for your self

-wilco
Edited on 25 March 2014 - 07:44 PM
amtra5 #2
Posted 27 March 2014 - 08:58 PM
Any chance for a /mute?
oeed #3
Posted 28 March 2014 - 10:36 AM
Nice to see some commands involved!
Agoldfish #4
Posted 28 March 2014 - 04:11 PM
Also, !kick and/or !kickban would be nice.
Something to add our own commands would be even better.
wilcomega #5
Posted 30 March 2014 - 10:44 AM
/mute is a cool idea, i could make a way to make your own scripts and run them on the server!

here is the idea for the smart and technical people:
you upload the file through the ftp protecol, once the server has got it it checks if you are an admin
if so, it will scan it for viruses ( still have to find a good virus scanner out there )
no viruses gives a good response, virus gives bad response.
then just do /run <scriptname> [arguments ..]

but that would require a modded client. and thats what i am trying to avoid
Edited on 30 March 2014 - 08:48 AM