bot.exts.utilities.snekbox._eval#
Module Contents#
Classes#
Job to be evaluated by snekbox.  | 
|
The result of an eval job.  | 
Attributes#
- class bot.exts.utilities.snekbox._eval.EvalJob[source]#
 Job to be evaluated by snekbox.
- classmethod from_code(code: str, path: str = 'main.py') Self[source]#
 Create an EvalJob from a code string.
- class bot.exts.utilities.snekbox._eval.EvalResult[source]#
 The result of an eval job.
- property has_output: bool[source]#
 True if the result has any output (stdout, files, or failed files).
- property status_emoji: str[source]#
 Return an emoji corresponding to the status code or lack of output in result.
- property error_message: str[source]#
 Return an error message corresponding to the process’s return code.
- property files_error_message: str[source]#
 Return an error message corresponding to the failed files.
- get_failed_files_str(char_max: int = 85) str[source]#
 Return a string containing the names of failed files, truncated char_max.
Will truncate on whole file names if less than 3 characters remaining.