Queer European MD passionate about IT
Davte 5 år sedan
förälder
incheckning
d30ed21de2
3 ändrade filer med 12 tillägg och 12 borttagningar
  1. 1 1
      examples/a_simple_bot.py
  2. 6 6
      examples/more_bots_together.py
  3. 5 5
      examples/webhook_powered_bot.py

+ 1 - 1
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')
 

+ 6 - 6
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'

+ 5 - 5
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')