-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from Rainb0wKey/patch-7
New functions ( $isInteger[] $floor[] $ceil[] ) + Example fix
- Loading branch information
Showing
20 changed files
with
361 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# $ceil | ||
Rounds the number **up** and returns the smallest integer greater than or equal to a specified number. | ||
|
||
## Syntax | ||
``` | ||
$ceil[Number] | ||
``` | ||
|
||
### Parameters | ||
- `Number` `(Type: Integer, Float || Flag: Required)`: The number that will be rounded. | ||
|
||
## Example | ||
``` | ||
$nomention | ||
Result: $ceil[$message] | ||
``` | ||
|
||
```discord yaml | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example 6.3 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Result: 7 | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example -6.4 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Result: -6 | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example 8 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Result: 8 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# $floor | ||
Rounds the number **down** and returns the largest integer less than or equal to a specified number. | ||
|
||
## Syntax | ||
``` | ||
$floor[Number] | ||
``` | ||
|
||
### Parameters | ||
- `Number` `(Type: Integer, Float || Flag: Required)`: The number that will be rounded. | ||
|
||
## Example | ||
``` | ||
$nomention | ||
Result: $floor[$message] | ||
``` | ||
|
||
```discord yaml | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example 6.2 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Result: 6 | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example -6.4 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Result: -7 | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example 9 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Result: 9 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# $isInteger | ||
Checks if the specified value is an integer or not. | ||
|
||
```admonish tip | ||
`true` means the value is an integer, `false` means it isn’t. | ||
``` | ||
|
||
## Syntax | ||
``` | ||
$isInteger[Value] | ||
``` | ||
|
||
### Parameters | ||
- `Value` `(Type: String || Flag: Required)`: The string that will be checked. | ||
|
||
## Example | ||
``` | ||
$nomention | ||
Integer?: $isInteger[$message] | ||
``` | ||
|
||
```discord yaml | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example number | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Integer?: false | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example 1.8 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Integer?: false | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example 4 | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Integer?: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.