add foundational tip command

This commit is contained in:
lza_menace 2020-07-13 00:59:24 -07:00
parent 7728b2610f
commit 997798be79
1 changed files with 11 additions and 0 deletions

View File

@ -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 <recipient_name> <amount>`")
elif l == 2:
await self.message(target, f"Need more info. `tip {msg_split[1]} <amount>`")
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 <recipient_name> <amount>`")
# elif message.startswith("!proposal "):
# split_msg = message.split()
# param = split_msg[1]