fixes from moving to src
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
from miniscord import Bot
|
||||
import logging
|
||||
|
||||
import emojis
|
||||
from emotes_scanner import EmotesScanner
|
||||
|
||||
logging.basicConfig(
|
||||
format="[%(asctime)s][%(levelname)s][%(module)s] %(message)s", level=logging.INFO
|
||||
)
|
||||
|
||||
emojis.load_emojis()
|
||||
|
||||
bot = Bot(
|
||||
"Discord Analyst", # name
|
||||
"1.6", # version
|
||||
alias="%", # respond to '|command' messages
|
||||
)
|
||||
bot.log_calls = True
|
||||
bot.client.bot = bot # TODO place in miniscord
|
||||
bot.register_command(
|
||||
"emotes", # command text (regex)
|
||||
lambda *args: EmotesScanner().compute(*args), # command function
|
||||
"emotes: Emotes analysis", # short help
|
||||
EmotesScanner.help(),
|
||||
)
|
||||
bot.start()
|
||||
Reference in New Issue
Block a user