-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
38 lines (30 loc) · 960 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.IO;
using System.Text.Json;
using System.Net.WebSockets;
using System.Threading;
using System.Threading.Tasks;
using Websocket.Client;
using MongoDB.Bson;
using MongoDB.Driver;
namespace mentions
{
class Program
{
static void Main(string[] args)
{
// https://github.com/mongodb/mongo-csharp-driver
// https://github.com/Marfusios/websocket-client
//TODO
// mongo bindings
// figure out the actual mentions
// fill out commands
string address = Environment.GetEnvironmentVariable("address");
Chat chat = new Chat(address);
chat.ConnectedEvent += new Chat.EventHandlers().ConnectedAsync;
chat.DisconnectedEvent += new Chat.EventHandlers().DisconnectedAsync;
chat.MessageEvent += new Chat.Commands().PingAsync;
chat.Start(3000000);
}
}
}