mirror of
https://github.com/sern-handler/website
synced 2026-06-06 01:16:47 +00:00
feat: .env gitignore admonition and guidefeedback component where missing
This commit is contained in:
@@ -56,10 +56,6 @@ Then, fill in your application's name:
|
||||
MTE1MjM2MDczNzczMDE5OTU2Mg.GUWUsy.dXAoO6NI1Cy3OV7IA-BTGcyzLS28-9tECNcVOg
|
||||
```
|
||||
|
||||
:::danger
|
||||
Please don't share your discord token (and probably all your other secrets)!
|
||||
:::
|
||||
|
||||
- Scroll down and enable the `Message Content Intent` and `Server Members Intent` so text commands work and discord.js doesn't error out.
|
||||
|
||||
- Replace `YOUR_DISCORD_TOKEN` with your actual discord token:
|
||||
@@ -90,6 +86,11 @@ APPLICATION_ID=12345632432423987432987
|
||||
NODE_ENV=development
|
||||
```
|
||||
|
||||
:::danger
|
||||
Please do NOT commit this file! It basically contains the bot's password and, even though Discord will notice and create another token, other services will most probably not have that privilege!
|
||||
To fix this, create a `.gitignore` file and add an entry for `.env` [and `node_modules` while we're there](https://i.redd.it/tfugj4n3l6ez.png).
|
||||
:::
|
||||
|
||||
## Inviting your bot to a Discord server.
|
||||
|
||||
This is the last stretch!
|
||||
|
||||
@@ -3,6 +3,8 @@ title: command
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import GuideFeedback from "../../src/components/GuideFeedback";
|
||||
|
||||
# Commands
|
||||
|
||||
## Example command
|
||||
@@ -37,3 +39,5 @@ export default commandModule({
|
||||
})
|
||||
```
|
||||
|
||||
---
|
||||
<GuideFeedback />
|
||||
@@ -3,6 +3,8 @@ title: Logic
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
import GuideFeedback from "../../src/components/GuideFeedback";
|
||||
|
||||
## Game rules
|
||||
- Two players max.
|
||||
- Each player is assigned **X** or **O**
|
||||
@@ -100,6 +102,5 @@ const collector = responseMessage.createMessageComponentCollector({
|
||||
time: 60_000
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
<GuideFeedback />
|
||||
@@ -3,6 +3,7 @@ title: plugins
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
import GuideFeedback from "../../src/components/GuideFeedback";
|
||||
|
||||
# What are plugins?
|
||||
|
||||
@@ -49,3 +50,5 @@ run in any command / component.
|
||||
### How to contribute plugins?:
|
||||
- view [here](../../../guide/walkthrough/plugins).
|
||||
|
||||
---
|
||||
<GuideFeedback />
|
||||
@@ -3,9 +3,11 @@ title: intro
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
import GuideFeedback from "../../src/components/GuideFeedback";
|
||||
|
||||
> How hard can this be?
|
||||
|
||||
This will probably be the longest chapter in the book. Don't worry though, once we're done, making commands is [**fodder**](https://www.merriam-webster.com/dictionary/fodder).
|
||||
This will probably be the longest chapter in the guide. Don't worry though, once we're done, making commands is [**fodder**](https://www.merriam-webster.com/dictionary/fodder).
|
||||
|
||||
Here are some inspirational quotes to make you get motivated.
|
||||
> "If you don't make mistakes, you're not working on hard enough problems." ― Frank Wilczek
|
||||
@@ -16,5 +18,7 @@ Here are some inspirational quotes to make you get motivated.
|
||||
|
||||
If you want to add more, feel free to pull request this, but not too many please.
|
||||
|
||||
|
||||
TODO!!! - ADD TIC TAC TOE GIF HERE
|
||||
|
||||
---
|
||||
<GuideFeedback />
|
||||
@@ -3,6 +3,7 @@ title: UI
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
import GuideFeedback from "../../src/components/GuideFeedback";
|
||||
|
||||
## Message Components
|
||||
|
||||
@@ -116,3 +117,6 @@ Run your bot.
|
||||
- Congrats! You got something to display.
|
||||
Notice how when you try to click, it will say something like `interaction failed to respond`.
|
||||
**Next chapter**, let's wire everything up.
|
||||
|
||||
---
|
||||
<GuideFeedback />
|
||||
Reference in New Issue
Block a user