Giter Club home page Giter Club logo

talky's Introduction

#Welcome to Talky Talky is a C# project that I started. It is a part of my C# learning process. Please don't hate it. It's nice.

Here's a screenshot of the server and client. screenshot

#Client Use my Amazing Client to connect to this server.

#MySQL Upon initial connection, a MySQL configuration file is stored at C:\Talky\database.tcfg

#Configuration Here's the config format:

key:value

Don't put a space before or after the :.

##Adding Channels Configuration File: C:\Talky\channels.tcfg

The channel format is as follows:

NAME:LOBBY:LOCKED
==================
+NAME:true/false,true/false

Lobbies cannot be locked.

Normal channels can be locked.

Examples:

+CoolLobbyBro:true,false
+CoolChannelBro:false,true

Note that there can only be one lobby.

#Authentication This server comes with some sexy authentication.

Here's the MySQL table CREATE SQL thingy:

CREATE TABLE `users` (
  `id` bigint(30) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(16) NOT NULL,
  `password` varchar(128) NOT NULL,
  `created_at` datetime NOT NULL,
  `last_login` datetime NOT NULL,
  `role` enum('admin','user') NOT NULL DEFAULT 'user',
  PRIMARY KEY (`id`),
  UNIQUE KEY `username_UNIQUE` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

Here are the commands:

/register <username> <password>
/auth <username> <password>

#Protocol Welcome to the Talky Protocol. It's so difficult, you might have a hard time learning it.

##Messages:

M:Message

##Commands:

M:/command args

##Ping (TBI):

P:PING

Response:

P:PING

Ping pong is boring, sorry.

##STAT: Stat returns information about whatever you request. It's that simple, really.

Here's how you get channels:

S:ChannelList

Here's the response:

S:ChannelList:channel1;channel2;channel3

Nice and simple.

Here's how you get channel clients:

S:ChannelClientList

Here's the response:

S:ChannelClientList:dude1;dude2;dudet1;dudet2

Nice and simple.

Here's how you get information about the currently connected client:

S:Client

Here's what it spits back:

S:Client:USERNAME;True/False;+Channel

You're probably sat there wondering about the True/False. It's simple. True = muted. Work out the False.

Here's how you get account information about the currently connected client:

S:Account

Here's the response if they are not authenticated:

... What are you expecting?

Here's the response if they are authenticated:

S:Account:ID;Username;Role

##Watch me make it maybe. I sometimes stream on Twitch.TV. Feel free to watch me there if I happen to be streaming or something.

##Contributing Follow my fucking code style or go away. Thanks. <3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.