Adding more functionalities to Discord Bot (Mainly testing)

This commit is contained in:
Repede
2018-02-28 19:12:23 -05:00
parent 22fb793bce
commit 7478ae0cb6
3 changed files with 21 additions and 1 deletions

View File

@@ -5,4 +5,18 @@
admin_only = FALSE //set to TRUE if this command should only be usable by registered chat admins
/datum/server_tools_command/who/Run(sender, params)
SERVER_TOOLS_CHAT_BROADCAST("[SERVER_TOOLS_CLIENT_COUNT]")
SERVER_TOOLS_CHAT_BROADCAST("[SERVER_TOOLS_CLIENT_COUNT]")
// - FAX
/datum/server_tools_command/readfax
name ="readfax"
help_text = "Reads a fax with specified faxid"
required_parameters = 1
admin_only = TRUE
/datum/server_tools_command/readfax/Run(sender, params)
var/faxid = params[1]
var/savefile/F = new()
var/faxfile = file("[config.fax_export_dir]/fax_[faxid].html")
var/faxmsg = F.ImportText("/",faxfile)
SERVER_TOOLS_RELAY_BROADCAST("FAX: [url_encode(faxmsg)]")