Skip to content

Commit 8f2a868

Browse files
authored
Merge pull request #134 from Benchmaker/patch-3
Added !woot and !meh commands.
2 parents 9b77d8e + 2c1045d commit 8f2a868

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

basicBot.js

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2722,7 +2722,20 @@
27222722
}
27232723
}
27242724
},
2725-
2725+
2726+
mehCommand: {
2727+
command: 'meh',
2728+
rank: 'mod',
2729+
type: 'exact',
2730+
functionality: function (chat, cmd) {
2731+
if (this.type === 'exact' && chat.message.length !== cmd.length) return void (0);
2732+
if (!basicBot.commands.executable(this.rank, chat)) return void (0);
2733+
else {
2734+
$('#meh').click();
2735+
}
2736+
}
2737+
},
2738+
27262739
motdCommand: {
27272740
command: 'motd',
27282741
rank: 'bouncer',
@@ -3713,7 +3726,20 @@
37133726
}
37143727
}
37153728
},
3716-
3729+
3730+
wootCommand: {
3731+
command: 'woot',
3732+
rank: 'mod',
3733+
type: 'exact',
3734+
functionality: function (chat, cmd) {
3735+
if (this.type === 'exact' && chat.message.length !== cmd.length) return void (0);
3736+
if (!basicBot.commands.executable(this.rank, chat)) return void (0);
3737+
else {
3738+
$("#woot").click();
3739+
}
3740+
}
3741+
},
3742+
37173743
youtubeCommand: {
37183744
command: 'youtube',
37193745
rank: 'user',

0 commit comments

Comments
 (0)