diff --git a/ircbot/bot.py b/ircbot/bot.py index b25b465..f65c991 100644 --- a/ircbot/bot.py +++ b/ircbot/bot.py @@ -38,6 +38,17 @@ class IRCBot(pydle.Client): u.save() print({"type": "registration", "user": source, "address_index": new_address[0]}) await self.message(target, f"Grats bra, you're locked and loaded. Send funds to {new_address[1]}") + elif message.startswith("tip"): + msg_split = message.split() + l = len(msg_split) + if l == 1: + await self.message(target, "Need more info. `tip `") + elif l == 2: + await self.message(target, f"Need more info. `tip {msg_split[1]} `") + elif l == 3: + await self.message(target, f"Normally I'd send a tip of {msg_split[2]} WOW to {msg_split[1]}, but I'm not ready to do that just yet.") + else: + await self.message(target, "You're passing way too much shit bro. `tip `") # elif message.startswith("!proposal "): # split_msg = message.split() # param = split_msg[1]