Update readme.md

This commit is contained in:
steevLP 2019-10-18 15:46:17 +02:00 committed by GitHub
parent f1c01187be
commit e58ff11c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ and this can go on for ever but, this should show the point of a packet
Something needs to happen with your packet! The Event Handler is handling it. Something needs to happen with your packet! The Event Handler is handling it.
The Handler is taking in a **Event Name** and a **Function** for it. The Handler is taking in a **Event Name** and a **Function** for it.
So it should look like this: Events look like this:
``` ```
{name:'logout', function() {eventFunction(possible,arguments)}}, {name:'logout', function() {eventFunction(possible,arguments)}},
``` ```
@ -40,5 +40,5 @@ event_function(){
Console.log('Your code here please'); Console.log('Your code here please');
} }
``` ```
Not realy difficult right? Not really difficult right?
well then good luck and happy coding with it :D well then good luck and happy coding with it :D