-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bac83da
commit 41e960b
Showing
7 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
- Add join and part commands | ||
- Add setlevel command | ||
- Add setenabled command | ||
- Add buttsbot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package command | ||
|
||
var buttsbot = Command{ | ||
Name: "buttsbot", | ||
Aliases: []string{}, | ||
Usage: "send any message in chat", | ||
Description: "Replaces random syllables with butt", | ||
Cooldown: 5, | ||
NoPrefix: true, | ||
// TODO: this affects the probability, Buttify shoudn't have to run twice | ||
NoPrefixShouldRun: func(message *Message, sender MessageSender, args []string) bool { | ||
_, didButtify := sender.Buttify(message.Message) | ||
return didButtify | ||
}, | ||
CanDisable: false, | ||
Execute: func(message *Message, sender MessageSender, args []string) error { | ||
newSentence, didButtify := sender.Buttify(message.Message) | ||
if didButtify { | ||
sender.Say(message.Channel, newSentence) | ||
} | ||
return nil | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters