lib/snoo/links_comments.rb
def submit title, subreddit, opts = {}
      logged_in?
      post = {
        title: title,
        sr: subreddit,
        uh: @modhash,
        kind: (opts[:url] ? "link" : "self"),
        api_type: 'json'
      }
      post.merge! opts
      post('/api/submit', body: post)
    end
def submit title, subreddit, opts = {}
      logged_in?
      post = {
        title: title,
        sr: subreddit,
        uh: @modhash,
        kind: (opts[:url] ? "link" : "self"),
        api_type: 'json'
      }
      post.merge! opts
      post('/api/submit', body: post)
    end
Submit a link or self post

 @param title [String] Title of the post
 @param subreddit [String] The subreddit in which we are posting
 @param (see #info)
 @option opts [String] :url The url for the post. If this is specified, it will not be a self post, and `text` will be ignored
 @option opts [String] :text The self-post text. Can be formatted in markdown
 @return (see #clear_sessions)