Sends a discord killphrase after a round has ended (#28546)

* Sends a discord killphrase after a round has ended

* Move it to a config
This commit is contained in:
ShiftyRail
2021-01-26 01:27:43 +01:00
committed by GitHub
parent 8dcd9717ba
commit dd7514b413
3 changed files with 8 additions and 0 deletions

View File

@@ -113,6 +113,7 @@
var/list/maplist = get_list_of_keys(maps)
send2maindiscord("A map vote was initiated with these options: [english_list(maplist)].")
send2mainirc("A map vote was initiated with these options: [english_list(maplist)].")
send2ickdiscord(config.kill_phrase) // This the magic kill phrase
vote.allmaps = all_maps
return maps

View File

@@ -194,6 +194,7 @@
// Discord crap.
var/discord_url
var/discord_password
var/kill_phrase = "All your bases are belong to us."
// Weighted Votes
var/weighted_votes = 0
@@ -618,6 +619,9 @@
if("weighted_votes")
weighted_votes = TRUE
if ("kill_phrase")
kill_phrase = value
else
diary << "Unknown setting in configuration: '[name]'"

View File

@@ -8,6 +8,9 @@
/proc/send2admindiscord(var/msg, var/ping = FALSE)
send2discord(msg, "adminhelp", ping)
/proc/send2ickdiscord(var/msg, var/ping = FALSE)
send2discord(msg, "ick", ping)
// Meta argument here is the MoMMI meta argument to send to the gamenudge route.
// AKA the MoMMI config file chooses where to send it based on this key.
/proc/send2discord(var/msg, var/meta, var/ping = FALSE)