Skip to content

Commit

Permalink
Merge pull request #137 from Huz2e/verify-verb
Browse files Browse the repository at this point in the history
verify
  • Loading branch information
Huz2e authored Jun 27, 2024
2 parents abed8ff + c67bd77 commit a8d81b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/_onclick/hud/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
var/force_verification = CONFIG_GET(number/force_verification)
var/discord = SSdiscord.lookup_id(usr.ckey)
if (force_verification && !discord && requires_discord)
if(tgui_alert(usr, "Для игры на сервере нужен привязанный аккаунт дискорда(OOC - Verify Discord). Желаете ли Вы открыть ссылку в браузере?",, list("Да","Нет"))!="Да")
if(tgui_alert(usr, "Для игры на сервере МассМета нужен привязанный аккаунт дискорда(OOC Verify Discord). Желаете ли Вы открыть ссылку в браузере?",, list("Да","Нет"))!="Да")
return
DIRECT_OUTPUT(usr, link("https://discord.gg/KBsjSv7Kh9"))
DIRECT_OUTPUT(usr, link("https://discord.gg/WRJ8bns7X7")) //прямая ссылка в канал верификации
else
if(owner != REF(usr))
return
Expand Down
4 changes: 2 additions & 2 deletions code/modules/discord/accountlink.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
// Simple sanity check to prevent a user doing this too often
var/cached_one_time_token = SSdiscord.reverify_cache[usr.ckey]
if(cached_one_time_token && cached_one_time_token != "")
message = "You already generated your one time token, it is [cached_one_time_token]. If you need a new one, you will have to wait until the round ends, or switch to another server; try verifying yourself on Discord by copying this command: <span class='code user-select'>[prefix]verify [cached_one_time_token]</span> and pasting it into the verification channel."
message = "Введите свой сгенерированный одноразовый токен <span class='code user-select'>[cached_one_time_token]</span> в Дискорд-канал #верификация. Если по каким-либо причинам вам нужен новый - дождитесь окончания раунда и повторите все заново." //MASSMETA EDIT CHANGE (discord verification)


else
// Will generate one if an expired one doesn't exist already, otherwise will grab existing token
var/one_time_token = SSdiscord.get_or_generate_one_time_token_for_ckey(ckey)
SSdiscord.reverify_cache[usr.ckey] = one_time_token
message = "Your one time token is: [one_time_token]. Assuming you have the required living minutes in game, you can now verify yourself on Discord by using the command: <span class='code user-select'>[prefix]verify [one_time_token]</span>"
message = "Ваш одноразовый токен: [one_time_token]. Теперь вы можете пройти верификацию, перейдя в канал #верификация в дискорде, нажав соответствующую кнопку у Бота и вписав там данный токен: <span class='code user-select'>[one_time_token]</span>" //MASSMETA EDIT CHANGE (discord verification)

//Now give them a browse window so they can't miss whatever we told them
var/datum/browser/window = new/datum/browser(usr, "discordverification", "Discord Verification")
Expand Down

0 comments on commit a8d81b3

Please sign in to comment.