fucking fuck fuck

This commit is contained in:
Madpeterz 2021-02-14 21:14:41 +00:00
parent ddc6ceada8
commit 9fc9e306c9
2 changed files with 5 additions and 5 deletions

View file

@ -51,7 +51,7 @@ namespace BetterSecondBot.BetterRelayService
relay_config relay = new relay_config(); relay_config relay = new relay_config();
foreach (string a in bits) foreach (string a in bits)
{ {
string[] subbits = a.Split(":"); string[] subbits = a.Split("::");
if(subbits.Length == 2) if(subbits.Length == 2)
{ {
if(subbits[0] == "source-type") if(subbits[0] == "source-type")
@ -220,7 +220,7 @@ namespace BetterSecondBot.BetterRelayService
var content = new FormUrlEncodedContent(values); var content = new FormUrlEncodedContent(values);
try try
{ {
await HTTPclient.PostAsync(cfg.targetvalue, content).ConfigureAwait(true); await HTTPclient.PostAsync(cfg.targetvalue, content);
} }
catch (Exception e) catch (Exception e)
{ {

View file

@ -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 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 or via the config file
customrelays customrelays
>{ >{
>"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
>] >]
} }