agermanidis / SnapchatBot

[deprecated] Python library for building bots that live on Snapchat
MIT License
517 stars 105 forks source link

Zzz #76

Open zzzzzz-zzzz opened 3 years ago

zzzzzz-zzzz commented 3 years ago

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)