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 >] }