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