forked from kageru/discord-selphybot
clean up merging; release 1.1
This commit is contained in:
parent
35db30626d
commit
2c0d2fee50
8
main.go
8
main.go
|
@ -18,7 +18,7 @@ func main() {
|
|||
fmt.Println("error: ", err)
|
||||
return
|
||||
}
|
||||
/*
|
||||
|
||||
dg.AddHandler(evaluateMessage)
|
||||
dg.AddHandler(onJoin)
|
||||
err = dg.Open()
|
||||
|
@ -26,7 +26,7 @@ func main() {
|
|||
fmt.Println("No connection:\n", err)
|
||||
return
|
||||
}
|
||||
*/
|
||||
|
||||
f, err := os.OpenFile("selphybot.log", os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666)
|
||||
if err != nil {
|
||||
fmt.Println("Error opening log file:\n", err)
|
||||
|
@ -62,7 +62,8 @@ func addCommands() {
|
|||
registerCommand(Command{Trigger: "o/", Output: "\\o", Type: CommandTypeFullMatch, Cooldown: 10})
|
||||
registerCommand(Command{Trigger: "\\o", Output: "o/", Type: CommandTypeFullMatch, Cooldown: 10})
|
||||
registerCommand(Command{Trigger: "\\o/", Output: "/o\\", Type: CommandTypeFullMatch, Cooldown: 10})
|
||||
registerCommand(Command{Trigger: "<:selphyDango:441001954542616576>", Output: ":notes: Dango, Dango, Dango, Dango, Dango Daikazoku :notes:", Type: CommandTypeFullMatch, Cooldown: 85600})
|
||||
registerCommand(Command{Trigger: "/o\\", Output: "\\o/", Type: CommandTypeFullMatch, Cooldown: 10})
|
||||
registerCommand(Command{Trigger: "<:selphyDango:441001954542616576>", Output: "<:dango:430669469799677953> :notes: だんごだんごだんごだんごだんご大家族 :notes: <:dango:430669469799677953>", Type: CommandTypeFullMatch, Cooldown: 1200})
|
||||
registerCommand(Command{Trigger: "praise the sun", Output: "If only I could be so grossly incandescent \\\\[T]/", Type: CommandTypeContains, IgnoreCase: true, Cooldown: 85600})
|
||||
|
||||
// Information
|
||||
|
@ -74,6 +75,5 @@ func addCommands() {
|
|||
|
||||
fmt.Printf("Successfully initialized %d commands\n", len(commands))
|
||||
log.Printf("Successfully initialized %d commands", len(commands))
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user