Files
squatm3gator/squatm3-api/wrapper/scheduler.py
2018-12-04 16:01:33 +01:00

18 lines
373 B
Python

import redis, attr, json
from classes import job, comm
from producer import producer
c = comm.Communication()
p = producer
#create attack
j = job.Job("www.asdasd.com")
#options
j.options = "-Hf --output=json"
#command
p.publish(c.channel_jobs, j.to_json())
#send command
#cmd = command.Command()
#cmd.command = "STOP_ATTACK"
#p.publish(c.channel_warriors, cmd.to_json())