Skip to content

Commit 6062b9a

Browse files
authored
Merge pull request #5 from TheSamLloyd/develop
hotfix to bot.js
2 parents 1bf915b + d76c24c commit 6062b9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot_modules/bot.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ const name = 'bot'
55
const desc = 'basic bot commands'
66
var bot = {
77
ping (Command) {
8-
return 'pong'
8+
Command.channel.send('pong')
99
},
1010
echo (Command) {
11-
return Command.argument
11+
Command.channel.send(Command.argument)
1212
},
1313
flip (Command) {
1414
var flip = common.randInt(0, 1) ? 'heads' : 'tails'
15-
return flip
15+
Command.channel.send(flip)
1616
}
1717
}
1818
var commands = {

0 commit comments

Comments
 (0)