Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SMLA():
- ##some code
- def retire_users(self,
- amount=10,
- fromUsernames=(False, [], "all"),
- fromAutoData=(False, "all"),
- onlyMissing=False,
- allData=False,
- style='LIFO',
- retire_after=None,
- sleep_delay=450):
- ##other code
- """
- All four technics are:
- fromUsernames, fromAutoData, onlyMissing, allData
- The program user can choose only one of those technics in one run.
- All of those technics are gonna generate a List in final
- and do retirement activity based on the usernames in that list.
- so in final all of their content will be like
- final_names = ["user1", "user2", "user3", "user4", "etc."]
- Other parameters are general and will be used with any technic chosen:
- amount, style, retire_after, sleep_delay
- """
- """
- In final
- for `fromUsernames` argument (I called it technic above) the second element is giving data
- and I want it to be either a list, tuple, set, or a simple dict or anything that can be iterable.
- e.g somelist = ["adsad", "adfaasd"]
- SMLA.retire_users(amount=10,
- fromUsernames=(True, somelist, "all"),
- fromAutoData=(False, "all"),
- onlyMissing=False,
- allData=False,
- style='LIFO',
- retire_after=None,
- sleep_delay=450)
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement