name's cringe but that's literally what it is lol
This commit is contained in:
BongaTheProto
2022-01-05 04:09:12 -05:00
parent 49a68bfc65
commit 91a6b73ae1
3 changed files with 17 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ GLOBAL_PROTECT(admin_verbs_server)
/client/proc/forcerandomrotate,
/client/proc/adminchangemap,
/client/proc/panicbunker,
/client/proc/discordbunker, // SPLURT
// /client/proc/toggle_interviews,
/client/proc/toggle_hub,
/client/proc/toggle_cdn
@@ -270,6 +271,7 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
/proc/release,
/client/proc/reload_admins,
/client/proc/panicbunker,
/client/proc/discordbunker, // SPLURT
/client/proc/addbunkerbypass, //CIT
/client/proc/revokebunkerbypass, //CIT
// /client/proc/toggle_interviews,

View File

@@ -0,0 +1,14 @@
/client/proc/discordbunker() //TODO: add bunker bypass stuffs
set category = "Server"
set name = "Toggle Discord Bunker"
if(!SSdbcore.IsConnected())
to_chat(usr, "<span class='adminnotice'>The Database is not connected/enabled!</span>")
return
var/new_dbun = !CONFIG_GET(flag/need_discord_to_join)
CONFIG_SET(flag/need_discord_to_join, new_dbun)
log_admin("[key_name(usr)] has toggled the Discord Bunker, it is now [new_dbun ? "on" : "off"]")
message_admins("[key_name_admin(usr)] has toggled the Discord Bunker, it is now [new_dbun ? "enabled" : "disabled"].")
SSblackbox.record_feedback("nested tally", "discord_toggle", 1, list("Toggle Panic Bunker", "[new_dbun ? "Enabled" : "Disabled"]"))
send2adminchat("Discord Bunker", "[key_name(usr)] has toggled the Panic Bunker, it is now [new_dbun ? "enabled" : "disabled"].")

View File

@@ -4211,6 +4211,7 @@
#include "modular_splurt\code\game\object\structures\crates_lockers\crates\wooden.dm"
#include "modular_splurt\code\game\turfs\simulated\floor\fancy_floor.dm"
#include "modular_splurt\code\game\turfs\simulated\wall\mineral_walls.dm"
#include "modular_splurt\code\modules\admin\verbs\discordbunker.dm"
#include "modular_splurt\code\modules\admin\verbs\one_click_antag.dm"
#include "modular_splurt\code\modules\admin\verbs\randomverbs.dm"
#include "modular_splurt\code\modules\antagonists\ashwalker.dm"