Skip to content

Commit 7817c94

Browse files
committed
AI refined content
1 parent 08d841a commit 7817c94

330 files changed

Lines changed: 12951 additions & 49 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

guide/Bot/botCount_ai.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# $botCount
2+
3+
This function returns the total number of bots present in your Discord server (guild).
4+
5+
#### Usage: `$botCount`
6+
7+
Here's how you can use the `$botCount` function:
8+
9+
```
10+
!!exec There are `$botCount` bots in the server!
11+
```
12+
13+
This command, when executed, will display a message showing the bot count in the server. See the example below:
14+
15+
<discord-messages>
16+
<discord-message :bot="false" role-color="#ffcc9a" author="Member">
17+
!!exec There are `$botCount` bots in the server!
18+
</discord-message>
19+
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
20+
There are `2` bots in the server!
21+
</discord-message>
22+
</discord-messages>
23+
24+
::: danger Warning
25+
The bot count is retrieved from the bot's cache, not directly from the Discord API. This means the count might not be perfectly accurate, especially if all server members haven't been fully cached. Full caching is typically achieved at higher bot tiers (Tier 5).
26+
:::
27+
28+
##### Function Difficulty: <Badge type="tip" text="Easy" vertical="middle" />
29+
30+
###### Tags: <Badge type="tip" text="bots" vertical="middle" /> <Badge type="tip" text="count" vertical="middle" /> <Badge type="tip" text="amount of bots" vertical="middle" /> <Badge type="tip" text="return number" vertical="middle" />

guide/Bot/botOwnerID_ai.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# $botOwnerID
2+
3+
Retrieves the ID(s) of the bot owner(s).
4+
5+
This function returns the Discord ID of the user(s) who own or manage the bot. If the bot is part of a team, it will return the IDs of all team members who are considered owners.
6+
7+
## Usage
8+
9+
```bash
10+
$botOwnerID
11+
```
12+
13+
Returns a single ID if there's only one owner, or a comma-separated list of IDs if there are multiple owners (e.g., a team).
14+
15+
```bash
16+
$botOwnerID[separator]
17+
```
18+
19+
Returns a list of IDs separated by the specified `separator`.
20+
21+
## Parameters
22+
23+
* `separator` (Optional): A string used to separate the owner IDs when there are multiple owners. If omitted, IDs will be separated by commas.
24+
25+
## Examples
26+
27+
**Example 1: Get the bot owner ID (single owner):**
28+
29+
If the bot has a single owner, this will return their ID.
30+
31+
```bash
32+
$botOwnerID
33+
```
34+
35+
**Example 2: Get the bot owner IDs (team) with a custom separator:**
36+
37+
If the bot belongs to a team, this will return the IDs of all team members separated by a pipe (|) character.
38+
39+
```bash
40+
$botOwnerID[|]
41+
```
42+
43+
**Example 3: Get the bot owner IDs (team) with the default comma separator:**
44+
45+
```bash
46+
$botOwnerID
47+
```
48+
49+
This will return the owner IDs separated by commas (e.g., `1234567890,9876543210`).

guide/Bot/botPing_ai.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# $botPing
2+
3+
This function retrieves and returns the bot's current message ping (latency). This is a measure of the time it takes for the bot to send and receive a message.
4+
5+
## How it Works
6+
7+
The `$botPing` function calculates the time difference between when the bot sends a message to the Discord API and when it receives a response. This time is typically measured in milliseconds (ms).
8+
9+
## Usage
10+
11+
Simply use the `$botPing` function in your command or event.
12+
13+
```
14+
$botPing
15+
```
16+
17+
## Example
18+
19+
If the bot's ping is 50ms, the function will return:
20+
21+
`50ms`
22+
23+
## Common Use Cases
24+
25+
* **Monitoring Bot Performance:** Use this function to track the bot's responsiveness and identify potential performance issues.
26+
* **Creating a Ping Command:** Implement a command that allows users to quickly check the bot's current ping.
27+
* **Debugging:** A high ping can indicate network problems or server issues.

guide/Bot/botTier_ai.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Bot Tier
2+
3+
This command retrieves the current tier level of your bot. Think of it as a subscription level that unlocks more features and benefits.
4+
5+
The standard, free version of the bot operates at **Tier 0**.
6+
7+
## How to Use
8+
9+
Simply use the command:
10+
11+
```
12+
$botTier
13+
```
14+
15+
The command will then return the tier level of your bot.

guide/Bot/botTyping_ai.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# $botTyping
2+
3+
Simulates the bot typing in the current channel. This will display the "Bot is typing..." indicator to users in the channel for approximately 10 seconds.
4+
5+
**Important Note:** Due to limitations within the Discord API, the typing duration cannot be customized and is fixed at around 10 seconds.
6+
7+
## Usage
8+
9+
To trigger the bot typing indicator, simply use the `$botTyping` function.
10+
11+
```markdown
12+
$botTyping
13+
```
14+
15+
**Example:**
16+
17+
If used within a command, the bot will display the "Bot is typing..." indicator for 10 seconds when the command is executed.
18+
```
19+
$botTyping
20+
```

guide/Bot/botVerified_ai.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# $botVerified
2+
3+
This function checks if a Discord bot is verified. A verified bot has been reviewed and approved by Discord.
4+
5+
## Usage
6+
7+
```bash
8+
$botVerified[Bot ID]
9+
```
10+
11+
**`Bot ID`**: The ID of the bot you want to check. You can find this by right-clicking on the bot in Discord (with Developer Mode enabled) and selecting "Copy ID."
12+
13+
## Examples
14+
15+
Here are a couple of examples demonstrating how `$botVerified` works.
16+
17+
### Example: Verified Bot
18+
19+
In this example, we check if the bot with the ID `725721249652670555` is verified.
20+
21+
<discord-messages>
22+
<discord-message :bot="false" role-color="#ffcc9a" author="Member">
23+
!!exec $botVerified[725721249652670555]
24+
</discord-message>
25+
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
26+
true
27+
</discord-message>
28+
</discord-messages>
29+
30+
The function returns `true` because the bot with ID `725721249652670555` is verified.
31+
32+
### Example: Unverified Bot
33+
34+
In this example, we check if the bot with the ID `582019849073590274` is verified.
35+
36+
<discord-messages>
37+
<discord-message :bot="false" role-color="#ffcc9a" author="Member">
38+
!!exec $botVerified[582019849073590274]
39+
</discord-message>
40+
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
41+
false
42+
</discord-message>
43+
</discord-messages>
44+
45+
The function returns `false` because the bot with ID `582019849073590274` is not verified.

guide/Bot/botVersion_ai.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# $botVersion
2+
3+
This function returns the version of your bot.
4+
5+
## Usage
6+
7+
The `$botVersion` function doesn't require any arguments. Simply use it in your commands to retrieve the current bot version.
8+
9+
```bash
10+
$botVersion
11+
```
12+
13+
**Example:**
14+
15+
Let's say your bot version is `v2.5.1`. If you use `$botVersion` in a message response, it will output:
16+
17+
`v2.5.1`

guide/Bot/cacheMember_ai.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# $cacheMember
2+
3+
This function caches a member in the bot's memory. This is useful for functions like `$usersWithRole` that rely on having members already cached, especially if you're using them frequently *without* cooldowns.
4+
5+
**Think of it this way:** Caching a member makes them instantly recognizable to the bot, preventing issues with functions that need to quickly access their information.
6+
7+
**Note:** Functions like `$toggleRoles` and `$giveRoles` don't require you to manually cache members, as they handle member retrieval internally.
8+
9+
#### Usage: `$cacheMember[userID (optional)]`
10+
11+
* **`userID (optional)`:** The ID of the user you want to cache. If omitted, the function will attempt to cache the user who triggered the command.
12+
13+
#### Example:
14+
15+
`$cacheMember[123456789012345678]` - Caches the user with the ID 123456789012345678.
16+
17+
`$cacheMember` - Caches the user who executed the command.
18+
19+
::: tip
20+
**Automatic Caching:** When a user executes a command, they are automatically cached. You typically only need to use `$cacheMember` if you're dealing with users who haven't recently interacted with the bot or if you need to ensure a user is cached *before* a specific function is called.
21+
:::
22+
23+
##### Difficulty: <Badge type="tip" text="Easy" vertical="middle" />
24+
25+
###### Tags: <Badge type="tip" text="Cache" vertical="middle" /> <Badge type="tip" text="Member" vertical="middle" /> <Badge type="tip" text="User" vertical="middle" />

guide/Bot/clientID_ai.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# $clientID
2+
3+
Retrieves the bot's User ID, also referred to as the Client ID. This is a unique identifier for your bot on Discord.
4+
5+
#### Usage: `$clientID`
6+
7+
<br/>
8+
9+
This function is commonly used to programmatically access the bot's ID within custom commands or other bot logic.
10+
11+
Here's an example of how it works in practice:
12+
13+
<discord-messages>
14+
<discord-message :bot="false" role-color="#ffcc9a" author="Member">
15+
!!exec $clientID
16+
</discord-message>
17+
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
18+
725721249652670555
19+
</discord-message>
20+
</discord-messages>
21+
22+
As you can see, the command `!!exec $clientID` returns the bot's ID: `725721249652670555`.
23+
24+
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle" />
25+
###### Tags: <Badge type="tip" text="bots" vertical="middle" /> <Badge type="tip" text="ID" vertical="middle" /> <Badge type="tip" text="user ID" vertical="middle" /> <Badge type="tip" text="Custom Command" vertical="middle" />

guide/Bot/cpu_ai.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# $cpu
2+
3+
This function provides real-time information about the bot's current CPU usage.
4+
5+
## Usage
6+
7+
Simply use `$cpu` in your command or response. The function will be replaced with a numerical representation of the bot's CPU usage percentage.
8+
9+
```
10+
$cpu
11+
```
12+

0 commit comments

Comments
 (0)