aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Scragly <[email protected]>2019-04-22 01:11:15 +1000
committerGravatar Scragly <[email protected]>2019-04-22 01:11:15 +1000
commit1371511bb78e4ac8de6c0aceed9a977dd80b6306 (patch)
tree8e41ffdf51982cdef87a7a237bff41249cea2f64
parentLog reactions for later checking of behaviour analysis and anti-cheat checks. (diff)
Add prepare_db docstring.
-rw-r--r--bot/seasons/easter/egg_hunt/cog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/easter/egg_hunt/cog.py b/bot/seasons/easter/egg_hunt/cog.py
index 85615549..bbbecd7f 100644
--- a/bot/seasons/easter/egg_hunt/cog.py
+++ b/bot/seasons/easter/egg_hunt/cog.py
@@ -347,6 +347,8 @@ class EggHunt(commands.Cog):
self.task.add_done_callback(self.task_cleanup)
def prepare_db(self):
+ """Ensures database tables all exist and if not, creates them."""
+
db = sqlite3.connect(DB_PATH)
c = db.cursor()