Log in

View Full Version : Omegabot - The nongraphical, retro Omegle client


Silicate Wielder
July 25th, 2014, 04:10 PM
Hey guys, having gotten bored today, I've been working on an omegle client, giving it that genuine retro look by completely ditching a graphical interface.

So far I've gotten up to doing the checks for different software that will be needed (some features arent in the code yet such as the code asking for permission to install required software.

What do you guys think? anything that I can improve?

#!/bin/bash

#This program is the Omegle chat client designed for Ubuntu 14.04 LTS and other variants
Ver="Omegabot V.1"
Notice="This stranger is using $Ver to omegle from a terminal. [Message generated by Omegebot]"

#Since we're meant to run on Ubuntu 14.04 and up, we need to identify the OS and do a software check. :)
#First we must retrive the Operating System Information
clear
. /etc/lsb-release
OS=$DISTRIB_ID
VER=$DISTRIB_RELEASE
#Now that we have this information, we need to compare it with the OS requirements specified by the code

if [ "$OS" = "Ubuntu" ]
then
if [ "$VER" = "14.04" ] && [ "$VER" > "14.04" ]
then
#Since we meet the system requirements, why not broadcast it?
echo "User is running an operating system that meets the system requirements!"
else
#We have the right OS, but we need a newer version, the User should be informed of this.
echo "Sorry, you need a newer version of Ubuntu to run this program."
fi
else
#We dont have the right OS at all, the user needs to know this so he/she can get onto the computer with the right OS.
echo "Sorry, but you need Ubuntu to run this program, press enter to exit the program"
read 496u;clear
fi

echo "$OS Version $VER"; clear
#We need to check to make sure it is okay to install any software that may not be installed already.

dialog= "$(which dialog)"
curl= "$(which curl)"
netcat = "$(which netcat)"

Microcosm
July 25th, 2014, 07:07 PM
I'm not a coding guy, but it does sound pretty cool =D