From 820d0ef3a3148d0bb7675efbf3e7da83e8975ed2 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 22 May 2019 19:58:35 -0400 Subject: [PATCH] Database type --- .../SpiceBot_Database_Command/DatabaseCommand.py | 11 +++++++++++ sopel_modules/SpiceBot_Database_Command/__init__.py | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py create mode 100644 sopel_modules/SpiceBot_Database_Command/__init__.py diff --git a/sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py b/sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py new file mode 100644 index 0000000..10b314a --- /dev/null +++ b/sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# coding=utf-8 +from __future__ import unicode_literals, absolute_import, print_function, division + +# sopel imports +import sopel.module + + +@sopel.module.nickname_commands('database') +def bot_command_gender(bot, trigger): + bot.osd("Database is " + bot.config.core.db_type) diff --git a/sopel_modules/SpiceBot_Database_Command/__init__.py b/sopel_modules/SpiceBot_Database_Command/__init__.py new file mode 100644 index 0000000..5e8ee90 --- /dev/null +++ b/sopel_modules/SpiceBot_Database_Command/__init__.py @@ -0,0 +1,6 @@ +# coding=utf-8 +"""Command for database information +""" +from __future__ import unicode_literals, absolute_import, print_function, division + +from .DatabaseCommand import *