Virtuatable / virtuatable-core

The model layer gem for the jdr tools suite
0 stars 0 forks source link

Change the way messages and commands are handled #13

Closed vincentcourtois closed 5 years ago

vincentcourtois commented 5 years ago

Some modifications have to be made to the commands and messages :

  1. The Arkaan::Campaigns::Messages::Text and Arkaan::Campaigns::Messages::Diceroll should be deleted
  2. Recreate the Arkaan::Campaigns::Message class with the created_at, player and campaign attributes
  3. Add a data attribute of Hash type to the Arkaan::Campaigns::Message, used to store data about the message or command
  4. Add a type attribute, enumerated, with the values :text or :command possible.
  5. For a text the content should be stored in data.content
  6. For a command, it depends on the command