summaryrefslogtreecommitdiff
path: root/foreign/client_handling/website.py
blob: de26d4040c6c8fc101412e10a784dc0aab39ed66 (plain)
1
2
3
4
5
6
7
8
9
10
import webbrowser


def website(websites):
  for website in websites:
    if 'http://' not in website or 'https://' not in website:
      website = 'https://' + website
    webbrowser.open(website, new=2)
  
  return {'message': f'Websites succesfully opened', 'text_mode': 'success'}