Constructor
new Esdi(configopt)
- Source:
- Tutorials:
Initializes a new Esdi server
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
configuration object Properties
|
Extends
- EventEmitter
Methods
determineMemory() → {String}
Returns formatted memory usage of process
Returns:
formatted memory usage (in megabytes)
- Type
- String
determineProcessor() → {String}
Returns formatted processor usage of process
Returns:
formatted processor use percentage
- Type
- String
determineUptime() → {String}
Returns formatted uptime of process
Returns:
formatted timestamp
- Type
- String
load(diropt, typeopt)
Loads framework files into the Esdi server
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
dir |
String |
<optional> |
__dirname
|
directory from which to load files |
type |
String |
<optional> |
null
|
framework file type to load, or |
start()
Wrapper method that starts the Esdi server
Fires:
stop()
Wrapper method that stops the Esdi server
Fires:
Events
loop
Called every Esdi server loop
Listeners of This Event:
start
Starts the Esdi server
Listeners of This Event:
- CommandController#start
- DatabaseController#start
- DiscordController#start
- EventController#start
- GuildController#start
- HookController#start
- UserController#start
stop
Stops the Esdi server