Skip to content

Commit

Permalink
New examples (#385)
Browse files Browse the repository at this point in the history
* $blackListRoles

* $blackListRolesIDs.

* Update blackListServers.md

* Update blackListUsers.md

* Update botLeaveComplex.md

* Update botListHide.md

* Update botNode.md

* Update calculate.md

* Update channelIDComplex.md

* Update channelIDFromName.md

* Update channelName.md

* Update channelPosition.md

* Update channelPositionComplex.md

* Update charCount.md

* Update channelSendMessage.md
  • Loading branch information
Rainb0wKey committed Jan 21, 2024
1 parent 03fef89 commit 491be03
Show file tree
Hide file tree
Showing 15 changed files with 210 additions and 31 deletions.
36 changes: 35 additions & 1 deletion src/bdscript/blackListRoles.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,38 @@ $nomention
$blackListRoles[Owner;Bot;❌ You can't use this command!]
Pong! $ping ms
```
![example](https://user-images.githubusercontent.com/113303649/210046896-9e45b0c5-68f1-49b8-9bf0-90694df688cf.png)

```discord yaml
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
❌ You can't use this command!
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
Because I have a role with name "Owner".
- user_id: 437154602626973697
username: Kito
avatar: https://github.com/Rainb0wKey/bdfd-wiki/assets/113303649/5d649ade-b7d9-471f-84d0-8cc36b4fa76e
color: "#4365ab"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Pong! 2 ms
```
31 changes: 30 additions & 1 deletion src/bdscript/blackListRolesIDs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,33 @@ $nomention
$blackListRolesIDs[1009019299987476540;1014547313957539901;❌ You can't use this command!]
Pong! $ping ms
```
![example](https://user-images.githubusercontent.com/113303649/210046896-9e45b0c5-68f1-49b8-9bf0-90694df688cf.png)


```discord yaml
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
❌ You can't use this command!
- user_id: 437154602626973697
username: Kito
avatar: https://github.com/Rainb0wKey/bdfd-wiki/assets/113303649/5d649ade-b7d9-471f-84d0-8cc36b4fa76e
color: "#4365ab"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Pong! 4 ms
```
38 changes: 35 additions & 3 deletions src/bdscript/blackListServers.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,40 @@ $blackListServers[Guild IDs;...;Error message]
```
$nomention
$blackListServers[1009018669982031912;❌ You can't use this command!]
**Hello $username!**
Pong! $ping ms
*Guild ID: $guildID*
```
![example](https://user-images.githubusercontent.com/113303649/211995843-0d9eba33-e36a-484f-ad97-eb6e67391af1.png)\
![example](https://user-images.githubusercontent.com/113303649/211996168-47ba94ff-e03d-40f9-8b33-5758454f5ce9.png)

```discord yaml
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
❌ You can't use this command!
```
\

```discord yaml
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Pong! 1 ms
<i>Guild ID: 1009018669982031912</i>
```
38 changes: 36 additions & 2 deletions src/bdscript/blackListUsers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,40 @@ $blackListUsers[Usernames;...;Error message]
```
$nomention
$blackListUsers[RainbowKey;❌ You can't use this command!]
Hello $displayName!
Pong! $ping ms
```

```discord yaml
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
❌ You can't use this command!
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
Because my username is "RainbowKey".
- user_id: 437154602626973697
username: Kito
avatar: https://github.com/Rainb0wKey/bdfd-wiki/assets/113303649/5d649ade-b7d9-471f-84d0-8cc36b4fa76e
color: "#4365ab"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Pong! 3 ms
```
![example](https://user-images.githubusercontent.com/113303649/211997181-4ad65536-9b54-4f15-bd1f-07eb0df92686.png)
5 changes: 3 additions & 2 deletions src/bdscript/botLeaveComplex.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ $botLeave[$message]
color: "#E67E22"
content: |
!example 1009018156494368798
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
I left out <discord-inline-code>BDFD Support</discord-inline-code> server.
```
Expand Down
8 changes: 4 additions & 4 deletions src/bdscript/botListHide.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ $botListHide

![example](https://user-images.githubusercontent.com/113303649/210347402-7b36f8f4-fc8f-4804-9310-1ed2de0392dc.png)

- With `$botListHide`\
![example](https://user-images.githubusercontent.com/113303649/210349185-677b00f3-df10-4443-a9b5-25ec9c2c2e29.png)
### With `$botListHide`
![example](https://user-images.githubusercontent.com/113303649/210349185-677b00f3-df10-4443-a9b5-25ec9c2c2e29.png)

- Without `$botListHide`\
![example](https://user-images.githubusercontent.com/113303649/210350126-b99c73bd-e684-4f5e-a01c-f32c40c54c20.png)
### Without `$botListHide`
![example](https://user-images.githubusercontent.com/113303649/210350126-b99c73bd-e684-4f5e-a01c-f32c40c54c20.png)
5 changes: 3 additions & 2 deletions src/bdscript/botNode.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ The bot's node ID: $botNode
color: "#E67E22"
content: |
!example
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
The bot's node ID: 21
```
5 changes: 3 additions & 2 deletions src/bdscript/calculate.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ $calculate[$message] 🧠
color: "#E67E22"
content: |
!example 10+5.9-9
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
6.9 🧠
```
Expand Down
18 changes: 16 additions & 2 deletions src/bdscript/channelIDComplex.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,19 @@ Channel ID: $channelID[$message]
```

> It supports category names.
>
> ![example](https://user-images.githubusercontent.com/113303649/212723060-6a914e0b-b32a-49d4-9ea2-495cef2cff1d.png)
``` discord yaml
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
!example BDFD
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Channel ID: 1009019011545178132
```
5 changes: 3 additions & 2 deletions src/bdscript/channelIDFromName.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ Channel ID: $channelIDFromName[$mesaage]
color: "#E67E22"
content: |
!example main-chat
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Channel ID: 1014546423032860754
```
5 changes: 3 additions & 2 deletions src/bdscript/channelName.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ Channel Name: `#$channelName[$channelID]`
color: "#E67E22"
content: |
!example
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Channel Name: <discord-inline-code>#main-chat</discord-inline-code>
```
5 changes: 3 additions & 2 deletions src/bdscript/channelPosition.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ Channel Position: $channelPosition
color: "#E67E22"
content: |
!example
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Channel Position: 1
```
Expand Down
5 changes: 3 additions & 2 deletions src/bdscript/channelPositionComplex.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ Channel Position: $channelPosition[$mentionedChannels[1;yes]]
color: "#E67E22"
content: |
!example <#main-chat>
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Channel Position: 2
```
Expand Down
32 changes: 30 additions & 2 deletions src/bdscript/channelSendMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,35 @@ $channelSendMessage[Channel ID;Message]
## Example
```
$nomention
The message was sent to the channel: <#835108724846493726>
$channelSendMessage[835108724846493726;Hello!]
```
![example](https://user-images.githubusercontent.com/69215413/120040288-4108cd80-bfd4-11eb-8a6f-d1a2f2f20829.png)\
![example](https://user-images.githubusercontent.com/69215413/120040270-3a7a5600-bfd4-11eb-9b12-b4ada7ac91df.png)

``` discord yaml
- user_id: 803569638084313098
username: RainbowKey
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/a9034fd5-40c2-4320-a408-2f2ee0071d9d
color: "#E67E22"
content: |
!example
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
The message was sent to the channel: <#fun>
```
\

### in **#fun** channel:
``` discord yaml
- username: BDFD Support
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Hello!
```

5 changes: 3 additions & 2 deletions src/bdscript/charCount.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ Your message has $charCount[$message] characters.
color: "#E67E22"
content: |
!example Hello World!
- username: BDFD Support
color: "#b9a0e0"
avatar: https://github.com/NilPointer-Software/bdfd-wiki/assets/113303649/e5fdc906-6c14-4e19-91c0-4ce95b852c61
color: "#378afa"
bot: true
verified: true
content: |
Your message has 12 characters.
```

0 comments on commit 491be03

Please sign in to comment.