database command

This commit is contained in:
deathbybandaid 2019-05-31 11:34:17 -04:00
parent d0768cf7dc
commit 4bad867baf
3 changed files with 5 additions and 19 deletions

View File

@ -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)

View File

@ -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)

View File

@ -1,6 +0,0 @@
# coding=utf-8
"""Command for database information
"""
from __future__ import unicode_literals, absolute_import, print_function, division
from .DatabaseCommand import *