Skip to content

Commit

Permalink
Система оповещения о пингах в Discord
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalFaceLesS committed Apr 13, 2024
1 parent 6bb7d41 commit 5925119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/admin/verbs/adminhelp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
SSredbot.send_discord_message("admin", "Ticket #[id] created by [usr.ckey] ([usr.real_name]): [name]", "ticket")

//send it to TGS if nobody is on and tell us how many were on
var/admin_number_present = send2tgs_adminless_only(initiator_ckey, "Ticket #[id]: [msg]")
var/admin_number_present = send2tgs_adminless_only(initiator_ckey, "<@&1172909270442971207>, был создан новый Ticket #[id]: [msg]")
log_admin_private("Ticket #[id]: [key_name(initiator)]: [name] - heard by [admin_number_present] non-AFK admins who have +BAN.")
if(admin_number_present <= 0)
to_chat(C, "<span class='notice'>No active admins are online, your adminhelp was sent through TGS to admins who are available. This may use IRC or Discord.</span>", confidential = TRUE)
to_chat(C, "<span class='notice'>В данный момент активные администраторы отсутствуют. Ваш тикет был передан администрации в Discord.</span>", confidential = TRUE)
heard_by_no_admins = TRUE
GLOB.ahelp_tickets.active_tickets += src

Expand Down

0 comments on commit 5925119

Please sign in to comment.