From 4bad867bafd9170dfe79891987de048be46f9cf0 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 31 May 2019 11:34:17 -0400 Subject: [PATCH] database command --- sopel_modules/SpiceBot/Database.py | 5 +++++ .../SpiceBot_Database_Command/DatabaseCommand.py | 13 ------------- sopel_modules/SpiceBot_Database_Command/__init__.py | 6 ------ 3 files changed, 5 insertions(+), 19 deletions(-) delete mode 100644 sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py delete mode 100644 sopel_modules/SpiceBot_Database_Command/__init__.py diff --git a/sopel_modules/SpiceBot/Database.py b/sopel_modules/SpiceBot/Database.py index 5832abc..daeda2f 100644 --- a/sopel_modules/SpiceBot/Database.py +++ b/sopel_modules/SpiceBot/Database.py @@ -590,3 +590,8 @@ class BotDatabase(): db = BotDatabase() + + +@sopel.module.nickname_commands('database') +def bot_command_gender(bot, trigger): + bot.osd("Database is " + botconfig.db_type) diff --git a/sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py b/sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py deleted file mode 100644 index 5a2e8ff..0000000 --- a/sopel_modules/SpiceBot_Database_Command/DatabaseCommand.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python -# coding=utf-8 -from __future__ import unicode_literals, absolute_import, print_function, division - -# sopel imports -import sopel.module - -import sopel_modules.SpiceBot as SpiceBot - - -@sopel.module.nickname_commands('database') -def bot_command_gender(bot, trigger): - bot.osd("Database is " + SpiceBot.config.db_type) diff --git a/sopel_modules/SpiceBot_Database_Command/__init__.py b/sopel_modules/SpiceBot_Database_Command/__init__.py deleted file mode 100644 index 5e8ee90..0000000 --- a/sopel_modules/SpiceBot_Database_Command/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -"""Command for database information -""" -from __future__ import unicode_literals, absolute_import, print_function, division - -from .DatabaseCommand import *