From: Georgios Atheridis Date: Wed, 31 Aug 2022 15:47:14 +0000 (+0000) Subject: added requirements X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=83876dc88d2016716b11b36b19b161acdcbaf4e8;p=ihaspeks%2Faptbot-ihaspeks.git added requirements --- diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c8ec5aa --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +aptbot @ git+https://github.com/atheridis/aptbot.git@296c2b730b342268c7b92725d9954fe9eef1ec12 +python-dotenv==0.20.0 +urllib3==1.26.11 diff --git a/skgyorugo/main.py b/skgyorugo/main.py index 30ee0c0..e8f7dab 100644 --- a/skgyorugo/main.py +++ b/skgyorugo/main.py @@ -126,7 +126,8 @@ def start(bot: Bot, message: Message, stop_event: Event): def main(bot: Bot, message: Message): if message.command == Commands.PRIVMSG: database_manager.add_message_to_chat_history(message) - analyze_command.do_command(bot, message, commands_modules) + if message.value[0] in {"?", "\\"}: + analyze_command.do_command(bot, message, commands_modules) scripts.unit_converter.send_metric(bot, message) scripts.alwase.alwase(bot, message) scripts.chatting.chatting(bot, message)