Sends a command in-game every interval,
Signature:
declare function autoCommand(server: Server, command: string, interval?: number): NodeJS.Timeout;#Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
server |
The server to send to. | |
|
command |
string |
The command to send every interval. |
|
interval |
number |
(Optional) The interval to send the command at. Default is every 2 minutes. |
Returns:
NodeJS.Timeout
The setInterval used to it can be stopped with clearInterval.