Just like how you made your command, you can create an event. All you need to do is follow the steps below:
Note: You can type
cdgen gen eventto skip steps 1 to 3.
cdgen in console
Select the event you want from the list of events. You can see all the events below.
Now you've got a new event! It should look something like this: