Skip to content

Execution Limits

Craig Edwards edited this page Nov 15, 2019 · 6 revisions

All scripts you run within Sporks have the following limitations which are put in place to protect the bot as a whole, and ensure you don't create an event which has the potential to cause harm to your server.

  • All events may only reference channels and users within the guild within which they were triggered
  • All scripts can only execute for a maximum of 10 milliseconds per request
  • All scripts have a maximum memory usage per request of 256 kilobytes
  • Up to five channel messages may be sent per request received, this includes embeds.
  • Only channels may be messaged, direct message to user is not supported
  • The @everyone and @here tags will be rendered ineffective before sending to a channel.
  • Storage via the save() and load() functions is restricted to 1024 key/value pairs per guild
  • overly complex (abusive or accidentally broken) regular expressions may be subject to other limits and may return early as a non-match.

Upon reaching any of these limits the execution of the script event will stop at the point where the limit was breached, and a range error will be raised, which can be viewed on the dashboard.

Clone this wiki locally