Miunie icon indicating copy to clipboard operation
Miunie copied to clipboard

🔶 - Implement service prerequisites collection

Open petrspelos opened this issue 4 years ago • 0 comments

Summary

Service prerequisites collection is one of our Command Pipeline steps with the following purpose:

  • It Creates a new instance of a MiunieContext object and fills the appropriate properties
    • MiunieContext should mostly contain IDs (MessageId, ChannelId, etc.)
    • On top of that, MiunieContext should contain helper getters such as MessageIsInDm
  • It finds the best matching MiunieCommand from the provided list in its InputObject passed from the previous step
    • Matching is based on the number of parameters and their type
  • It parses command parameters into appropriate types and invokes the best matching command

How to implement

Creation of a new Command Pipeline step is needed.

Furthermore, helper interfaces such as ICommandFactory (and possibly other) is going to be needed. The implementation of these is not part of this issue.

Interested? 😊

If you'd like to help us by solving this issue, just say so in the comments. ❤️ And don't shy away from asking any kind of question you might have.

Should you have any questions at all, feel free to contact either me (@petrspelos) or @DraxCodes on our Discord server:

Discord

And of course, thank you so much for contributing! 🎉 It's because of amazing people like yourself that Miunie exists.

petrspelos avatar Aug 30 '20 18:08 petrspelos