aboutsummaryrefslogtreecommitdiffstats
path: root/src/Types.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Types.hx')
-rw-r--r--src/Types.hx31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Types.hx b/src/Types.hx
index 3d4ac4f..03f18bd 100644
--- a/src/Types.hx
+++ b/src/Types.hx
@@ -2,6 +2,35 @@ package;
import Client.ClientData;
+typedef Config = {
+ channelName:String,
+ maxLoginLength:Int,
+ maxMessageLength:Int,
+ serverChatHistory:Int,
+ videoLimit:Int,
+ leaderRequest:String,
+ emotes:Array<Emote>,
+ filters:Array<Filter>
+};
+
+typedef Emote = {
+ name:String,
+ image:String
+};
+
+typedef Filter = {
+ name:String,
+ regex:String,
+ flags:String,
+ replace:String
+};
+
+typedef Message = {
+ text:String,
+ name:String,
+ time:String
+}
+
typedef VideoItem = {
url:String,
title:String,
@@ -12,6 +41,8 @@ typedef VideoItem = {
typedef WsEvent = {
type:WsEventType,
?connected:{
+ config:Config,
+ history:Array<Message>,
clients:Array<ClientData>,
isUnknownClient:Bool,
clientName:String,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage