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 *