Open zzzzzz-zzzz opened 3 years ago
class ReflectorBot(SnapchatBot):
def on_snap(self, sender, snap): self.send_snap([sender], snap)
def on_friend_add(self, friend): self.add_friend(self, friend)
def on_friend_delete(self, friend): self.delete_friend(self, friend)
class ReflectorBot(SnapchatBot):
when receiving a snap, sends the same snap back to the sender
def on_snap(self, sender, snap): self.send_snap([sender], snap)
when someone adds the bot, the bot adds them back
def on_friend_add(self, friend): self.add_friend(self, friend)
when someone deletes the bot, the bot deletes them too
def on_friend_delete(self, friend): self.delete_friend(self, friend)