Skip to content

Commit f0e88db

Browse files
committed
chore(general-commands):"Update USAGE.md and bot code to rename '/viewsupportcontact' command to '/support'"
1 parent 5b12b05 commit f0e88db

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

docs/USAGE.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ This document provides detailed instructions on how to use the Code Module Cop b
55
## Commands
66

77
### General Commands
8+
89
- **/start**: Start interacting with the bot.
910
- **/help**: Get help and see the list of available commands.
1011
- **/commands**: List all commands of the bot.
1112
- **/date**: Get the current date and time.
1213
- **/joke**: Get a random joke.
13-
- **/viewsupportcontact**: View support contact details.
14+
- **/support**: View support contact details.
1415
- **/botinfo**: Get information about the bot.
1516

1617
### Group Management Commands
18+
1719
- **/rules**: View the group rules.
1820
- **/codetime**: Says a random word sarcastically or offensively to you or people in the group.
1921
- **/future**: Get insights about the future.
@@ -30,6 +32,7 @@ This document provides detailed instructions on how to use the Code Module Cop b
3032
- **/welcome**: Returns the current group welcome message.
3133

3234
### Moderation Commands
35+
3336
- **/approved**: Approve a user for special privileges.
3437
- **/disapproved**: Remove approval for a user.
3538
- **/approvedlist**: View the list of approved users.
@@ -43,12 +46,14 @@ This document provides detailed instructions on how to use the Code Module Cop b
4346
- **/unmute**: Unmute a previously muted user.
4447

4548
### Blacklist Commands
49+
4650
- **/blacklist**: Add a word or phrase to the blacklist.
4751
- **/abl**: Add multiple words to the blacklist.
4852
- **/rmbl**: Remove a word or phrase from the blacklist.
4953
- **/clrbl**: Clear the blacklist.
5054

5155
### Shahin and Aran-Specific Commands
56+
5257
- **/shahin**: Trigger Shahin-specific functionality.
5358
- **/aran**: Trigger Aran-specific functionality.
5459

@@ -57,6 +62,7 @@ This document provides detailed instructions on how to use the Code Module Cop b
5762
## Example Commands
5863

5964
### Mute a User for 10 Minutes
65+
6066
To mute a user for 10 minutes:
6167

6268
```plaintext
@@ -65,6 +71,7 @@ To mute a user for 10 minutes:
6571
```
6672

6773
### Issue a Warning to a User
74+
6875
To issue a warning to a user with a reason:
6976

7077
```plaintext
@@ -73,6 +80,7 @@ To issue a warning to a user with a reason:
7380
```
7481

7582
### Ban a User
83+
7684
To ban a user from the group:
7785

7886
```plaintext
@@ -81,6 +89,7 @@ To ban a user from the group:
8189
```
8290

8391
### Unban a User
92+
8493
To unban a user from the group:
8594

8695
```plaintext

src/bot/commands/genearl/GeneralCommands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export class GeneralCommands {
103103
category: 'Bot',
104104
statusCode: 500,
105105
})
106-
/** viewSupportContact */
107-
public static async viewsupportcontact(ctx: Context) {
106+
/** support */
107+
public static async support(ctx: Context) {
108108
const reply = new BotReply(ctx);
109109

110110
// Contact information from BotInfo.json

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const COMMANDS: string[] = [
66
'commands',
77
'date',
88
'joke',
9-
'viewsupportcontact',
9+
'support',
1010
'botinfo',
1111
/** Users Commands */
1212
'rules',

0 commit comments

Comments
 (0)