new Friends(main, request, logger)
A class to handle all friend functions for the bot account
Parameters:
Name | Type | Description |
---|---|---|
main |
||
request |
||
logger |
- Source:
Methods
login(interval, uiMode)
Login to steam chat
Parameters:
Name | Type | Description |
---|---|---|
interval |
||
uiMode |
('web' or 'mobile') are valid entries |
- Source:
logout()
Logout from steam chat
- Source:
sendMessage(recipient, message, type, callbackErrorOnly)
Send a chat message to a recipient with callback
Parameters:
Name | Type | Description |
---|---|---|
recipient |
SteamID | Recipient of the message |
message |
Message to send | |
type |
valid entries are 'text' or 'typing' (message ignored for 'typing') | |
callbackErrorOnly |
Callback upon sending the message (undefined, or Error) |
- Source: