[ABANDONED!] This is a Discord Bot written in C# that connects to Omegle and utilize the normal chat, question and spyee function.
https://phenomic.net
This repository has been archived on 2019-11-10. You can view files and clone it, but cannot push or open issues/pull-requests.
Omegle-Discord-Bot [NOT FUNCTIONAL! ABANDONED!]
** Abandoned **
This project has been abandoned with the introduction of Google's ReCAPTCHA V2+ usage on Omegle.com. The bot has become non-functional because I simply have no way of handling Google's Captcha in Discord directly. I leave this bot up, if anyone want to maintain this bot, please contact me via Discord or via E-Mail (thephenom1811@gmail.com, phenom@phenomic.net).
Original Description
This is a Discord Bot written in C# that connects to Omegle and utilize the normal chat, question and spyee function.
CI Buildserver: 
Get Latest Release Build here: Download!
Get Latest Debug Build here: Download!
Current functional Commands
- .omg chat [lang] [BOOLunmoderated] [topic1] [topic2]..
- .omg reconnect
- .omg disconnect
- .omg end
- .omg perm list [@role]
- .omg perm add <@role>
- .omg perm remove <@role>
- .omg perm setroleright <User/Moderator/Administrator>
- .omg admin clean
- .omg admin setsessiontimeout <NUMTimeSeconds>
- .omg admin setmaxsessions <NUMMaxChannels>
- .omg owner counttotal
- .omg owner countprivate
- .omg owner countshard <ShardId>
Starting the bot
In order to run the bot you need the latest .NET Core Framework (Not to mix up with .NET Framework). Get it
here!
After you got the Framework installed, start a Shell (cmd.exe, terminal) and cd to the directory you have placed the publish files in.
Execute now "dotnet Omegle-Discord-Bot.dll [NUMOfShards]" from the Shell to start the bot.
Configuration Setup
After starting the bot, you must setup the config.json file. That you can find under Omegle-Discord-Bot/bin/{Debug_Or_Release}/netcoreapp1.1/
In "Owners" you enter your Client ID and seperate it by commas if you want to add more than just one owner
In "Token" you enter your App Bot User Token
In "BotClientID" you enter the Bot Client ID
In "MySQL_Host" you enter the Host Address for your MySQL Database
In "MySQL_User" you enter your MySQL User Handle
In "MySQL_Password" you enter your MySQL Password for the User Handle
In "MySQL_Database" you can enter a custom Database name that is being used on your MySQL Server
Private Sessions
You can also start private Sessions by just sending the Bot private messages (DM's). You can do .omg help in a private Message to find out which commands are available in private mode.
Planned Commands and description
Start Session Commands
Command |
Example Usage |
Description |
.omg chat [lang] [BOOLunmoderated] [topic1] [topic2].. |
.omg chat en false swimming friends |
Starts an Omegle Chat. |
.omg question <Question> |
.omg question How is the weather over there? |
Starts a question chat where you can 2 Strangers discuss your question. |
.omg spyee |
.omg spyee |
Starts a Spyee chat where you and others can discuss a question. |
General Commands
Command |
Example Usage |
Description |
.omg reconnect |
.omg reconnect |
Reconnects you with other Stranger/s. |
.omg disconnect |
.omg disconnect |
Disconnects you from the session. A session timeout timer will be started. |
.omg end |
.omg end |
Ends your omegle session completely. |
Admin Commands
Require Bot owner, Guild owner, Admin role permission, or Permission with Administrator privilege
Command |
Example Usage |
Description |
.omg admin clean |
.omg admin clean |
Ends all Omegle sessions of your guild and removes the corresponding channels. |
.omg admin setsessiontimeout <NUMTimeSeconds> |
.omg admin setsessiontimeout 30 |
After a stranger has disconnected, how long should the channel exist for reconnecting. |
.omg admin setmaxsessions <NUMMaxChannels> |
.omg admin setmaxsessions 10 |
Limits how many public chatrooms (Text channels) can be created. Set to 0 for infinite channels. |
.omg admin setsessioncooldown <NUMTimeSeconds> |
.omg admin setsessioncooldown 60 |
After a user has killed his session, how long does he need to wait before he can start a new one. |
.omg admin killallsessions |
.omg admin killallsessions |
Kills all Sessions running on a Guild. |
Moderator Commands
Require Bot owner, Guild owner, Admin role permission, or Permission with atleast Moderator privilege
Command |
Example Usage |
Description |
.omg mod list [@user] |
.omg mod list @PHENOMICAL |
If @user is supplied, it lists information on that specific session, if not it lists all active sessions. |
.omg mod endsession <@user> |
.omg mod endsession @PHENOMICAL |
Ends the session for the specified user. |
Permission Commands
Require Bot owner, Guild owner, Admin role permission, or Permission with Administrator privilege
Command |
Example Usage |
Description |
.omg perm list [@role] |
.omg perm list @adminRole |
[@role] Parameter is optional, but when given it lists the permissions on that role (use this when you want to know which permissions specifically are enabled to that role), otherwise it lists all permissions for your guild in a list style |
.omg perm remove <@role> |
.omg perm remove @adminRole |
Removes a role from the permission system. |
.omg perm add <@role> |
.omg perm add @adminRole |
Adds an role to the permission system. |
.omg perm set <@role> <NUMindex> <BOOLValue> |
.omg perm set @userRole 1 true |
Set's a permission right. |
.omg setroleright <@role> <User/Moderator/Administrator> |
.omg perm setroleright @modRole Moderator |
Set's a Role privilege on the permission. |
Utility Commands
Require Bot owner, Guild owner, Admin role permission, or Permission with atleast Moderator privilege
Command |
Example Usage |
Description |
.omg util status |
.omg util status |
Returns the total connections to Omegle, Ban status, Antinude percent, Spy queue time, Spyee queue time and Timestamp |
.omg util antinudeservers |
.omg util antinudeservers |
Returns the current active antinude servers. |
.omg util servers |
.omg util servers |
Returns the current active servers on omegle. |
Bot-Owner Commands
Require Bot owner ClientID written into the config.json
Command |
Example Usage |
Description |
.omg owner counttotal |
.omg owner counttotal |
Counts all ongoing Sessions. |
.omg owner countprivate |
.omg owner countprivate |
Counts all private Sessions. These run always on Shard 0. |
.omg owner countshard <ShardID> |
.omg owner countshard 4 |
Counts all Sessions running on a Shard. If you enter Shard 0 private Sessions will be included in the count. |
.omg owner end <shard/guild/user> <id> |
.omg owner end shard 4 |
Ends all Sessions running on a shard, guild or a single user. |
.omg owner listsessions [shard/guild/user] [id] |
.omg owner listsessions shard 1 |
Creates a file, listing all Sessions active on the guild, shard or user. If no parameters were supplied it prints all Sessions. |