From 228565b70ba3d1015ee85459c508f72ab363be0f Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Tue, 12 Mar 2024 14:45:03 -0400 Subject: markov: reduce code duplication, add command to nuke guild data This also fixes bugs related to inconsistent handling of per-member and whole-guild generation. --- markov/errors.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'markov/errors.py') diff --git a/markov/errors.py b/markov/errors.py index 048aa5b..1af7de8 100644 --- a/markov/errors.py +++ b/markov/errors.py @@ -1,2 +1,14 @@ class MarkovGenerationError(Exception): pass + + +class NoTotalCompletionCountError(MarkovGenerationError): + pass + + +class NoNextTokenError(MarkovGenerationError): + pass + + +class InvalidCompletionCountError(MarkovGenerationError): + pass -- cgit v1.2.3-57-g22cb