Skip to content

Commit 0f045fb

Browse files
committed
Merge remote-tracking branch 'upstream/2.x' into rework/providers
2 parents a6441d7 + 1eb5d8a commit 0f045fb

File tree

2 files changed

+39
-17
lines changed

2 files changed

+39
-17
lines changed

.github/workflows/build-master.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
./gradlew publish
5555
5656
- name: Prepare Javadocs
57-
if: ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
5857
run: |
5958
mv Essentials/build/docs/javadoc/ javadocs/
6059
cp -r EssentialsAntiBuild/build/docs/javadoc/ javadocs/EssentialsAntiBuild/
@@ -65,11 +64,32 @@ jobs:
6564
cp -r EssentialsSpawn/build/docs/javadoc/ javadocs/EssentialsSpawn/
6665
cp -r EssentialsXMPP/build/docs/javadoc/ javadocs/EssentialsXMPP/
6766
68-
- name: Deploy Javadocs
69-
if: ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
70-
uses: netlify/actions/cli@master
67+
- name: Archive Javadocs
68+
uses: actions/upload-artifact@master
7169
with:
72-
args: deploy --dir=javadocs/ --prod --message="GitHubActionsDeploy"
70+
name: javadocs
71+
path: javadocs/
72+
73+
publish-jd:
74+
name: Publish Javadocs
75+
needs: build
76+
if: ${{ github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
77+
runs-on: ubuntu-latest
78+
79+
steps:
80+
- name: Setup Node
81+
uses: actions/setup-node@v3
82+
with:
83+
node-version: 16
84+
85+
- name: Download Javadocs
86+
uses: actions/download-artifact@master
87+
with:
88+
name: javadocs
89+
path: javadocs/
90+
91+
- name: Deploy Javadocs
92+
run: npx netlify-cli deploy --dir=javadocs/ --prod --message="GitHubActionsDeploy"
7393
env:
7494
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_JD_AUTH_TOKEN }}
7595
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_JD_2X_SITE_ID }}

EssentialsDiscord/README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ Discord bot at [discord.com/developers/applications](https://discord.com/develop
3434

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

0 commit comments

Comments
 (0)