mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 04:02:33 +00:00
* 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>
12 lines
504 B
Plaintext
12 lines
504 B
Plaintext
// 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>")
|