From 9fc9e306c96ec6b492d09e26e76e28e620549310 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Sun, 14 Feb 2021 21:14:41 +0000 Subject: [PATCH] fucking fuck fuck --- BetterSecondbot/BetterRelayService/BetterRelay.cs | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BetterSecondbot/BetterRelayService/BetterRelay.cs b/BetterSecondbot/BetterRelayService/BetterRelay.cs index 1c5fec3..b70648e 100644 --- a/BetterSecondbot/BetterRelayService/BetterRelay.cs +++ b/BetterSecondbot/BetterRelayService/BetterRelay.cs @@ -51,7 +51,7 @@ namespace BetterSecondBot.BetterRelayService relay_config relay = new relay_config(); foreach (string a in bits) { - string[] subbits = a.Split(":"); + string[] subbits = a.Split("::"); if(subbits.Length == 2) { if(subbits[0] == "source-type") @@ -220,7 +220,7 @@ namespace BetterSecondBot.BetterRelayService var content = new FormUrlEncodedContent(values); try { - await HTTPclient.PostAsync(cfg.targetvalue, content).ConfigureAwait(true); + await HTTPclient.PostAsync(cfg.targetvalue, content); } catch (Exception e) { diff --git a/README.md b/README.md index fb12e11..2f527a3 100644 --- a/README.md +++ b/README.md @@ -146,16 +146,16 @@ You get set these tokens up by file or Environment Variables. This is to replace the old broken relay thats currently built into the bot -> CustomRelay_1 = "encode-as-json:true,source-type:discord,source-filter:123451231235@12351312321,target-type:localchat,target-config:4" +> CustomRelay_1 = "encode-as-json::true,source-type::discord,source-filter::123451231235@12351312321,target-type::localchat,target-config::4" -> CustomRelay_2 = "encode-as-json:false,source-type:discord,source-filter:123451231235@12351312321,target-type:localchat,target-config:4" +> CustomRelay_2 = "encode-as-json::false,source-type::discord,source-filter::123451231235@12351312321,target-type::localchat,target-config::4" or via the config file customrelays >{ >"CustomRelays": [ -> encode-as-json:false,source-type:discord,source-filter:123451231235@12351312321,target-type:chat,target-config:4 +> encode-as-json::false,source-type::discord,source-filter::123451231235@12351312321,target-type::chat,target-config::4 >] }