commit - 0a26c7b2528ff1dc4bfee8845a6a1a594124c4f7
commit + c69a4037880a0744e3d65f739f6715f6e846d5a3
blob - 0aee5e50e7f433d69ba4fcb2dcea98c8f45b01ae
blob + 81c286c457e930a266dcac50cba7b5a74afeb0cc
--- discord.go
+++ discord.go
router.RegisterCmd(&dgc.Command{
Name: "addDistricts",
+ Aliases: []string{"add"},
Description: "adds one or more districts to the tracked districts",
Usage: "addDistricts districtId/name",
Example: "addDistricts 05113 wolfsburg",
router.RegisterCmd(&dgc.Command{
Name: "removeDistricts",
+ Aliases: []string{"remove"},
Description: "remove one or more district from the tracked districts",
Usage: "removeDistricts districtId/name",
Example: "removeDistricts 05113 wolfsburg",
router.RegisterCmd(&dgc.Command{
Name: "trackedDistricts",
+ Aliases: []string{"tracked"},
Description: "show tracked districts",
Usage: "trackedDistricts",
Example: "trackedDistricts",
router.RegisterCmd(&dgc.Command{
Name: "trackedIncidences",
+ Aliases: []string{"incidences", "incs"},
Description: "print the weekly incidences of all tracked districts",
Usage: "trackedIncidences",
Example: "trackedIncidences",
router.RegisterCmd(&dgc.Command{
Name: "showDistrict",
+ Aliases: []string{"show"},
Description: "get information about a district",
Usage: "showDistrict districtId/name",
Example: "showDistrict essen",
log.Infof("Added the following districts to trackedDistricts: %v", names)
embed := discordgo.MessageEmbed{
- Title: "Added districts",
- Timestamp: time.Now().Format(time.RFC3339),
+ Title: "Added districts",
+ Timestamp: time.Now().Format(time.RFC3339),
Description: strings.Join(names, ", "),
}
}
embed := discordgo.MessageEmbed{
- Title: "Removed districts",
- Timestamp: time.Now().Format(time.RFC3339),
+ Title: "Removed districts",
+ Timestamp: time.Now().Format(time.RFC3339),
Description: strings.Join(names, ", "),
}