From d30ed21de24713961fceb860f7be69a6c5d5ddad Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 1 Dec 2019 12:42:05 +0100 Subject: [PATCH] Typos --- examples/a_simple_bot.py | 2 +- examples/more_bots_together.py | 12 ++++++------ examples/webhook_powered_bot.py | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/a_simple_bot.py b/examples/a_simple_bot.py index 9cc3496..aed1572 100644 --- a/examples/a_simple_bot.py +++ b/examples/a_simple_bot.py @@ -166,7 +166,7 @@ def _main(): simple_bot_token = input("Enter bot token:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'simple_bot_token = "{simple_bot_token}"\n') diff --git a/examples/more_bots_together.py b/examples/more_bots_together.py index 3f45932..f634716 100644 --- a/examples/more_bots_together.py +++ b/examples/more_bots_together.py @@ -39,7 +39,7 @@ def _main(): webhook_bot_token = input("Enter bot token:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'webhook_bot_token = "{webhook_bot_token}"\n') try: @@ -48,7 +48,7 @@ def _main(): hostname = input("Enter host name:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'hostname = "{hostname}"\n') try: @@ -57,7 +57,7 @@ def _main(): certificate = input("Enter ssl certificate:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'certificate = "{certificate}"\n') try: @@ -66,7 +66,7 @@ def _main(): local_host = input("Enter local host:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'local_host = "{local_host}"\n') try: @@ -75,7 +75,7 @@ def _main(): port = input("Enter local port:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'port = "{port}"\n') try: @@ -84,7 +84,7 @@ def _main(): long_polling_bot_token = input("Enter bot token:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write( f'long_polling_bot_token = "{long_polling_bot_token}"\n' diff --git a/examples/webhook_powered_bot.py b/examples/webhook_powered_bot.py index 580e744..971de63 100644 --- a/examples/webhook_powered_bot.py +++ b/examples/webhook_powered_bot.py @@ -35,7 +35,7 @@ def _main(): webhook_bot_token = input("Enter bot token:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'webhook_bot_token = "{webhook_bot_token}"\n') try: @@ -44,7 +44,7 @@ def _main(): hostname = input("Enter host name:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'hostname = "{hostname}"\n') try: @@ -53,7 +53,7 @@ def _main(): certificate = input("Enter ssl certificate:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'certificate = "{certificate}"\n') try: @@ -62,7 +62,7 @@ def _main(): local_host = input("Enter local host:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'local_host = "{local_host}"\n') try: @@ -71,7 +71,7 @@ def _main(): port = input("Enter local port:\t\t") with open( f'{path}/secrets.py', - 'a' # Append to file, create if it does not exist + 'a' # Append to file, create it if it does not exist ) as secrets_file: secrets_file.write(f'port = "{port}"\n')