Download the PHP package warlof/seat-discord-connector without Composer

On this page you can find all versions of the php package warlof/seat-discord-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package seat-discord-connector

Seat Discord Connector

A SeAT plugin which maintain user access on a Discord Guild based on defined pattern.

Latest Unstable Version Latest Stable Version Maintainability License

Thanks to Warlof Tutsimo for writing the original plugin. Development has been taken over by zenobio93 from 23. December 2023. To find the applied changes, please consult the git history.

Setup

Create Application

NOTE

For example, if you have SeAT available on seat.example.com, the callbacks will be

  • https://seat.example.com/seat-connector/registration/discord/callback
  • https://seat.example.com/seat-connector/settings/discord/callback

But, if you're accessing SeAT using example.com/seat, the callbacks will become

  • https://example.com/seat/seat-connector/registration/discord/callback
  • https://example.com/seat/seat-connector/settings/discord/callback

Retrieving Credentials

Once your application has been created, we will need to retrieve credentials which will be used later in order to setup the connector into SeAT.

Go on the following url and click on the box which is matching to the previously created application.

Take a note of the following information :

Install Package

Since SeAT 3.0 - it's become super easy to install package. Just require warlof/seat-discord-connector, publish vendor and run migrations scripts :)

Don't forget to restart supervisor with service supervisor restart (or your seat-worker container if you're under Docker) ;)

IMPORTANT

All upper command have to be run using the SeAT instance user www-data, seat or whatever you've done with your installation. They need to be run at root SeAT directory which used to be /var/www/seat

Setup Package

Authenticate yourself using admin user on your SeAT instance. If all upper statements have been executed properly, you'll seed a new section into the sidebar called Connector.

Open it, then go into Settings and fill the form using collected information at the beginning of this Walkthrough.

Confirm using the Update button which will redirect you to Discord SSO.

In the list, select the server where the SeAT Bot have to be install, leave permissions as it and click on Authorize button.

My apologies for all that french stuff, but Discord SSO is using browser settings to show content. Despite of the language, content should be similar in all countries.

Once you've been redirected back to SeAT, you can select Discord and hit the Update Sets green button which will seed SeAT with Roles available on Discord.

Setup Access

To build the mapping between SeAT and Discord, go into Connector > Access Management. In case you're seeing no roles in the form, go into Connector > Settings and hit the Update Discord Sets button.

In Discord Connector, there are 6 kind of mapping called Filter. Their scope are explained in the table bellow.

Filter Description
User This filter is applied to specific user group (meaning all linked characters)
Role This filter is applied to all members of specific SeAT role (ACL)
Corporation This filter is applied to all user with at least one character inside a specific corporation
Title This filter is applied to all user with at least one character owning a specific corporation title
Alliance This filter is applied to all user with at least one character inside a specific alliance
Public This filter is applied to all user

To create a filter, simply fill the form available on the left accordingly to your needs. Then, hit the Add button. At all time, you're able to check which filter are set in the table available on the right side. You can also drop mapping using the red Remove button near each mapping line.

Linking Account and Getting Invitation

As user, you will see a section called Connector on the sidebar. Open it and click on Join Server.

This will redirect your to Discord SSO with a simple form informing you that the bot will be able to collect basic information (like your Discord Unique ID and Nickname), and granted to invite you on the attached Discord Server.

Simply confirm using the Authorize button which will redirect you to the SeAT homepage with a green confirmation box.

You'll be invited automatically to the Discord Server and attached channels.

Upgrade

If you're coming from a version prior to 4.x, you may want to convert your data into the new connector structure. To do so, run the command seat-connector:convert:discord - it will assist you in this process.

Callback URL have been changed, this mean you'll have to update your Discord Application.

Known issues

Here is a quick list of known issues (and their solution if applicable). Purpose is to assist you in troubleshooting and lead to a resolution path.

Problem Solution
My job MemberOrchestrator is failing with the message Client error: PATCH https://discordapp.com/api/v6/guilds/302770933452636161/members/353886200135942144 resulted in a 403 FORBIDDEN Ensure the bot role is at top level of your roles list (use drag and drop to sort them)

All versions of seat-discord-connector with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
warlof/seat-connector Version ^3.0
socialiteproviders/discord Version ^4.2
eveseat/services Version ^5.0
eveseat/eveapi Version ^5.0
eveseat/web Version ^5.0
eveseat/api Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package warlof/seat-discord-connector contains the following files

Loading the files please wait ....