from chatterbot import ChatBot import threading bot = ChatBot("dos-test") def attack(): bot.get_response("hello") threads = [] for _ in range(30): t = threading.Thread(target=attack) t.start() threads.append(t) for t in threads: t.join()