Skip to content

Commit

Permalink
Discordbot (#112)
Browse files Browse the repository at this point in the history
* add discord bot code

* не раскомментил кусок кода

* ds bot
  • Loading branch information
Sh1ntra authored Nov 1, 2024
1 parent d32a59b commit c7fae0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Administration/Systems/BwoinkSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public void DiscordAhelpSendMessage(BwoinkTextMessage message, EntitySessionEven
bwoinkText = $"{"(Discord) "}{bwoinkText}: {escapedText}";
// If it's not an admin / admin chooses to keep the sound then play it.
var playSound = !senderAHelpAdmin || message.PlaySound;
var msg = new BwoinkTextMessage(message.UserId, senderSession.UserId, bwoinkText, playSound: playSound);
var msg = new BwoinkTextMessage(message.UserId, message.TrueSender, bwoinkText, playSound: playSound);
LogBwoink(msg);
var admins = GetTargetAdmins();
// Notify all admins
Expand Down

0 comments on commit c7fae0f

Please sign in to comment.