mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
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:
@@ -113,6 +113,7 @@
|
|||||||
var/list/maplist = get_list_of_keys(maps)
|
var/list/maplist = get_list_of_keys(maps)
|
||||||
send2maindiscord("A map vote was initiated with these options: [english_list(maplist)].")
|
send2maindiscord("A map vote was initiated with these options: [english_list(maplist)].")
|
||||||
send2mainirc("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
|
vote.allmaps = all_maps
|
||||||
return maps
|
return maps
|
||||||
|
|
||||||
|
|||||||
@@ -194,6 +194,7 @@
|
|||||||
// Discord crap.
|
// Discord crap.
|
||||||
var/discord_url
|
var/discord_url
|
||||||
var/discord_password
|
var/discord_password
|
||||||
|
var/kill_phrase = "All your bases are belong to us."
|
||||||
|
|
||||||
// Weighted Votes
|
// Weighted Votes
|
||||||
var/weighted_votes = 0
|
var/weighted_votes = 0
|
||||||
@@ -618,6 +619,9 @@
|
|||||||
if("weighted_votes")
|
if("weighted_votes")
|
||||||
weighted_votes = TRUE
|
weighted_votes = TRUE
|
||||||
|
|
||||||
|
if ("kill_phrase")
|
||||||
|
kill_phrase = value
|
||||||
|
|
||||||
else
|
else
|
||||||
diary << "Unknown setting in configuration: '[name]'"
|
diary << "Unknown setting in configuration: '[name]'"
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,9 @@
|
|||||||
/proc/send2admindiscord(var/msg, var/ping = FALSE)
|
/proc/send2admindiscord(var/msg, var/ping = FALSE)
|
||||||
send2discord(msg, "adminhelp", ping)
|
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.
|
// 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.
|
// AKA the MoMMI config file chooses where to send it based on this key.
|
||||||
/proc/send2discord(var/msg, var/meta, var/ping = FALSE)
|
/proc/send2discord(var/msg, var/meta, var/ping = FALSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user