|
@@ -70,6 +70,10 @@ if __name__ == '__main__':
|
|
from .data.config import local_host, port
|
|
from .data.config import local_host, port
|
|
except ImportError:
|
|
except ImportError:
|
|
local_host, port = '127.0.0.1', 3000
|
|
local_host, port = '127.0.0.1', 3000
|
|
|
|
+ try:
|
|
|
|
+ from .data.config import hostname, certificate
|
|
|
|
+ except ImportError:
|
|
|
|
+ hostname, certificate = '', None
|
|
log_file = f"{path}/data/{log_file_name}"
|
|
log_file = f"{path}/data/{log_file_name}"
|
|
errors_file = f"{path}/data/{errors_file_name}"
|
|
errors_file = f"{path}/data/{errors_file_name}"
|
|
|
|
|
|
@@ -100,7 +104,8 @@ if __name__ == '__main__':
|
|
|
|
|
|
# Instantiate bot
|
|
# Instantiate bot
|
|
bot = davtelepot.bot.Bot(token=bot_token,
|
|
bot = davtelepot.bot.Bot(token=bot_token,
|
|
- database_url='ciclopibot/data/ciclopi.db')
|
|
|
|
|
|
+ database_url='ciclopibot/data/ciclopi.db',
|
|
|
|
+ hostname=hostname, certificate=certificate)
|
|
# Assign commands to bot
|
|
# Assign commands to bot
|
|
bot.set_unknown_command_message(
|
|
bot.set_unknown_command_message(
|
|
"Comando sconosciuto!\n"
|
|
"Comando sconosciuto!\n"
|