mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
Adds a new api command to broadcast text to everyone on the server (#5571)
This commit is contained in:
+16
-1
@@ -147,7 +147,7 @@ proc/api_update_command_database()
|
||||
var/versionstring = null
|
||||
//The Version Number follows SemVer http://semver.org/
|
||||
version["major"] = 2 //Major Version Number --> Increment when implementing breaking changes
|
||||
version["minor"] = 3 //Minor Version Number --> Increment when adding features
|
||||
version["minor"] = 4 //Minor Version Number --> Increment when adding features
|
||||
version["patch"] = 0 //Patchlevel --> Increment when fixing bugs
|
||||
|
||||
versionstring = "[version["major"]].[version["minor"]].[version["patch"]]"
|
||||
@@ -1208,4 +1208,19 @@ proc/api_update_command_database()
|
||||
statuscode = 200
|
||||
response = "Poll data fetched"
|
||||
data = poll_data
|
||||
return 1
|
||||
|
||||
//Sends a text to everyone on the server
|
||||
/datum/topic_command/broadcast_text
|
||||
name = "broadcast_text"
|
||||
description = "Sends a text to everyone on the server."
|
||||
params = list(
|
||||
"text" = list("name"="text","desc"="The text that should be sent","req"=1,"type"="str")
|
||||
)
|
||||
|
||||
/datum/topic_command/broadcast_text/run_command(queryparams)
|
||||
to_world(queryparams["text"])
|
||||
|
||||
statuscode = 200
|
||||
response = "Text sent"
|
||||
return 1
|
||||
Reference in New Issue
Block a user