Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static async void MainAsync()
- {
- #region RPC
- Console.WriteLine("Setting up RPC");
- rpc = new RpcClient("445101504546734080");
- rpc.ClientErrored += async (e) =>
- {
- Console.WriteLine("RPC Error! " + e.Exception);
- };
- rpc.ConnectionClosed += async (e) =>
- {
- Console.WriteLine("RPC Disconnected!");
- };
- rpc.Ready += async (e) =>
- {
- Console.WriteLine("RPC Ready!");
- await rpc.SetActivityAsync(x =>
- {
- x.Details = "Idle";
- x.LargeImage = "notitglogolarge";
- x.LargeImageText = "NotITG";
- });
- };
- Console.WriteLine("Connecting RPC!");
- await rpc.ConnectAsync();
- #endregion RPC
- //
- #region NotITG
- // SETUP
- /*nitg = new NITGCommunicator("NotITGv3");
- //
- var t = new System.Timers.Timer();
- t.Elapsed += NotITGTick;
- t.Interval = 20;
- t.Enabled = true;
- t.Start();*/
- Console.ReadLine();
- Console.WriteLine("Changing state...");
- await rpc.SetActivityAsync(x =>
- {
- x.Details = "IDLE2OMGJUSTCHANGEACTIVITYALREADY";
- x.LargeImage = "notitglogolarge";
- x.LargeImageText = "NotITG";
- });
- Console.WriteLine("Finished setting up NotITG Handler!");
- #endregion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement