Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def add_subscriber(self, id):
- with open(self.users_file, 'w') as f:
- lines = f.read().splitlines()
- subscriber_ids = []
- for l in lines:
- subscriber_ids.append(l)
- subscriber_ids.append(id)
- f.write('\n'.join(subscriber_ids))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement