Files
Paradise/code/modules/admin/verbs/debug_dmapi.dm
warriorstar-orion 2a842644d5 port ADMIN_VERB and friends (#30646)
* port ADMIN_VERB and friends

* some renaming

* dumb

* one more rename

* never search and replace this codebase

* fix TM issues, more renaming

* add a static analysis to shore up user verbs

* fix double message on roundstart

* remove macro we're not using yet

* convert remaining playsounds verbs

* convert more verbs i missed somehow

* why is this a completely different signature than everything else

* fix ui_interact arg

* fix logging view and others

* buncha issues caught in TM

* fix mentor tickets ui

* fix bug report viewing

* moron
2025-12-12 19:18:22 +00:00

23 lines
1.1 KiB
Plaintext

// Admin verb to debug the DMAPI
USER_VERB(debug_dmapi, R_DEBUG, "Debug DMAPI", "Dump DMAPI information.", VERB_CATEGORY_DEBUG)
if(!world.TgsAvailable())
to_chat(client, "DMAPI not connected")
return
to_chat(client, "TGS Info")
to_chat(client, "Revision: [world.TgsRevision()]")
to_chat(client, "Version: [world.TgsVersion()]")
to_chat(client, "API Version: [world.TgsApiVersion()]")
to_chat(client, "Instance Name: [world.TgsInstanceName()]")
to_chat(client, "Testmerges:")
for(var/datum/tgs_revision_information/test_merge/TM as anything in world.TgsTestMerges())
to_chat(client, "#[TM.number] | [TM.author] - [TM.title]")
to_chat(client, "Channel info:")
for(var/datum/tgs_chat_channel/CC as anything in world.TgsChatChannelInfo())
to_chat(client, "I:[CC.id] | FN:[CC.friendly_name] | AC:[CC.is_admin_channel] | PC:[CC.is_private_channel] | CT:[CC.custom_tag]")
to_chat(client, "Security level: [world.TgsSecurityLevel()]")
USER_VERB(dmapi_log, R_DEBUG, "DMAPI Log", "Open the DMAPI log.", VERB_CATEGORY_DEBUG)
client << browse(GLOB.tgs_log.Join("<br>"), "window=dmapi_log")