From 37dd474ccd5465feb81c2d0b05facd55d4e760e8 Mon Sep 17 00:00:00 2001 From: Sawada Tsunayoshi Date: Sun, 19 Jul 2020 11:32:56 +0530 Subject: [PATCH] Use https over http across the repo --- LICENSE | 8 ++++---- README.md | 2 +- SaitamaRobot/modules/gettime.py | 2 +- SaitamaRobot/modules/global_bans.py | 2 +- SaitamaRobot/modules/grammar_correction.py | 2 +- SaitamaRobot/modules/misc.py | 2 +- SaitamaRobot/modules/ud.py | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/LICENSE b/LICENSE index 9cecc1d466..9d742475fe 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found. GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see -. +. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read -. +. diff --git a/README.md b/README.md index e684b775fd..68d293e504 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![Saitama](https://wallpaperscave.com/images/original/18/04-25/anime-one-punch-man-44886.jpg) # Saitama Robot -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6141417ceaf84545bab6bd671503df51)](https://app.codacy.com/gh/AnimeKaizoku/SaitamaRobot?utm_source=github.com&utm_medium=referral&utm_content=AnimeKaizoku/SaitamaRobot&utm_campaign=Badge_Grade_Settings) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) [![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html) [![Open Source Love svg2](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6141417ceaf84545bab6bd671503df51)](https://app.codacy.com/gh/AnimeKaizoku/SaitamaRobot?utm_source=github.com&utm_medium=referral&utm_content=AnimeKaizoku/SaitamaRobot&utm_campaign=Badge_Grade_Settings) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) [![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://perso.crans.org/besson/LICENSE.html) [![Open Source Love svg2](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com) A modular Telegram Python bot running on python3 with a sqlalchemy database. diff --git a/SaitamaRobot/modules/gettime.py b/SaitamaRobot/modules/gettime.py index 4fc2cf6610..9fc85c7d18 100644 --- a/SaitamaRobot/modules/gettime.py +++ b/SaitamaRobot/modules/gettime.py @@ -10,7 +10,7 @@ def generate_time(to_find: str, findtype: List[str]) -> str: data = requests.get( - f"http://api.timezonedb.com/v2.1/list-time-zone" + f"https://api.timezonedb.com/v2.1/list-time-zone" f"?key={TIME_API_KEY}" f"&format=json" f"&fields=countryCode,countryName,zoneName,gmtOffset,timestamp,dst" diff --git a/SaitamaRobot/modules/global_bans.py b/SaitamaRobot/modules/global_bans.py index 8ff9687602..6f041c8171 100644 --- a/SaitamaRobot/modules/global_bans.py +++ b/SaitamaRobot/modules/global_bans.py @@ -157,7 +157,7 @@ def gban(update: Update, context: CallbackContext): if reason: if chat.type == chat.SUPERGROUP and chat.username: - log_message += f"\nReason: {reason}" + log_message += f"\nReason: {reason}" else: log_message += f"\nReason: {reason}" diff --git a/SaitamaRobot/modules/grammar_correction.py b/SaitamaRobot/modules/grammar_correction.py index 8aa6da8426..e3f8169f75 100644 --- a/SaitamaRobot/modules/grammar_correction.py +++ b/SaitamaRobot/modules/grammar_correction.py @@ -7,7 +7,7 @@ # Open API key GRAMMAR_API_KEY = "6ae0c3a0-afdc-4532-a810-82ded0054236" -URL = "http://services.gingersoftware.com/Ginger/correct/json/GingerTheText" +URL = "https://services.gingersoftware.com/Ginger/correct/json/GingerTheText" def translate(update: Update, context: CallbackContext): diff --git a/SaitamaRobot/modules/misc.py b/SaitamaRobot/modules/misc.py index 6a46f28875..5ef3fa4cd6 100644 --- a/SaitamaRobot/modules/misc.py +++ b/SaitamaRobot/modules/misc.py @@ -150,7 +150,7 @@ def info(update: Update, context: CallbackContext): disaster_level_present = True if disaster_level_present: - text += ' [?]'.format( + text += ' [?]'.format( bot.username) try: diff --git a/SaitamaRobot/modules/ud.py b/SaitamaRobot/modules/ud.py index a5474fb611..fa757f985e 100644 --- a/SaitamaRobot/modules/ud.py +++ b/SaitamaRobot/modules/ud.py @@ -10,7 +10,7 @@ def ud(update: Update, context: CallbackContext): message = update.effective_message text = message.text[len('/ud '):] results = requests.get( - f'http://api.urbandictionary.com/v0/define?term={text}').json() + f'https://api.urbandictionary.com/v0/define?term={text}').json() try: reply_text = f'*{text}*\n\n{results["list"][0]["definition"]}\n\n_{results["list"][0]["example"]}_' except: