# ba_meta require api 7 # Mod By: WonderBomb Servers import ba, _ba def msgg(): msgs = _ba.get_chat_messages() saved_messages = { # 'if the server message contains this string': 'answer', # write everything lowercase NOT UPPERCASE 'who is owner':'vortex', 'who is editor':'devil', 'in which direction': 'east', 'who is the': 'dark', 'who is the editor': 'puffy', 'in which continent': 'asia', 'what is the Currency': 'dollar', 'which is the world': 'Christianity', 'which is the Continent': 'africa', 'did you joined': 'yes', 'bombsquad is coded': 'python', 'largest': 'jupiter', 'located': 'paris', 'What Should we': 'mask', 'what name': 'bombsquad', ':dc id:': 'Sparrow#7665' } if len(msgs) >= 1: msgs_1 = msgs[-1].replace('', '').lower() if msgs_1.startswith('server') or 1 == 1: for i,j in saved_messages.items(): if i in msgs_1: _ba.chatmessage(j) break elif 'what is' in msgs_1: try: msgs_1 = msgs_1.replace('x', '*').replace('?', '').replace('÷', '/').replace('plus', ' +').replace('minus', '-').replace('divided', '/').replace('into', '*').replace('by', '')[msgs_1.find(':'):] all = [x.isdigit() for x in msgs_1] t = [i for i, x in enumerate(all) if x] answer = eval(msgs_1[t[0]:t[-1] + 1]) print(msgs_1[t[0]:t[-1]]) _ba.chatmessage(str(answer)) _ba.screenmessage("Edited by Sparrow") break except: pass ba.timer(0.09, msgg) ba.timer(0.1, msgg) # ba_meta export plugin class by_WonderBomb(ba.Plugin): def on_app_launch(self) -> None: pass