talkomatic.py 0.1.2
An easy-to-use Python versatile wrapper for the Talkomatic Bot interface ensuring best practices for making bots, and handling the REST API.
 
Loading...
Searching...
No Matches
talkomatic.dataclasses.rate_limits.RateLimits Class Reference

Static Public Attributes

float message_cooldown = 0.1
 
float room_join_cooldown = 5
 
float room_creation_cooldown = 30
 

Detailed Description

A class representing the rate limits of bot actions
(to prevent get blocked by the API).

The original server's limits are:
- 1000 requests per minute
- 30 second cooldown on creating rooms
- message length and frequency limits

Composed of:
- message_cooldown: The cooldown in seconds between messages.
- room_join_cooldown: The cooldown in seconds between joining rooms.
- room_creation_cooldown: The cooldown in seconds between creating rooms.

Definition at line 5 of file rate_limits.py.

Member Data Documentation

◆ message_cooldown

float talkomatic.dataclasses.rate_limits.RateLimits.message_cooldown = 0.1
static

Definition at line 21 of file rate_limits.py.

◆ room_creation_cooldown

float talkomatic.dataclasses.rate_limits.RateLimits.room_creation_cooldown = 30
static

Definition at line 23 of file rate_limits.py.

◆ room_join_cooldown

float talkomatic.dataclasses.rate_limits.RateLimits.room_join_cooldown = 5
static

Definition at line 22 of file rate_limits.py.


The documentation for this class was generated from the following file: