refactor(baby): Always SMS

parent 2bf05128
......@@ -13,11 +13,11 @@ def main():
if "Out of stock" not in stock:
sms("%s in stock 🎉 \"%s\"\n🔗 %s" % (name, stock, url))
else:
print("%s not in stock, try again 🙃" % name)
sms("%s not in stock, I'll keep checking for you 🙃" % name)
def sms(msg: str):
print("Sending sms: \"%s\"" % msg)
print("Sending sms:\n%s" % msg)
res = requests.post("https://smsapi.free-mobile.fr/sendmsg",
json={"user": "23355840",
"pass": "1zdVdBEjjSqnv3",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment