Files
Paradise/code/modules/redis/callbacks/dev_callback.dm
Sean 73e861b7c0 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>
2024-09-03 16:49:45 +00:00

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>")