Adds Discord bot messaging. (#11583)

* Adds Discord bot messaging.

* More verbose admin messages
This commit is contained in:
PJB3005
2016-08-26 15:59:06 +02:00
committed by clusterfack
parent 0cba97aaec
commit f08ea0f8bc
10 changed files with 46 additions and 6 deletions

View File

@@ -180,6 +180,10 @@
var/error_silence_time = 6000 // How long a unique error will be silenced for
var/error_msg_delay = 50 // How long to wait between messaging admins about occurrences of a unique error
// Discord crap.
var/discord_url
var/discord_password
/datum/configuration/New()
. = ..()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
@@ -232,10 +236,10 @@
switch (name)
if ("resource_urls")
config.resource_urls = splittext(value, " ")
if("tts_server")
if("tts_server")
config.tts_server = value
if ("admin_legacy_system")
config.admin_legacy_system = 1
@@ -559,6 +563,10 @@
error_silence_time = value
if("error_msg_delay")
error_msg_delay = value
if("discord_url")
discord_url = value
if("discord_password")
discord_password = value
else
diary << "Unknown setting in configuration: '[name]'"

View File

@@ -247,6 +247,7 @@ datum/shuttle_controller/emergency_shuttle/process()
settimeleft(SHUTTLELEAVETIME)
send2mainirc("The Emergency Shuttle has docked with the station.")
send2maindiscord("The **Emergency Shuttle** has docked with the station.")
captain_announce("The Emergency Shuttle has docked with the station. You have [round(timeleft()/60,1)] minutes to board the Emergency Shuttle.")
world << sound('sound/AI/shuttledock.ogg')
@@ -366,4 +367,3 @@ datum/shuttle_controller/emergency_shuttle/process()
S.direction = spawndir
spawn()
S.startmove()