Instructables

Chat

hellow everyone, i kinda run into this site, and this group, and i made an acc as you can see :3
i kinda made a chat today in batch, pretty simple and using Dropbox, but i haz some ideas with powershell and using an FTP.
but here is a pic of how it works and the code ofcorse!

code client:

@echo off
SET name=%username%
color 0a
:main
cls
echo #############################
echo #welcome to the dropbox chat#
echo #############################
echo.
echo Make your sellection bellow!
echo.
echo [1]-Collor menu
echo [2]-Chat name
echo [3]-Chatroom
echo [4]-Info (waar normaal nooit iemand kijkt)
echo name: %name%
echo.
:sellect1
set /p C=Sellection:
if "%C%"=="1" goto collor
if "%C%"=="2" goto name
if "%C%"=="3" goto chat1
if "%C%"=="4" goto info
if Else goto main
/goto main

:chat1
echo %name% just joined the chat>>chat.txt
goto chat

:collor
cls
echo ############
echo #COLLORS!!!#
echo ############
echo.
echo pick a collor
echo.
echo [1]- White
echo [2]- Green
echo [3]- Red
echo [4]- Purple
echo [5]- Blue
echo [6]- Yellow
echo.
echo [0]- Main menu
echo.
:sellect2
set /p C=Collor:
if "%C%"=="1" color F
if "%C%"=="2" color A
if "%C%"=="3" color C
if "%C%"=="4" color D
if "%C%"=="5" color B
if "%C%"=="6" color E
if "%C%"=="0" goto main
goto collor

:name
cls
echo ###############
echo #create a name#
echo ###############
echo.
echo Type in your name (please dont use spacebar)
echo.
:sellect3
set /p C=Name:
SET name=%C%
goto main

:chat
cls
echo ########
echo #-CHAT-#
echo ########
echo.
echo Every msg you type will be added in the chat.txt file,
echo so chek on that file for the chat.
echo.
:sellect3
set /p C=:
echo [%time%] %name%:%C%>>chat.txt
if "%C%"=="/clear" goto del
if "%C%"=="/afk" echo %name% is currently afk>>chat.txt
if "%C%"=="/back" echo %name% is no longer afk>>chat.txt
if "%C%"=="porn" echo %name% is a perv>>chat.txt
goto chat
:del
del chat.txt
goto chat

code reader:

@echo off
:1

cls
type chat.txt
PING -n 2 127.0.0.1>nul
goto 1

thats a bit it, kinda simple i know, but its fun to use and fun to make, feedback is always welcome! ^__^
have a great day/night

bye!

Picture of Chat
color.jpg
name.jpg
I'm guessing English isn't your first language?

What's the point of this? What can I use it for? How will it benefit me?

Anyhow, well done on your project.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!