Commit Graph

24 Commits

Author SHA1 Message Date
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