Commit Graph

32 Commits

Author SHA1 Message Date
SkyratBot ccaec8b093 [MIRROR] Discord verification tweaks [MDB IGNORE] (#21687)
* Discord verification tweaks (#75870)

## About The Pull Request
* Minorly tweaks some wording on the Discord verification window
* Moves the verification command into its own little text box to make it
more obvious
* Also adds support for the `user-select` css property, which does not
appear to be currently functional in Byond's IE engine. If this gets
fixed in the future, we'll be ahead of the game!

## Why It's Good For The Game
Makes the Discord verification command stand out a little more.

* Discord verification tweaks

---------

Co-authored-by: Nick <nick@nfreader.net>
2023-06-07 16:34:33 +02:00
SkyratBot b85b24250e [MIRROR] Fix the notify restart verb. [MDB IGNORE] (#20287)
* Fix the notify restart verb. (#74427)

This system forgot that the list it was working with stored mention
strings (which contain uids) anyways, not uids.
🆑
fix: The notify restart verb in the ooc tab should now actually work.
/🆑

* Fix the notify restart verb.

---------

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2023-04-03 03:48:52 +01:00
SkyratBot 2a89a9f3af [MIRROR] Implement TGS DMAPI 6.1.0 features [MDB IGNORE] (#20201)
* Implement TGS DMAPI 6.1.0 features

* Update ticker.dm

* E

* Revert "E"

This reverts commit 23e33ae17d0a2ff58063940ca7c115113c0a02aa.

---------

Co-authored-by: Jordan Dominion <Cyberboss@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2023-03-31 14:50:32 +01:00
GoldenAlpharex 3d1a7ecff0 [MISSED MIRROR] Adds a config-optional endgame chat message (#72860) [MDB IGNORE] (#20108)
Adds a config-optional endgame chat message (#72860)

This basically does what we do for roundstart announcements, but for
round end.

With a delay between a round ending, the server rebooting, and a new
round starting, sometimes it feels like players would be more likely to
catch a roundstart when they know the previous game has just ended, and
not a few moments before the next one starts.

This idea was suggested to me several times by many people who don't
have good connections to servers and keep missing roundstart because
they just aren't given enough time to get on SS13.

I also included Round ID in this, so people who know what time they've
played a round can also now easily see which round it was, if they
wanted to go back to look at the logs for any reason they have.

🆑
config: There's now a config-optional announcer for a round ending.
/🆑

---------

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
2023-03-27 05:36:07 +01:00
SkyratBot 50871407e4 [MIRROR] Add config to validate admin discord commands with discord links and admin ranks [MDB IGNORE] (#19711)
* Add config to validate admin discord commands with discord links and admin ranks (#73818)

This adds a config to secure discord chat commands used by admins.

When enabled it compares the discord id the chat command came from with
the linked discords db to find their ckey, then checks they have the
correct admin rights.

The check automatically self disables if the db is down or if legacy
admin ranks are enabled. (There is no config for discord account linking
or i'd just use that.)

Moved non-admin discord commands out of the admin modules folder and
into the discord modules folder.

Deleted some defunct shit. There was a global list and admin only notify
command that was used by nothing.

There was a whole discord config section that was used by nothing.

* Add config to validate admin discord commands with discord links and admin ranks

---------

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2023-03-10 02:42:44 +00:00
SkyratBot 6e51ad38ef [MIRROR] Changes what appears for urgent ahelps to supportmins. [MDB IGNORE] (#11516)
* Changes what appears for urgent ahelps to supportmins. (#64748)

Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>

* Changes what appears for urgent ahelps to supportmins.

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
2022-02-15 23:27:40 +00:00
SkyratBot 647b408d01 [MIRROR] Fixes typos in span, other html elements [MDB IGNORE] (#10222)
* Fixes typos in span, other html elements (#63510)

Atomizes a much larger PR for another time...
There are typos in span and other html messages that causes them to not render correctly or at all.
Bug fixes
Converts those instances of span to use the macro

* Fixes typos in span, other html elements

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
2021-12-23 17:18:43 +00:00
SkyratBot 7d1d0e1fad [MIRROR] Refactors most spans into span procs (#6315)
* Refactors most spans into span procs

* AA

* a

* AAAAAAAAAAAAAAAAAAAAAA

* Update species.dm

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-06-16 00:24:49 +01:00
SkyratBot ef60ebcc2b [MIRROR] Fix inverted if operand in discord accountlink (#2588)
* Fix inverted if operand in discord accountlink (#56029)

* Fix inverted if operand in discord accountlink

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2021-01-09 13:51:35 +00:00
SkyratBot e0a5c58460 [MIRROR] Add config for discord bot prefix (#2122)
* Add config for discord bot prefix (#55400)

This allows you to set this in config, save having to hardcode it

I also fixed a mistake where only one message was changed in the
messaging from the account linking system

* Add config for discord bot prefix

Co-authored-by: oranges <email@oranges.net.nz>
2020-12-11 00:26:25 +00:00
SkyratBot c487c73f39 [MIRROR] Grep for space indentation (#1969)
* Grep for space indentation

* aa

* Update species.dm

* Update species.dm

* Update maps.dm

* Update examine.dm

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
Co-authored-by: Azarak <azarak10@gmail.com>
2020-12-01 12:26:41 +01:00
SkyratBot 6cc6330e6f [MIRROR] Changes the discord verify command from .verify to ?verify (#1937)
* Changes the discord verify command from .verify to ?verify

This stops it conflicting with an existing set of commands that are for fun usage

* Changes the discord verify command from .verify to ?verify

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
2020-11-29 21:29:55 +00:00
SkyratBot 944b11317d [MIRROR] fix discord verification instructions (#684)
* fix discord verification instructions (#53467)

these quotes kept getting selected because ie is a microsoft product and microsoft fucking hates their users so they do that thing where selection snaps to word boundaries

* fix discord verification instructions

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2020-09-07 03:46:52 +02:00
SkyratBot 41788d096e [MIRROR] Overhauls discord verification system (#588)
* Overhauls discord verification system (#53289)

This completely replaces the previous verification system, for one that
will interoperate with a discord redbot instance that uses the cogs
located at you github.com/optimumtact/orangescogs

This cuts out several steps in the system, but it also leaves alone the
existing notify system (which just uses a file list of discord ids) as a
record of who to notify

SQL changes required for the new database system

Version 5.10, 7 August 2020, by oranges

Changes how the discord verification process works.
Adds the discord_links table, and migrates discord id entries from
player table to the discord links table in a once off operation and then
removes the discord id on the player table

The user connects to any tg server, and uses the "Verify Discord
Account" verb, this generates a six word one time use token, with a 4
hour time validity period (defined as 4 hours from the timestamp value)
in the discord links table.

This one time token, and the ckey of the user are stored in
discord_links

At this point the entire DM side is done, this is all it does

* Overhauls discord verification system

Co-authored-by: oranges <email@oranges.net.nz>
2020-09-02 02:47:22 +02:00
jdawg1290 62676e72a8 Force LF line endings with gitattributes and convert repo (#52266)
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2020-07-16 03:02:40 +03:00
Jordan Brown 63e20801ed TGS chat usage cleanup
- Rename send2tgs to sent2adminchat.
- Move both chat procs to SSdiscord.dm.
- Fix bug when sending to TGS4 non-admin chats.
- Add DMdocs
- Improve notify command
  - Store mentions as strings
  - Disable command if config setting isn't enabled
2020-05-23 13:33:09 -04:00
oranges 550a0f2136 Use the correct api call when looking up a user by ckey (#50930) 2020-05-08 19:00:23 -07:00
oranges b930fa54ac Some minor cleanup around the verification system and jobexp (#50733)
Job exp now checks there is a living hours value, so as to avoid
returning a null unexpectedly.

Discord verification system now assumes you want at least 1 or more
hours of verification time, as it's value is limited otherwise
2020-05-01 05:39:50 -03:00
Kyle Spier-Swenson 9924db0e6c Use /tg/'s Discord UserID wiki page over Discord's because Discord's guide sucks. (#50172)
https://tgstation13.org/wiki/How_to_find_your_Discord_User_ID

Somebody who is an experienced discord user will likely already know how to find this, and somebody who is not may not be conformable enabling dev mode to get it. The bot command method is good for people who are on their phone, the url method is good for people on web discord, and desktop app users are likely to already have dev mode on.
2020-03-24 08:09:44 +13:00
Kyle Spier-Swenson ab0d88048e Adds tgs command to return the person's discord userid. (#50170) 2020-03-24 08:09:35 +13:00
Kyle Spier-Swenson 44c0866961 Adds user feedback to discord verifying (#50169)
If it doesn't say success, the user will assume it failed.
2020-03-24 08:09:24 +13:00
Bobbahbrown fdcbc8cd83 Adds Configurable Living Time Requirement to Discord Auto Enrollment (#50052)
About The Pull Request

As requested by oranges this enforces a requirement, when configured, that a player must have a certain amount of living playtime in hours to auto-enroll into a discord role.
Why It's Good For The Game

Removes discord moderation requirement
Changelog

cl bobbahbrown
server: Discord role auto enrollment can now be configured to require a certain number of living hours.
/cl
2020-03-20 21:09:16 +13:00
oranges eea13a21ea Improves discord roleapi system
Sends the discord id to the patch call, not the ckey

Add the verify command to readd the role to the api, with
a hacky, but effective slowdown to prevent the API being flooded easily
2020-02-27 06:47:16 +00:00
AffectedArc07 0315245729 Adds in discord auto-roling (#49374)
About The Pull Request

When a user successfully links their BYOND accounts and discord accounts, they will now be automatically roled, based on config settings.

NOTE: This does not update pre-linked accounts, but I can write an external bot to do that if needed

RUST-G has also been updated in this PR, to be inline with this PR over at RUST-G tgstation/rust-g#23

Why It's Good For The Game

People with linked accounts can now be given a specific role in the discord, which is good for verification.
Changelog

🆑 AffectedArc07
add: Linking your discord and BYOND accounts will now give you a role in the discord
/🆑
2020-02-20 22:37:14 +13:00
peoplearestrange 6070541c56 changes to category
changes Administration to Admin
2020-02-04 20:23:55 +00:00
peoplearestrange 5c18d0c8b6 Changes Category
Administration
2020-02-04 04:51:53 +00:00
peoplearestrange cf899d60ca Changes Category
OOC
2020-02-04 04:27:46 +00:00
peoplearestrange 2583a986c6 Changes Category
OOC
2020-02-04 04:26:55 +00:00
peoplearestrange 359ff12503 Changes Category
Administration
2020-02-04 04:26:27 +00:00
ShizCalev a0b8baf827 Fix typo in Discord linking process (#46353) 2019-09-06 19:53:26 -07:00
Akrilla c5b11dc283 Adds cancel buttons to inputs (#45825)
About The Pull Request

Adds cancel buttons to input boxes that didn't have them before.
Why It's Good For The Game

Good UX.
Changelog

cl
add: More cancel buttons.
/cl
2019-08-21 11:25:41 +12:00
AffectedArc07 c4e75bc40b [READY] SSdiscord and Round Notifications (#44231)
* Notify System

* V2

* Adds a hint

* Stoned fixes round 1

* Use grammar wells I can

* This didnt work

* I wish you could test on TGS without committing

* Jordie fixes round 1

* oops

* This took way longer than it should have taken

* Adds in endnotify for serverops

* Spacing
2019-06-30 00:43:25 +10:00