Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 98bd312

Browse files
authored
Merge pull request #8 from DirectiveAthena/v.0.3.0_proposal
Feat: SSL connection
2 parents a0af0e4 + b148f46 commit 98bd312

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# - Code -
1414
# ----------------------------------------------------------------------------------------------------------------------
1515
def version_handler() -> str:
16-
version = 0,2,0
16+
version = 0,3,0
1717
version_str = ".".join(str(i) for i in version)
1818

1919
with open("src/AthenaTwitchBot/_info/_v.py", "w") as file:

src/AthenaTwitchBot/_info/_v.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def _version():
2-
return '0.2.0'
2+
return '0.3.0'

src/AthenaTwitchBot/functions/launch.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ def launch(
2323
protocol_factory:Callable=None,
2424
output:Output=None,
2525
host:str='irc.chat.twitch.tv',
26-
port:int=6667, #todo make this into the ssl port
27-
28-
auto_restart:bool=False
26+
port:int=6667,
27+
port_ssl:int=6697,
28+
auto_restart:bool=False,
29+
ssl:bool=False
2930
):
3031

3132
if output is None:
@@ -48,7 +49,8 @@ def launch(
4849
loop.create_connection(
4950
protocol_factory=protocol_factory,
5051
host=host,
51-
port=port,
52+
port=port if not ssl else port_ssl,
53+
ssl=ssl
5254
)
5355
)
5456
loop.run_forever()

0 commit comments

Comments
 (0)