Skip to content

Commit

Permalink
Added !leave alias for !stop
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Mar 7, 2018
1 parent 74c357b commit 52058c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.13.0 (2018-03-07)

+ Added `game` option
+ Added `leave` alias for `stop` command

## 0.12.0 (2017-12-20)

Expand Down
1 change: 1 addition & 0 deletions src/SoundBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class SoundBot extends Discord.Client {
}

switch (message.content) {
case 'leave':
case 'stop':
voiceChannel.leave();
this.queue = [];
Expand Down
25 changes: 13 additions & 12 deletions src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ class Util {
'```',
`Use the prefix "${config.get('prefix')}" with the following commands:`,
'',
'commands Show this message',
'sounds Show available sounds',
'mostplayed Show 15 most used sounds',
'lastadded Show 5 last added sounds',
'<sound> Play the specified sound',
'random Play random sound',
'stop Stop playing and clear queue',
'add Add the attached sound',
'rename <old> <new> Rename specified sound',
'remove <sound> Remove specified sound',
'ignore <user> Ignore specified user',
'unignore <user> Unignore specified user',
'commands Show this message',
'sounds Show available sounds',
'mostplayed Show 15 most used sounds',
'lastadded Show 5 last added sounds',
'<sound> Play the specified sound',
'random Play random sound',
'stop Stop playing and clear queue',
'leave Leave the channel',
'add Add the attached sound',
'rename <old> <new> Rename specified sound',
'remove <sound> Remove specified sound',
'ignore <user> Ignore specified user',
'unignore <user> Unignore specified user',
'```'
].join('\n');
}
Expand Down

0 comments on commit 52058c6

Please sign in to comment.