-
-
This can literally handle anything tweet related.
Every single tweet is passed through here.
Parameters:
| Name |
Type |
Description |
tweet |
obj
|
Tweet Object |
ap |
boolean
|
Append tweet instead of prepending it. |
first |
boolean
|
Designates a first tweet of the stream. |
- Source:
- To Do:
-
- Make it rely on the tweet.event instead of supplied via stream, Clean-up.
Returns:
Success/Failure
-
Type
-
boolean
-
-
Creates a fav/rt/special type of tweet, and prepends onto div.
Parameters:
| Name |
Type |
Description |
tweet |
obj
|
Tweet object. |
div |
string
|
Div to prepend too. |
- Source:
Returns:
none
-
decryptConfig(user, dir) → {json}
-
Decrypts a {string} user's config file in {string} dir.
Parameters:
| Name |
Type |
Description |
user |
string
|
Username for cfg file. |
dir |
string
|
DIR for passing to loadUser() |
- Source:
Returns:
config, or throws error.
-
Type
-
json
-
del(id)
-
Attempts to delete a tweet.
Parameters:
| Name |
Type |
Description |
id |
int
|
Id of tweet to delete. |
- Source:
Returns:
none
-
doReply(id, status) → {bool}
-
Replys to {int} id, with {string} status.
Parameters:
| Name |
Type |
Description |
id |
int
|
Twitter ID to reply to. |
status |
string
|
Status to post to Twitter. |
- Source:
Returns:
Success/Failure
-
Type
-
bool
-
fav(id)
-
Attempts to favorite a tweet.
Parameters:
| Name |
Type |
Description |
id |
int
|
Id of tweet to favorite. |
- Source:
Returns:
none
-
getDms()
-
Get DMs for current user
- Source:
Returns:
none
-
getMainUser() → {array}
-
Get's main user's config file.
- Source:
Returns:
-
Type
-
array
-
-
Looks up {string} user and returns object.
Parameters:
| Name |
Type |
Description |
user |
string
|
User to look up. |
- Source:
Returns:
twitter user's api callback.
-
Type
-
obj
-
getUsersImages(div, link)
-
A special function adapted for geting users images from avail configs in config_dir
Parameters:
| Name |
Type |
Description |
div |
string
|
Div to place images in |
link |
string
|
I totally forgot. |
- Source:
Returns:
none
-
initStream()
-
Starts inital streams
- Source:
Returns:
none
-
-
Attempts to get 50 more tweets from the past.
Parameters:
| Name |
Type |
Description |
lastid |
int
|
Last ID of tweet to attempt to get 50 more from. |
- Source:
Returns:
none
-
loadUser(user, dir) → {string}
-
Return raw {string} user config in {string} dir.
Parameters:
| Name |
Type |
Description |
user |
string
|
Users name for cfg |
dir |
string
|
DIR for CFG files. |
- Source:
Returns:
config
-
Type
-
string
-
logout()
-
Logs current user out, and terminates Stream(s)
- Source:
Returns:
none
-
-
"Nicely" displays twitter errors onto client.
Parameters:
| Name |
Type |
Description |
err |
string/obj
|
Twitter err obj, or err string. |
- Source:
Returns:
none
-
postStatus(status) → {bool}
-
Posts stand-alone status to twitter, with {string} text.
Parameters:
| Name |
Type |
Description |
status |
string
|
Status to send too twitter |
- Source:
Returns:
Success/Failure.
-
Type
-
bool
-
postStatusWithMedia(status, file)
-
Posts a status with an image to twitter.
Parameters:
| Name |
Type |
Description |
status |
string
|
Status to post with file. |
file |
string
|
Absolute path to file to upload with status. |
- Source:
Returns:
none
-
-
"Nicely" displays twitter success, or anything really.
Parameters:
| Name |
Type |
Description |
message |
string
|
Success Message. |
- Source:
Returns:
none
-
-
Processes Twitter links, along with regular ones.
Parameters:
| Name |
Type |
Description |
text |
string
|
Text to process. |
- Source:
Returns:
Processed Text.
-
Type
-
string
-
relative_time(time) → {string}
-
Get relative time to a tweets post.
Parameters:
| Name |
Type |
Description |
time |
string
|
Twitter formatted Time. |
- Source:
Returns:
time
-
Type
-
string
-
reload(doReconnect)
-
Starts main user stream
Parameters:
| Name |
Type |
Description |
doReconnect |
bool
|
Restart the stream. |
- Source:
Returns:
none
-
requestPin(user)
-
Requests pin from Twitter.
Parameters:
| Name |
Type |
Description |
user |
string
|
Username to fill in Twitter Username feild. |
- Source:
Returns:
none
-
rt(id)
-
Attempts to retweet a tweet.
Parameters:
| Name |
Type |
Description |
id |
int
|
Id of tweet to RT. |
- Source:
Returns:
none
-
runThroughFilter(obj) → {bool}
-
Processes {obj} obj, and filters out wanted/unwanted tweets
Parameters:
| Name |
Type |
Description |
obj |
obj
|
Tweet object |
- Source:
Returns:
Use/Ignore
-
Type
-
bool
-
setMain(user)
-
Set {string} user, as the main user in main.json
Parameters:
| Name |
Type |
Description |
user |
string
|
User to set as main. |
- Source:
Returns:
none
-
userExists(user) → {bool}
-
Check if {string} user exists in config_dir
Parameters:
| Name |
Type |
Description |
user |
string
|
User to see if cfg exists. |
- Source:
Returns:
Success/Failure
-
Type
-
bool