Add temp-SMS tool (SMSPool-backed temp-number marketplace) to Pleiades
- sms.py: NumberProvider abstraction + SMSPoolProvider + routes (/sms, rent, poll, release) + admin (/admin/sms) - Reuses existing sats wallet + BTCPay deposit flow; charges per-rental against balance_sats - Code detection, lazy expiry/release, per-user session limit, per-IP rate limit - Verified end-to-end: rented Discord US +1 534 251 1825, wallet 5000->3500 sats, release refunded SMSPool to $7.45
This commit is contained in:
5
app.py
5
app.py
@@ -953,6 +953,11 @@ def sitemap():
|
||||
return app.response_class(body, mimetype="application/xml")
|
||||
|
||||
|
||||
# temporary inbound-SMS tool (SMSPool-backed temp-number marketplace)
|
||||
import sms
|
||||
sms.init_sms_app(app, login_required, current_user)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
db.init_db()
|
||||
app.run(host="127.0.0.1", port=5000, debug=False)
|
||||
|
||||
Reference in New Issue
Block a user