missing commas
This commit is contained in:
16
main.go
16
main.go
@ -31,37 +31,37 @@ func main() {
|
|||||||
keybasebot.BotCommand{
|
keybasebot.BotCommand{
|
||||||
Name: "ping",
|
Name: "ping",
|
||||||
Ad: &cmd.PingAd,
|
Ad: &cmd.PingAd,
|
||||||
Run: keybasebot.Adapt(
|
Run: keybasebot.Adapt(
|
||||||
cmd.SendPong,
|
cmd.SendPong,
|
||||||
keybasebot.MessageType("text"),
|
keybasebot.MessageType("text"),
|
||||||
keybasebot.CommandPrefix("!ping")
|
keybasebot.CommandPrefix("!ping"),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
keybasebot.BotCommand{
|
keybasebot.BotCommand{
|
||||||
Name: "age",
|
Name: "age",
|
||||||
Ad: &cmd.AgeAd,
|
Ad: &cmd.AgeAd,
|
||||||
Run: keybasebot.Adapt(
|
Run: keybasebot.Adapt(
|
||||||
cmd.Age,
|
cmd.Age,
|
||||||
keybasebot.MessageType("text"),
|
keybasebot.MessageType("text"),
|
||||||
keybasebot.CommandPrefix("!age")
|
keybasebot.CommandPrefix("!age"),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
keybasebot.BotCommand{
|
keybasebot.BotCommand{
|
||||||
Name: "convert",
|
Name: "convert",
|
||||||
Ad: &cmd.ConvertAd,
|
Ad: &cmd.ConvertAd,
|
||||||
Run: keybasebot.Adapt(
|
Run: keybasebot.Adapt(
|
||||||
cmd.Convert,
|
cmd.Convert,
|
||||||
keybasebot.MessageType("text"),
|
keybasebot.MessageType("text"),
|
||||||
keybasebot.CommandPrefix("!convert")
|
keybasebot.CommandPrefix("!convert"),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
keybasebot.BotCommand{
|
keybasebot.BotCommand{
|
||||||
Name: "price",
|
Name: "price",
|
||||||
Ad: &cmd.PriceAd,
|
Ad: &cmd.PriceAd,
|
||||||
Run: keybasebot.Adapt(
|
Run: keybasebot.Adapt(
|
||||||
cmd.SendPrice,
|
cmd.SendPrice,
|
||||||
keybasebot.MessageType("text"),
|
keybasebot.MessageType("text"),
|
||||||
keybasebot.CommandPrefix("!price")
|
keybasebot.CommandPrefix("!price"),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user