1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-05 22:48:01 +02:00
neocities/workers/stop_forum_spam_worker.rb
2017-01-15 15:07:58 -08:00

10 lines
297 B
Ruby

class StopForumSpamWorker
include Sidekiq::Worker
sidekiq_options queue: :stop_forum_spam, retry: 1, backtrace: true
def perform(opts)
opts.merge! api_key: $config['stop_forum_spam_api_key']
res = HTTP.post 'https://stopforumspam.com/add', form: opts
puts res.inspect
end
end