M bot.py => bot.py +0 -1
@@ 166,7 166,6 @@ def send_APOD_all(message):
@bot.message_handler(commands=['subscribe'])
def create_new_subscription(message):
try:
- print(message.chat.id)
if (searchSubscriber(message.chat.id)[0] == False):
newSubscriber(message.chat.id)
bot.reply_to(message, "La suscripción se ha realizado correctamente. Recibirás la APOD cada día. =)")
M cronBot.py => cronBot.py +2 -0
@@ 5,6 5,8 @@ import os.path
import requests
import telebot
from time import gmtime, strftime
+from configparser import ConfigParser
+from os.path import exists
def CheckCfg(cfg_file, bName):
"""Check if the config file exists and return the token if so. If not, create a new config file."""