Closed sarsenij closed 4 years ago
Commit Social Network : privacy : With the possibility to add any social links, it seems useful to hide those informations to unknown users. /social command is the same in a group, but in pvt message, the bot will need to know the user.
If the group use a social network not specified in the config file, the only way to add it is to modify the code. With these changes, the bot will look for social networks by parsing the config file, naming each specified network with the key in the dictionary. It allows to add any number of social network not specified in the original config file. It also allows to remove unused social networks from the config file, even all of them. As dictionaries cannot keep the order from the config file, it returns the social networks in alphabetical order.
Also, as I use python3.5 for this bot, and as f"{var}" shortcut is python3.6+ only, I have edited those formating shortcuts into "{}".format(var) . As a new github user, I didn't find an easy way to split those pull requests...