From 953dfe2642053907383909fdfdec8f54e1c12fcd Mon Sep 17 00:00:00 2001 From: Daniel Khamsing Date: Mon, 15 Aug 2016 12:35:44 -0700 Subject: [PATCH] delete tweets --- .github/osia_tweet_clean.rb | 20 ++++++++++++++++++++ circle.yml | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 .github/osia_tweet_clean.rb diff --git a/.github/osia_tweet_clean.rb b/.github/osia_tweet_clean.rb new file mode 100644 index 00000000..984be4db --- /dev/null +++ b/.github/osia_tweet_clean.rb @@ -0,0 +1,20 @@ +require 'delete_my_tweets' + +c = { + "consumer_key" => "X7TNI7gi1Bo3l3hRwShZr6Q5l", + "consumer_secret" => "clafmSRaf7AnnusNMaZEhMajEESfhw3XTGBfTwlfgBcjwRSHcn", + "access_token" => ENV['TWITTER_ACCESS_TOKEN'], + "access_token_secret" => ENV['TWITTER_ACCESS_TOKEN_SECRET'], + "filter" => { + "exclude" => [ + "Add", + "add" + ] + } + } + +exit +twitter_delete(c) do |o| + puts o +end +puts 'all done 🐤' diff --git a/circle.yml b/circle.yml index 73c0bc22..f0c90fc0 100644 --- a/circle.yml +++ b/circle.yml @@ -23,3 +23,5 @@ deployment: commands: - ruby .github/osia_convert.rb - ./.github/deploy.sh + - gem install delete_my_tweets + - ruby .github/osia_tweet_clean.rb