diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-10-02 01:27:08 -0700 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-10-02 01:27:18 -0700 |
commit | ea4e93f01d9e4ef17effae1e9a807bb1977865fe (patch) | |
tree | 08cfbcc32b9fbea5f13fd3447026090f51402274 /commands/look_up.rs | |
parent | afd61ae0822690f30d37859c806a8d8d843b8c1a (diff) |
move everything to src/
Diffstat (limited to 'commands/look_up.rs')
-rw-r--r-- | commands/look_up.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/commands/look_up.rs b/commands/look_up.rs deleted file mode 100644 index d04f984..0000000 --- a/commands/look_up.rs +++ /dev/null @@ -1,32 +0,0 @@ -use tw; -use ::Queryer; - -use commands::Command; - -pub static LOOK_UP_USER: Command = Command { - keyword: "look_up_user", - params: 1, - exec: look_up_user -}; - -fn look_up_user(line: String, tweeter: &mut tw::TwitterCache, mut queryer: &mut Queryer) { - if let Some(user) = tweeter.fetch_user(&line, &mut queryer) { - println!("{:?}", user); - } else { -// println!("Couldn't retrieve {}", userid); - } -} - -pub static LOOK_UP_TWEET: Command = Command { - keyword: "look_up_tweet", - params: 1, - exec: look_up_tweet -}; - -fn look_up_tweet(line: String, tweeter: &mut tw::TwitterCache, mut queryer: &mut Queryer) { - if let Some(tweet) = tweeter.fetch_tweet(&line, &mut queryer) { - println!("{:?}", tweet); - } else { -// println!("Couldn't retrieve {}", tweetid); - } -} |