import scripts.crylaugh
import scripts.clean_queue
import scripts.discord_start_stream
+import scripts.will_be_missed
import database_manager
import analyze_auto_message
import time
reload(scripts.crylaugh)
reload(scripts.clean_queue)
reload(scripts.discord_start_stream)
+reload(scripts.will_be_missed)
reload(database_manager)
reload(analyze_auto_message)
scripts.chatting.chatting_annoy(bot, message)
scripts.chat.chat(bot, message)
scripts.crylaugh.crylaugh(bot, message)
+ scripts.will_be_missed.will_be_missed(bot, message)
# if message.command == Commands.PART:
# if message.nick in {'jelemar', 'flauenn', 'ihaspeks', 'blobin_wobin', 'officiallysp'}:
--- /dev/null
+from aptbot.bot import Bot, Message, Commands
+import tools.smart_privmsg
+
+
+def will_be_missed(bot: Bot, message: Message):
+ if message.command != Commands.CLEARCHAT:
+ return
+ if "ban-duration" not in message.tags.keys():
+ return
+
+ msg = f"Joel {message.value} will be missed KEKBye"
+ tools.smart_privmsg.send(bot, message, msg)