From 997798be7998162544ee03769f40fafdc101cbce Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 13 Jul 2020 00:59:24 -0700 Subject: [PATCH] add foundational tip command --- ircbot/bot.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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]