Skip to content

Commit 6713112

Browse files
committed
improved custom commands info
1 parent 0ed763b commit 6713112

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

handlers/commands/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const commandReferenceHandler = async ({ chat, replyWithHTML }) => {
3737
customCommands
3838
.filter(command => command.isActive)
3939
.sort((a, b) => a.role < b.role)
40-
.map(command => `[${command.role}] <code>/${command.name}</code>`)
40+
.map(command => `[${command.role}] <code>!${command.name}</code>`)
4141
.join('\n')
4242
: '';
4343

handlers/messages/addCustomCmd.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ const addCustomCmdHandler = async ({ chat, message, reply, state }, next) => {
115115
]);
116116
reply(
117117
'✅ <b>New command has been created successfully.</b>\n\n' +
118-
'This command can be used in groups now. ' +
118+
'Custom commands work with ! instead of /.\n\n' +
119+
'For example: <code>!rules</code>\n\n' +
119120
'Custom commands can reply other messages too.\n\n' +
120121
'/commands - to see the list of commands.\n' +
121122
'/addcommand - to add a new command.\n' +

0 commit comments

Comments
 (0)