Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/2.x' into rework/providers
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Oct 13, 2022
2 parents a6441d7 + 1eb5d8a commit 0f045fb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 17 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
./gradlew publish
- name: Prepare Javadocs
if: ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
run: |
mv Essentials/build/docs/javadoc/ javadocs/
cp -r EssentialsAntiBuild/build/docs/javadoc/ javadocs/EssentialsAntiBuild/
Expand All @@ -65,11 +64,32 @@ jobs:
cp -r EssentialsSpawn/build/docs/javadoc/ javadocs/EssentialsSpawn/
cp -r EssentialsXMPP/build/docs/javadoc/ javadocs/EssentialsXMPP/
- name: Deploy Javadocs
if: ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
uses: netlify/actions/cli@master
- name: Archive Javadocs
uses: actions/upload-artifact@master
with:
args: deploy --dir=javadocs/ --prod --message="GitHubActionsDeploy"
name: javadocs
path: javadocs/

publish-jd:
name: Publish Javadocs
needs: build
if: ${{ github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
runs-on: ubuntu-latest

steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Download Javadocs
uses: actions/download-artifact@master
with:
name: javadocs
path: javadocs/

- name: Deploy Javadocs
run: npx netlify-cli deploy --dir=javadocs/ --prod --message="GitHubActionsDeploy"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_JD_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_JD_2X_SITE_ID }}
26 changes: 14 additions & 12 deletions EssentialsDiscord/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ Discord bot at [discord.com/developers/applications](https://discord.com/develop

1. Once on that page, click on "New Application" button on the top right, give your bot a name, and
then click "Create".
> ![Creating Application](https://i.imgur.com/8ffp4R1.gif)
> ![Creating Application](https://i.imgur.com/4VfNpQc.gif)
> `New Application` -> Give Application a Name -> `Create`
2. Once you create the application, you'll be directed to its overview. From this screen, you'll
need to copy your "Client ID"/"Application ID" and save it for a later step. To copy your
Client ID, click the upper-left most blue "Copy" button. Make sure to save it for a later step.
> ![Copy Client ID](https://i.imgur.com/W3OMTu5.gif)
need to copy your "Application ID" and save it for a later step. To copy your
Application ID, click the upper-left most blue "Copy" button. Make sure to save it for a later step.
> ![Copy Application ID](https://i.imgur.com/1QuUYKN.gif)
> `Copy` -> Paste into Notepad for later step
3. Optionally, you can set an icon for your application as it will be the icon for the bot too.
Expand All @@ -49,18 +49,20 @@ Client ID, click the upper-left most blue "Copy" button. Make sure to save it fo
4. The next step is actually creating a bot user for your application. From the overview screen,
this is done by going to the "Bot" tab on the left, then clicking the "Add Bot" on the right,
and finally then clicking "Yes, do it!".
> ![Create Bot](https://i.imgur.com/S14iAFS.gif)
> ![Create Bot](https://i.imgur.com/oW47yTu.gif)
> `Bot` -> `Add Bot` -> `Yes, do it!`
5. Once on this screen, you'll need to uncheck the "Public Bot" setting and then click "Save Changes",
so other people can't add your bot to servers that are not your own.
> ![Disable Public Bot](https://i.imgur.com/HHqWvQ1.gif)
> Uncheck `Public Bot` -> `Save Changes`
5. Once on this screen, you'll need to uncheck the "Public Bot" setting, enable all the "Privileged
Intents", and then click "Save Changes". This prevents other people from adding your bot and also
allows your bot to use more Discord features.
> ![Update Bot Settings](https://i.imgur.com/eIegfCC.gif)
> Uncheck `Public Bot` -> Check `Presence Intent` -> Check `Server Members Intent` -> Check `Message Content Invent` -> Save Changes`
6. Finally, you'll need to copy your bot's token and save it for a later step. To copy your bot's token,
click the blue "Copy" button right of your bot's icon. Make sure to save it for a later step.
> ![Copy Token](https://i.imgur.com/OqpaSQH.gif)
> `Copy` -> Paste into Notepad for later step
click the blue "Reset Token" button right of your bot's icon, then click "Yes, do it!", and finally
click "Copy". Make sure to save it for a later step.
> ![Copy Token](https://i.imgur.com/C8Sk0z6.gif)
> `Reset Token` -> `Yes, do it!` -> `Copy` -> Paste into Notepad for later step
7. Next up is adding your bot to your Discord server. First, go to [essentialsx.net/discord.html](https://essentialsx.net/discord.html)
and paste your Client ID you copied from step 2 into the text box on that page. Once you do that, click
Expand Down

0 comments on commit 0f045fb

Please sign in to comment.