| 106 | |
| 107 | class TwCloud(BaseCloud): |
| 108 | def __init__(self, *, project_id, cloud_host="wss://clouddata.turbowarp.org", purpose="", contact="", _session=None): |
| 109 | super().__init__() |
| 110 | |
| 111 | self.project_id = project_id |
| 112 | |
| 113 | # Configure this object's attributes specifically for being used with TurboWarp's cloud: |
| 114 | self.cloud_host = cloud_host |
| 115 | self.ws_shortterm_ratelimit = 0 # TurboWarp doesn't enforce a wait time between cloud variable sets |
| 116 | self.ws_longterm_ratelimit = 0 |
| 117 | self.length_limit = 100000 # TurboWarp doesn't enforce a cloud variable length |
| 118 | purpose_string = "" |
| 119 | if purpose != "" or contact != "": |
| 120 | purpose_string = f" (Purpose:{purpose}; Contact:{contact})" |
| 121 | self.header = {"User-Agent": f"scratchattach/2.0.0{purpose_string}"} |
| 122 | |
| 123 | |
| 124 | class CustomCloud(BaseCloud): |