Class: Ayadn::Descriptions
- Inherits:
-
Object
- Object
- Ayadn::Descriptions
- Defined in:
- lib/ayadn/descriptions.rb
Class Method Summary collapse
- .alias ⇒ Object
- .alias_create ⇒ Object
- .alias_delete ⇒ Object
- .alias_import ⇒ Object
- .alias_list ⇒ Object
- .authorize ⇒ Object
- .auto ⇒ Object
- .blacklist ⇒ Object
- .blacklist_add ⇒ Object
- .blacklist_convert ⇒ Object
- .blacklist_import ⇒ Object
- .blacklist_list ⇒ Object
- .blacklist_remove ⇒ Object
- .block ⇒ Object
- .blocked ⇒ Object
- .channels ⇒ Object
- .checkins ⇒ Object
- .conversations ⇒ Object
- .convo ⇒ Object
- .delete ⇒ Object
- .delete_m ⇒ Object
- .download ⇒ Object
- .files ⇒ Object
- .follow ⇒ Object
- .followers ⇒ Object
- .followings ⇒ Object
- .global ⇒ Object
- .hashtag ⇒ Object
- .interactions ⇒ Object
- .mark ⇒ Object
- .mark_add ⇒ Object
- .mark_delete ⇒ Object
- .mark_list ⇒ Object
- .mark_rename ⇒ Object
- .mentions ⇒ Object
- .messages ⇒ Object
- .mute ⇒ Object
- .muted ⇒ Object
- .nowplaying ⇒ Object
- .nowwatching ⇒ Object
- .options_count ⇒ Object
- .options_extract ⇒ Object
- .options_index ⇒ Object
- .options_new ⇒ Object
- .options_raw ⇒ Object
- .photos ⇒ Object
- .pin ⇒ Object
- .pmess ⇒ Object
- .post ⇒ Object
- .postinfo ⇒ Object
- .posts ⇒ Object
- .random_posts ⇒ Object
- .reply ⇒ Object
- .repost ⇒ Object
- .search ⇒ Object
- .send_to_channel ⇒ Object
- .set ⇒ Object
- .set_backup ⇒ Object
- .set_color ⇒ Object
- .set_counts ⇒ Object
- .set_defaults ⇒ Object
- .set_nicerank ⇒ Object
- .set_timeline ⇒ Object
- .settings ⇒ Object
- .star ⇒ Object
- .switch ⇒ Object
- .trending ⇒ Object
- .tvshow ⇒ Object
- .unblock ⇒ Object
- .unfollow ⇒ Object
- .unified ⇒ Object
- .unmute ⇒ Object
- .unrepost ⇒ Object
- .unstar ⇒ Object
- .userinfo ⇒ Object
- .whatstarred ⇒ Object
- .whoreposted ⇒ Object
- .whostarred ⇒ Object
- .write ⇒ Object
Class Method Details
.alias ⇒ Object
869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 |
# File 'lib/ayadn/descriptions.rb', line 869 def self.alias <<-USAGE Manage your channel aliases. Commands: create, delete, list, import. Usage: ayadn alias list ayadn -A list ayadn -A create 33666 my_alias ayadn -A delete my_alias ayadn -A import '/Users/blah/backups/aliases.db' (Once an alias is set, you can display the messages in this channel with 'ayadn -ms my_alias', post to it with 'ayadn -C my_alias', etc) \n\n USAGE end |
.alias_create ⇒ Object
889 890 891 892 893 894 895 896 897 898 899 900 901 902 |
# File 'lib/ayadn/descriptions.rb', line 889 def self.alias_create <<-USAGE Creates an alias for a channel. Usage: ayadn alias create 33666 my_alias ayadn -A create 33666 my_alias (Once an alias is set, you can display the messages in this channel with 'ayadn -ms my_alias', post to it with 'ayadn -C my_alias', etc) \n\n USAGE end |
.alias_delete ⇒ Object
903 904 905 906 907 908 909 910 911 912 913 914 |
# File 'lib/ayadn/descriptions.rb', line 903 def self.alias_delete <<-USAGE Deletes a previously created alias. Usage: ayadn alias delete my_alias ayadn -A delete my_alias \n\n USAGE end |
.alias_import ⇒ Object
915 916 917 918 919 920 921 922 923 924 925 926 |
# File 'lib/ayadn/descriptions.rb', line 915 def self.alias_import <<-USAGE Imports an aliases database from a backed up Ayadn account. Usage: ayadn alias import '/Users/blah/ayadn/blah/db/aliases.db' ayadn -A import '/Users/blah/backups/aliases.db' \n\n USAGE end |
.alias_list ⇒ Object
927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'lib/ayadn/descriptions.rb', line 927 def self.alias_list <<-USAGE Lists previously created aliases. Usage: ayadn alias list ayadn -A list \n\n USAGE end |
.authorize ⇒ Object
1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File 'lib/ayadn/descriptions.rb', line 1233 def self. <<-USAGE Authorize Ayadn to access your App.net account. Usage: ayadn authorize ayadn -auth Ayadn will give you a link to an App.net login page. After a successful login, you will be redirected to the Ayadn user token page. Copy this token and paste it into Ayadn. \n\n USAGE end |
.auto ⇒ Object
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 |
# File 'lib/ayadn/descriptions.rb', line 1267 def self.auto <<-USAGE Auto post every line of input. In this mode, each line you type (each time you hit ENTER!) is automatically posted to ADN. Hit CTRL+C to exit this mode at any moment. \n\n USAGE end |
.blacklist ⇒ Object
1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'lib/ayadn/descriptions.rb', line 1015 def self.blacklist <<-USAGE Manage your blacklist. Commands: add, remove, list, import. Usage: ayadn blacklist list ayadn -K list ayadn -K add mention @shmuck ayadn blacklist add hashtag sports ayadn -K add client IFTTT ayadn -K add client 'Spammy Unknown Client' ayadn blacklist remove mention @shmuck ayadn -K remove hashtag sports ayadn -K remove client IFTTT ayadn -K import '/Users/blah/backups/blacklist.db' \n\n USAGE end |
.blacklist_add ⇒ Object
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 |
# File 'lib/ayadn/descriptions.rb', line 1043 def self.blacklist_add <<-USAGE Adds a mention, hashtag or client to your blacklist. You don't have to respect the case as all data is recorded downcase. Usage: ayadn blacklist add mention @shmuck ayadn -K add mention @shmuck ayadn -K add hashtag sports ayadn -K add client IFTTT ayadn -K add client 'Spammy Unknown Client' \n\n USAGE end |
.blacklist_convert ⇒ Object
1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 |
# File 'lib/ayadn/descriptions.rb', line 1093 def self.blacklist_convert <<-USAGE Convert your current blacklist database to the new format. Useful if you used the blacklist command prior to Ayadn 10.0.13. Usage: ayadn blacklist convert ayadn -K convert \n\n USAGE end |
.blacklist_import ⇒ Object
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'lib/ayadn/descriptions.rb', line 1081 def self.blacklist_import <<-USAGE Imports a blacklist database from another Ayadn account. Usage: ayadn blacklist import '/Users/blah/ayadn/blah/db/blacklist.db' ayadn -K import '/Users/blah/backups/blacklist.db' \n\n USAGE end |
.blacklist_list ⇒ Object
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 |
# File 'lib/ayadn/descriptions.rb', line 1105 def self.blacklist_list <<-USAGE Lists the content of your blacklist. Usage: ayadn blacklist list ayadn -K list \n\n USAGE end |
.blacklist_remove ⇒ Object
1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 |
# File 'lib/ayadn/descriptions.rb', line 1063 def self.blacklist_remove <<-USAGE Removes a mention, hashtag or client from your blacklist. You don't have to respect the case as all data is recorded downcase. Usage: ayadn blacklist remove mention @shmuck ayadn -K remove mention @shmuck ayadn -K remove hashtag sports ayadn -K remove client IFTTT \n\n USAGE end |
.block ⇒ Object
663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'lib/ayadn/descriptions.rb', line 663 def self.block <<-USAGE Block a user. Usage: ayadn block @spammer ayadn -BL @spammer \n\n USAGE end |
.blocked ⇒ Object
385 386 387 388 389 390 391 392 393 394 395 396 |
# File 'lib/ayadn/descriptions.rb', line 385 def self.blocked <<-USAGE List the users you blocked. Usage: ayadn blocked ayadn -bkd \n\n USAGE end |
.channels ⇒ Object
675 676 677 678 679 680 681 682 683 684 685 686 |
# File 'lib/ayadn/descriptions.rb', line 675 def self.channels <<-USAGE List your active channels. Usage: ayadn channels ayadn -ch \n\n USAGE end |
.checkins ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/ayadn/descriptions.rb', line 51 def self.checkins <<-USAGE Show the Checkins Stream. Basic usage: ayadn checkins ayadn -ck Retrieves only 5 posts: ayadn -ck -c5 Shows index instead of post numbers: ayadn -ck -i Shows index and retrieves 30 posts: ayadn -ck -i -c30 Scroll the stream: ayadn -ck -s Show only new posts: ayadn -ck -n \n\n USAGE end |
.conversations ⇒ Object
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/ayadn/descriptions.rb', line 181 def self.conversations <<-USAGE Show the Conversations Stream. Basic usage: ayadn conversations ayadn -cq Retrieves only 5 posts: ayadn -cq -c5 Shows index instead of post numbers: ayadn -cq -i Shows index and retrieves 30 posts: ayadn -cq -i -c30 Scroll the stream: ayadn -cq -s Show only new posts: ayadn -cq -n \n\n USAGE end |
.convo ⇒ Object
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'lib/ayadn/descriptions.rb', line 329 def self.convo <<-USAGE Show the conversation thread around post n°POST. Usage: ayadn convo 23362788 ayadn -co 23362788 Show index instead of post numbers: ayadn -co -i 23362788 Scroll the conversation: ayadn -co -s 23362788 \n\n USAGE end |
.delete ⇒ Object
529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/ayadn/descriptions.rb', line 529 def self.delete <<-USAGE Delete a post. Usage: ayadn delete 23365251 ayadn -D 23365251 \n\n USAGE end |
.delete_m ⇒ Object
541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'lib/ayadn/descriptions.rb', line 541 def self.delete_m <<-USAGE Delete a message (private message or message in a channel). Usage: ayadn delete_m 42666 3365251 ayadn -DM 42666 3365251 ayadn -DM my_channel_alias 3365251 \n\n USAGE end |
.download ⇒ Object
939 940 941 942 943 944 945 946 947 948 949 950 951 952 |
# File 'lib/ayadn/descriptions.rb', line 939 def self.download <<-USAGE Download the file with id FILE. Usage: ayadn download 23344556 ayadn -df 23344556 (you can list your files with 'ayadn -fl') \n\n USAGE end |
.files ⇒ Object
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 |
# File 'lib/ayadn/descriptions.rb', line 507 def self.files <<-USAGE List the files in your ADN storage. Basic usage: ayadn files ayadn -fl Retrieves only 5 files: ayadn -fl -c5 Retrieves all files: ayadn -fl -a You can then download a file with its id: 'ayadn -df 23344556' \n\n USAGE end |
.follow ⇒ Object
639 640 641 642 643 644 645 646 647 648 649 650 |
# File 'lib/ayadn/descriptions.rb', line 639 def self.follow <<-USAGE Follow a user. Usage: ayadn follow @ericd ayadn -FO @ericd \n\n USAGE end |
.followers ⇒ Object
361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/ayadn/descriptions.rb', line 361 def self.followers <<-USAGE List users following @username. Usage: ayadn followers @ericd ayadn -fwr @ericd \n\n USAGE end |
.followings ⇒ Object
349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/ayadn/descriptions.rb', line 349 def self.followings <<-USAGE List users @username is following. Usage: ayadn followings @ericd ayadn -fwg @ericd \n\n USAGE end |
.global ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/ayadn/descriptions.rb', line 83 def self.global <<-USAGE Show the Global Stream. Basic usage: ayadn global ayadn -gl Retrieves only 5 posts: ayadn -gl -c5 Shows index instead of post numbers: ayadn -gl -i Shows index and retrieves 30 posts: ayadn -gl -i -c30 Scroll the stream: ayadn -gl -s Show only new posts: ayadn -gl -n See `ayadn set` for the NiceRank filter. \n\n USAGE end |
.hashtag ⇒ Object
397 398 399 400 401 402 403 404 405 406 407 408 |
# File 'lib/ayadn/descriptions.rb', line 397 def self.hashtag <<-USAGE Show recent posts containing HASHTAG. Usage: ayadn hashtag thememonday ayadn -t thememonday \n\n USAGE end |
.interactions ⇒ Object
293 294 295 296 297 298 299 300 301 302 303 304 |
# File 'lib/ayadn/descriptions.rb', line 293 def self.interactions <<-USAGE Show your recent ADN interactions. Usage: ayadn interactions ayadn -int \n\n USAGE end |
.mark ⇒ Object
953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 |
# File 'lib/ayadn/descriptions.rb', line 953 def self.mark <<-USAGE Bookmark a conversation and manage your bookmarks. Usage: ayadn mark add 30594331 ayadn mark add 30594331 convo_name ayadn mark list ayadn mark delete 30594331 ayadn mark rename 'convo name' 'other name' \n\n USAGE end |
.mark_add ⇒ Object
971 972 973 974 975 976 977 978 979 980 981 982 983 984 |
# File 'lib/ayadn/descriptions.rb', line 971 def self.mark_add <<-USAGE Add a conversation to your conversations bookmarks. Usage: ayadn mark add 30594331 ayadn mark add 30594331 'title' You don't have to specify the root post of the conversation, any post within the thread will work. \n\n USAGE end |
.mark_delete ⇒ Object
995 996 997 998 999 1000 1001 1002 1003 1004 |
# File 'lib/ayadn/descriptions.rb', line 995 def self.mark_delete <<-USAGE Delete entry from your bookmarked conversations. Usage: ayadn mark delete 30594331 \n\n USAGE end |
.mark_list ⇒ Object
985 986 987 988 989 990 991 992 993 994 |
# File 'lib/ayadn/descriptions.rb', line 985 def self.mark_list <<-USAGE List your bookmarked conversations. Usage: ayadn mark list \n\n USAGE end |
.mark_rename ⇒ Object
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 |
# File 'lib/ayadn/descriptions.rb', line 1005 def self.mark_rename <<-USAGE Rename a bookmarked conversation. Usage: ayadn mark rename 30594331 'new title' \n\n USAGE end |
.mentions ⇒ Object
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/ayadn/descriptions.rb', line 213 def self.mentions <<-USAGE Show posts containing a mention of @username. Basic usage: ayadn mentions @ericd ayadn -m @ericd Retrieves only 5 posts: ayadn -m -c5 @ericd Shows index instead of post numbers: ayadn -m -i @ericd Shows index and retrieves 30 posts: ayadn -m -i -c30 @ericd Scroll mentions: ayadn -m -s @ericd \n\n USAGE end |
.messages ⇒ Object
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 |
# File 'lib/ayadn/descriptions.rb', line 687 def self. <<-USAGE Show recent messages in a channel. Basic usage: ayadn messages 46217 ayadn -ms 46217 Retrieves only 5 messages: ayadn -ms -c5 46217 Retrieves only new messages: ayadn -ms -n 46217 Scroll messages: ayadn -ms -s 46217 If you've set an alias for the channel, you can display its messages with 'ayadn -ms my_alias' \n\n USAGE end |
.mute ⇒ Object
651 652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/ayadn/descriptions.rb', line 651 def self.mute <<-USAGE Mute a user. Usage: ayadn mute @spammer ayadn -MU @spammer \n\n USAGE end |
.muted ⇒ Object
373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/ayadn/descriptions.rb', line 373 def self.muted <<-USAGE List the users you muted. Usage: ayadn muted ayadn -mtd \n\n USAGE end |
.nowplaying ⇒ Object
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/ayadn/descriptions.rb', line 1117 def self. <<-USAGE Post the track you're listening to. Usage: ayadn nowplaying ayadn -np (works only with iTunes and Mac Os X) \n\n USAGE end |
.nowwatching ⇒ Object
1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'lib/ayadn/descriptions.rb', line 1131 def self.nowwatching <<-USAGE Create a post from (part of) a movie title. Includes movie poster and IMDb url. Usage: ayadn movie ghost in the shell ayadn movie existenz ayadn -NW beetlejuice (shortcut is 'NW' because of 'nowwatching') If the movie is not the one you're looking for, you can specify the 'alt' option to force find an alternative. This is useful for remakes: ayadn -NW solaris (gives the 2002 version) ayadn -NW solaris --alt (gives the 1972 version) Aliases: ayadn nowwatching godfather II ayadn imdb -a conan Hashtag: You can modify the hashtag with 'set': ayadn set movie hashtag movietime ayadn set movie hashtag adnmovieclub (default is 'nowwatching') \n\n USAGE end |
.options_count ⇒ Object
7 8 9 |
# File 'lib/ayadn/descriptions.rb', line 7 def self. "Specify the number of posts to retrieve" end |
.options_extract ⇒ Object
16 17 18 |
# File 'lib/ayadn/descriptions.rb', line 16 def self. "Extract links from each object" end |
.options_index ⇒ Object
10 11 12 |
# File 'lib/ayadn/descriptions.rb', line 10 def self. "Use an ordered index instead of the posts ids" end |
.options_new ⇒ Object
4 5 6 |
# File 'lib/ayadn/descriptions.rb', line 4 def self. "Retrieve only new posts since your last visit" end |
.options_raw ⇒ Object
13 14 15 |
# File 'lib/ayadn/descriptions.rb', line 13 def self. "Outputs the App.net raw JSON response" end |
.photos ⇒ Object
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/ayadn/descriptions.rb', line 149 def self.photos <<-USAGE Show the Photos Stream. Basic usage: ayadn photos ayadn -ph Retrieves only 5 posts: ayadn -ph -c5 Shows index instead of post numbers: ayadn -ph -i Shows index and retrieves 30 posts: ayadn -ph -i -c30 Scroll the stream: ayadn -ph -s Show only new posts: ayadn -ph -n \n\n USAGE end |
.pin ⇒ Object
713 714 715 716 717 718 719 720 721 722 |
# File 'lib/ayadn/descriptions.rb', line 713 def self.pin <<-USAGE Export a POST's link and text with tags to Pinboard. Usage: ayadn pin 23365251 screenshot iterm \n\n USAGE end |
.pmess ⇒ Object
755 756 757 758 759 760 761 762 763 764 765 766 |
# File 'lib/ayadn/descriptions.rb', line 755 def self.pmess <<-USAGE Send a private message to @username. Usage: ayadn pm @ericd It enters the writing mode where you will type your message. \n\n USAGE end |
.post ⇒ Object
723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/ayadn/descriptions.rb', line 723 def self.post <<-USAGE Simple post to App.net. Usage: ayadn post 'Hello from Ayadn!' ayadn -P 'Hello from Ayadn!' ayadn -P Watching a movie with friends You don't have to put quotes around your text, but it's better to do it. The 'write' method is recommended over this one: it's more secure and offers multi-line support. \n\n USAGE end |
.postinfo ⇒ Object
495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/ayadn/descriptions.rb', line 495 def self.postinfo <<-USAGE Show detailed informations about post n°POST. Usage: ayadn postinfo 23365251 ayadn -pi 23365251 \n\n USAGE end |
.posts ⇒ Object
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/ayadn/descriptions.rb', line 241 def self.posts <<-USAGE Show @username's posts. Basic usage: ayadn userposts @ericd ayadn -up @ericd Retrieves only 5 posts: ayadn -up -c5 @ericd Shows index instead of post numbers: ayadn -up -i @ericd Shows index and retrieves 30 posts: ayadn -up -i -c30 @ericd Scroll posts: ayadn -up -s @ericd \n\n USAGE end |
.random_posts ⇒ Object
1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 |
# File 'lib/ayadn/descriptions.rb', line 1217 def self.random_posts <<-USAGE Show random posts from App.net. Usage: ayadn random ayadn -rnd With 'wait 2 seconds' option: ayadn -rnd -w2 \n\n USAGE end |
.reply ⇒ Object
783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'lib/ayadn/descriptions.rb', line 783 def self.reply <<-USAGE Reply to post n°POST. Usage: ayadn reply 23365251 ayadn -R 23365251 It enters the writing mode where you will type your reply. Mentions and/or username will be detected and your text will be inserted appropriately. If you reply to a repost, Ayadn will automatically replace it by the original post. If you just viewed a stream with the -i (--index) option, you can also reply to a post by its index. Example: ayadn -R 3 \n\n USAGE end |
.repost ⇒ Object
627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/ayadn/descriptions.rb', line 627 def self.repost <<-USAGE Repost a post. Usage: ayadn repost 23365251 ayadn -O 23365251 \n\n USAGE end |
.search ⇒ Object
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/ayadn/descriptions.rb', line 409 def self.search <<-USAGE Show recents posts containing WORD(S). # Basic usage ayadn search screenshot iterm ayadn search screenshot iterm Retrieves only 5 posts: ayadn search -c5 screenshot iterm Shows index instead of post numbers: ayadn search -i screenshot iterm Shows index and retrieves 30 posts: ayadn search -i -c30 screenshot iterm # Advanced usage ## Messages Search for WORD(S) in messages, including PMs. You have to specify a channel id (or an alias). Usage: ayadn search --messages 33642 ipad movies ayadn search --messages my_alias ipad movies ## Users Search for App.net users by searching WORD(S) in their bio/description. Usage: ayadn search --users anime ## Channels Search for App.net channels by searching WORD(S) in their description. Usage: ayadn search --channels movies ## Annotations Search for posts containing a specific App.net annotation. Usage: ayadn search --annotations net.app.core.crosspost \n\n USAGE end |
.send_to_channel ⇒ Object
767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 |
# File 'lib/ayadn/descriptions.rb', line 767 def self.send_to_channel <<-USAGE Send a message to a channel. Usage: ayadn send 46217 ayadn -C 46217 It enters the writing mode where you will type your message. If you've set an alias for the channel, you can post to it with 'ayadn -C my_alias' \n\n USAGE end |
.set ⇒ Object
805 806 807 808 809 810 811 812 813 814 |
# File 'lib/ayadn/descriptions.rb', line 805 def self.set <<-USAGE Set (configure) a parameter and save it. Example: ayadn set color mentions blue See the list of configurable parameters with: ayadn -sg \n\n USAGE end |
.set_backup ⇒ Object
831 832 833 834 835 836 837 838 |
# File 'lib/ayadn/descriptions.rb', line 831 def self.set_backup <<-USAGE Set ITEM to be activated or not. Example: ayadn set auto_save_lists true \n\n USAGE end |
.set_color ⇒ Object
815 816 817 818 819 820 821 822 |
# File 'lib/ayadn/descriptions.rb', line 815 def self.set_color <<-USAGE Set ITEM to color COLOR. Example: ayadn set color mentions blue \n\n USAGE end |
.set_counts ⇒ Object
839 840 841 842 843 844 845 846 |
# File 'lib/ayadn/descriptions.rb', line 839 def self.set_counts <<-USAGE Set ITEM to retrieve NUMBER of elements by default. Example: ayadn set count unified 100 \n\n USAGE end |
.set_defaults ⇒ Object
861 862 863 864 865 866 867 868 |
# File 'lib/ayadn/descriptions.rb', line 861 def self.set_defaults <<-USAGE Sets back the configuration to default values. ayadn set defaults \n\n USAGE end |
.set_nicerank ⇒ Object
847 848 849 850 851 852 853 854 855 856 857 858 859 860 |
# File 'lib/ayadn/descriptions.rb', line 847 def self.set_nicerank <<-USAGE Set NiceRank values. Examples: ayadn set nicerank filter true ayadn set nicerank filter_unranked true ayadn set nicerank threshold 2.1 \n\n USAGE end |
.set_timeline ⇒ Object
823 824 825 826 827 828 829 830 |
# File 'lib/ayadn/descriptions.rb', line 823 def self.set_timeline <<-USAGE Set ITEM to true or false. Example: ayadn set directed true \n\n USAGE end |
.settings ⇒ Object
471 472 473 474 475 476 477 478 479 480 481 482 |
# File 'lib/ayadn/descriptions.rb', line 471 def self.settings <<-USAGE List current Ayadn settings. Usage: ayadn settings ayadn -sg \n\n USAGE end |
.star ⇒ Object
615 616 617 618 619 620 621 622 623 624 625 626 |
# File 'lib/ayadn/descriptions.rb', line 615 def self.star <<-USAGE Star a post. Usage: ayadn star 23365251 ayadn -ST 23365251 \n\n USAGE end |
.switch ⇒ Object
1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'lib/ayadn/descriptions.rb', line 1251 def self.switch <<-USAGE Switch between already authorized App.net accounts. Usage: ayadn switch @myotheraccount ayadn -@ myotheraccount List your authorized accounts: ayadn -@ -l \n\n USAGE end |
.trending ⇒ Object
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/ayadn/descriptions.rb', line 117 def self.trending <<-USAGE Show the Trending Stream. Basic usage: ayadn trending ayadn -tr Retrieves only 5 posts: ayadn -tr -c5 Shows index instead of post numbers: ayadn -tr -i Shows index and retrieves 30 posts: ayadn -tr -i -c30 Scroll the stream: ayadn -tr -s Show only new posts: ayadn -tr -n \n\n USAGE end |
.tvshow ⇒ Object
1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 |
# File 'lib/ayadn/descriptions.rb', line 1175 def self.tvshow <<-USAGE Create a post from (part of) a TV show title. Includes show poster and IMDb url. Usage: ayadn tvshow magnum ayadn tvshow game of thrones ayadn -TV 24 If the show is not the one you're looking for, you can specify the 'alt' option to force find an alternative. ayadn -TV whose line (gives the US version) ayadn -TV whose line --alt (gives the UK version) Hashtag: You can modify the hashtag with 'set': ayadn set tvshow hashtag showtime ayadn set tvshow hashtag tvshow (default is 'nowwatching') Banner: Use the `--banner` (-b) options to insert a banner instead of a poster: ayadn -TV magnum --banner ayadn -TV -b magnum \n\n USAGE end |
.unblock ⇒ Object
579 580 581 582 583 584 585 586 587 588 589 590 |
# File 'lib/ayadn/descriptions.rb', line 579 def self.unblock <<-USAGE Unblock a user. Usage: ayadn unblock @notspammeractually ayadn -UB @notspammeractually \n\n USAGE end |
.unfollow ⇒ Object
555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/ayadn/descriptions.rb', line 555 def self.unfollow <<-USAGE Unfollow a user. Usage: ayadn unfollow @spammer ayadn -UF @spammer \n\n USAGE end |
.unified ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/ayadn/descriptions.rb', line 19 def self.unified <<-USAGE Show your App.net timeline, aka the Unified Stream. Basic usage: ayadn timeline ayadn -tl Retrieves only 5 posts: ayadn -tl -c5 Shows index instead of post numbers: ayadn -tl -i Shows index and retrieves 30 posts: ayadn -tl -i -c30 Scroll the stream: ayadn -tl -s Show only new posts: ayadn -tl -n \n\n USAGE end |
.unmute ⇒ Object
567 568 569 570 571 572 573 574 575 576 577 578 |
# File 'lib/ayadn/descriptions.rb', line 567 def self.unmute <<-USAGE Unmute a user. Usage: ayadn unmute @ericd ayadn -UM @ericd \n\n USAGE end |
.unrepost ⇒ Object
591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/ayadn/descriptions.rb', line 591 def self.unrepost <<-USAGE Unrepost a post. Usage: ayadn unrepost 23365251 ayadn -UR 23365251 \n\n USAGE end |
.unstar ⇒ Object
603 604 605 606 607 608 609 610 611 612 613 614 |
# File 'lib/ayadn/descriptions.rb', line 603 def self.unstar <<-USAGE Unstar a post. Usage: ayadn unstar 23365251 ayadn -US 23365251 \n\n USAGE end |
.userinfo ⇒ Object
483 484 485 486 487 488 489 490 491 492 493 494 |
# File 'lib/ayadn/descriptions.rb', line 483 def self.userinfo <<-USAGE Show detailed informations about @username. Usage: ayadn userinfo @ericd ayadn -ui @ericd \n\n USAGE end |
.whatstarred ⇒ Object
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/ayadn/descriptions.rb', line 269 def self.whatstarred <<-USAGE Show posts starred by @username. Basic usage: ayadn whatstarred @ericd ayadn -was @ericd Retrieves only 5 posts: ayadn -was -c5 @ericd Shows index instead of post numbers: ayadn -was -i @ericd Shows index and retrieves 30 posts: ayadn -was -i -c30 @ericd \n\n USAGE end |
.whoreposted ⇒ Object
305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/ayadn/descriptions.rb', line 305 def self.whoreposted <<-USAGE List users who reposted post n°POST. Usage: ayadn whoreposted 22790201 ayadn -wor 22790201 \n\n USAGE end |
.whostarred ⇒ Object
317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/ayadn/descriptions.rb', line 317 def self.whostarred <<-USAGE List users who starred post n°POST. Usage: ayadn whostarred 22790201 ayadn -wos 22790201 \n\n USAGE end |
.write ⇒ Object
741 742 743 744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/ayadn/descriptions.rb', line 741 def self.write <<-USAGE Multi-line post to App.net. Usage: ayadn write ayadn -W It enters the writing mode where you will type your post. \n\n USAGE end |