move object chat to its own channel

This commit is contained in:
Madpeter 2021-10-02 20:38:29 +01:00
parent eb4a3075ea
commit 237405a6a7
2 changed files with 6 additions and 2 deletions

View file

@ -217,6 +217,10 @@ namespace BetterSecondBot.DiscordSupervisor
{ {
display_topic = "Actions -> !clear"; display_topic = "Actions -> !clear";
} }
else if (channelname == "objectchat")
{
display_topic = "Actions -> !clear";
}
else if (sender_id == UUID.Zero.ToString()) else if (sender_id == UUID.Zero.ToString())
{ {
if (controler.getBot() != null) if (controler.getBot() != null)

View file

@ -87,11 +87,11 @@ namespace BetterSecondBot.DiscordSupervisor
{ {
if (sender_uuid != UUID.Zero) if (sender_uuid != UUID.Zero)
{ {
await SendEmbedToChannelAsync("localchat", sender_name, message, Discord.Color.DarkMagenta, "bot", UUID.Zero, "bot").ConfigureAwait(false); await SendEmbedToChannelAsync("objectchat", sender_name, message, Discord.Color.DarkMagenta, "bot", UUID.Zero, "bot").ConfigureAwait(false);
} }
else else
{ {
await SendEmbedToChannelAsync("localchat", sender_name, message, Discord.Color.DarkRed, "bot", UUID.Zero, "bot").ConfigureAwait(false); await SendEmbedToChannelAsync("objectchat", sender_name, message, Discord.Color.DarkRed, "bot", UUID.Zero, "bot").ConfigureAwait(false);
} }
} }
} }