~witcher/discord_covid19

0da76f6da3ba5eb309a38dff854d84c757e6b4d9 — Witcher01 3 years ago f5c547a
renamed addDistrict to addDistricts
1 files changed, 6 insertions(+), 6 deletions(-)

M discord.go
M discord.go => discord.go +6 -6
@@ 45,12 45,12 @@ func InitDiscordBot(s *discordgo.Session) {
	router.RegisterDefaultHelpCommand(s, nil)

	router.RegisterCmd(&dgc.Command{
		Name:        "addDistrict",
		Description: "adds a district to the tracked districts",
		Usage:       "addDistrict districtId/name",
		Example:     "addDistrict 05113",
		Name:        "addDistricts",
		Description: "adds one or multiple districts to the tracked districts",
		Usage:       "addDistricts districtId/name",
		Example:     "addDistricts 05113 wolfsburg",
		IgnoreCase:  true,
		Handler:     addDistrict,
		Handler:     addDistricts,
	})

	router.RegisterCmd(&dgc.Command{


@@ 92,7 92,7 @@ func InitDiscordBot(s *discordgo.Session) {
	router.Initialize(s)
}

func addDistrict(ctx *dgc.Ctx) {
func addDistricts(ctx *dgc.Ctx) {
	if !checkModerator(ctx) {
		return
	}