The API allows developers to use AutoMod Regex Generator in their owns projects, such as another Discord bot.
The API is still in beta, and might not work correctly. The endpoints are unlikely to change, however expect this page, and the rules to change. Please report bugs on the GitHub repository issues tab.
API Rules
- Don't use the API to create another website with the purpose of just generating regexes.
- Don't sell access to the API, or include it in other APIs.
- You must include a link to the AutoMod Regex Generator website in your program, such as in the footer of the command used to create a regex.
- Use a custom user agent with a method of contact (Discord server, email address, etc.)
- These rules can change at any time.
Thank you for following the API rules. Below is the API Reference, and a button to fork the postman collection.
The API's base URL is:
https://automod-regex-generator-api.treeben77.xyz/
Generate Leetspeak Regex
GET /leetspeak/:text
Generates a regex based in the text provided and settings, just like the generator on the home page.
Parameters
Field | Location | Description |
---|---|---|
text | Path | The text to base the regex on. |
settings | Argument | The settings bitwise value to configure the regex. Defaults to 287. |
JSON Response
Field | Description |
---|---|
regex | The generated regex. |
too_long | Wether the regex is too long for Discord's AutoMod. |
Settings Bitwise
Setting | Bitwise |
---|---|
Number Variants | 1 (1 << 0) |
Symbol Variants | 2 (1 << 1) |
Letter Variants | 4 (1 << 2) |
Emoji Variants | 8 (1 << 3) |
Double-letter Spam | 16 (1 << 4) |
Multi Character | 32 (1 << 5) |
Extra Whitespace | 64 (1 << 6) |
Vowelless Variants | 128 (1 << 7) |
Partial Matches | 256 (1 << 8) |
Character Deduplication | 512 (1 << 9) |
Unicode Variants | 1024 (1 << 10) |
Code Examples
I can't wait to see what amazing things you make with the API! If you need help, you can ask in our Discord server!
API Privacy
You may link to this section in your privacy policies.
AutoMod Regex Generator does not store any data long-term, however the inputed text and the user agent is stored in logs for 1 hour. Some third parties are used to make the service possible:
- Requests are proxied through Cloudflare, and are subject to their Privacy Policy
- Requests are processed with Vercel, and are subject to their Privacy Policy