ultimate factorisation
This commit is contained in:
@@ -2,7 +2,7 @@ from miniscord import Bot
|
||||
import logging
|
||||
|
||||
import emojis
|
||||
import emotes
|
||||
from emotes import EmotesScanner
|
||||
|
||||
logging.basicConfig(
|
||||
format="[%(asctime)s][%(levelname)s][%(module)s] %(message)s", level=logging.INFO
|
||||
@@ -19,8 +19,8 @@ bot.log_calls = True
|
||||
bot.client.bot = bot # TODO place in miniscord
|
||||
bot.register_command(
|
||||
"emotes", # command text (regex)
|
||||
emotes.compute, # command function
|
||||
lambda *args: EmotesScanner().compute(*args), # command function
|
||||
"emotes: Emotes analysis", # short help
|
||||
emotes.HELP,
|
||||
EmotesScanner.help(),
|
||||
)
|
||||
bot.start()
|
||||
|
||||
Reference in New Issue
Block a user