grammyjs / commands

Work-in-progress plugin for managing commands with grammY.
https://grammy.dev
MIT License
12 stars 2 forks source link

feat: add import of commands + small fixes related to command options #45

Closed carafelix closed 2 months ago

carafelix commented 2 months ago

closes #38

  const sayHi = new Command("hi","say hi", (ctx) => ctx.reply("hi"))
  const sayBye = new Command("bye","say bye", (ctx) => ctx.reply("bye"), { ignoreCase: true })
  const myCmds = new CommandGroup().add(sayHi).add(sayBye)

fix: merge options instead of complete override when using the .command creation method.

feat: prevent whitespace only custom prefixes.