Toot toooooooot (Bluesky-Mastodon cross-poster)
1require 'io/console'
2require_relative 'mastodon_account'
3
4class Tootify
5 def initialize
6 @mastodon = MastodonAccount.new
7 end
8
9 def login_bluesky
10 end
11
12 def login_mastodon(handle)
13 print "Email: "
14 email = STDIN.gets.chomp
15
16 print "Password: "
17 password = STDIN.noecho(&:gets).chomp
18 puts
19
20 @mastodon.oauth_login(handle, email, password)
21 end
22end