Add discord button to top

This commit is contained in:
Aronai Sieyes
2021-07-02 18:22:56 -04:00
parent 028bee93d4
commit fbb7a3118e
5 changed files with 150 additions and 123 deletions
+13
View File
@@ -67,6 +67,19 @@
to_chat(src, "<span class='danger'>The GitHub URL is not set in the server configuration.</span>")
return
/client/verb/discord()
set name = "Discord"
set desc = "Visit the discord"
set hidden = 1
if(config.discordurl)
if(tgui_alert(usr, "This will open the Discord in your browser. Are you sure?","Visit Website",list("Yes","No"))=="No")
return
src << link(config.discordurl)
else
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>")
return
/client/verb/hotkeys_help()
set name = "hotkeys-help"
set category = "OOC"