Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Commit 3ebf051

Browse files
author
Zirak
committed
improved /tell command-not-found message. fixes #178
1 parent 742a910 commit 3ebf051

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

master.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,8 @@ commands.tell = function ( args ) {
20182018
cmdName = cmdName.toLowerCase();
20192019
cmd = bot.getCommand( cmdName );
20202020
if ( cmd.error ) {
2021-
return cmd.error;
2021+
return cmd.error +
2022+
' (note that /tell works on commands, it\'s not an echo.)';
20222023
}
20232024

20242025
if ( cmd.unTellable ) {

master.min.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/commands.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ commands.tell = function ( args ) {
176176
cmdName = cmdName.toLowerCase();
177177
cmd = bot.getCommand( cmdName );
178178
if ( cmd.error ) {
179-
return cmd.error;
179+
return cmd.error +
180+
' (note that /tell works on commands, it\'s not an echo.)';
180181
}
181182

182183
if ( cmd.unTellable ) {

0 commit comments

Comments
 (0)