mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Dev team chat (#26669)
* dev team chat initial * oops * refactor who code * allow discord relay * yeet some un-needed stuff * tweak the role colour * Update code/__DEFINES/admin_defines.dm Co-authored-by: ROdenFL <ROdenFL@yandex.ru> Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> * .Add to += * Update config/example/config.toml Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> --------- Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> Co-authored-by: ROdenFL <ROdenFL@yandex.ru> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
co-authored by
ROdenFL
AffectedArc07
parent
e0da59f5ea
commit
73e861b7c0
@@ -0,0 +1,11 @@
|
||||
// Relays messages to developer
|
||||
/datum/redis_callback/developer_in
|
||||
channel = "byond.devsay"
|
||||
|
||||
/datum/redis_callback/developer_in/on_message(message)
|
||||
var/list/data = json_decode(message)
|
||||
if(data["source"] == GLOB.configuration.system.instance_id) // Ignore self messages
|
||||
return
|
||||
for(var/client/C in GLOB.admins)
|
||||
if(check_rights(R_ADMIN|R_DEV_TEAM, FALSE, C.mob))
|
||||
to_chat(C, "<span class='dev_channel'>DEV: <small>[data["author"]]@[data["source"]]</small>: [html_encode(data["message"])]</span>")
|
||||
Reference in New Issue
Block a user