mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
10 lines
297 B
Ruby
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
|