Added seasoning onto main()
Added some extra spice to main() for later usage.
This commit is contained in:
parent
928ec6e935
commit
dd4b42803b
12
main.py
12
main.py
@ -22,18 +22,18 @@ def main():
|
|||||||
|
|
||||||
twitch_chat = twitch_script.Twitch_Module()
|
twitch_chat = twitch_script.Twitch_Module()
|
||||||
|
|
||||||
mainCert: credentials.Twitch_Credential
|
|
||||||
if credentials_manager.Twitch_Credentials_List is not None:
|
if credentials_manager.Twitch_Credentials_List is not None:
|
||||||
for cert in credentials_manager.Twitch_Credentials_List:
|
for cert in credentials_manager.Twitch_Credentials_List:
|
||||||
if cert.username == "praxis_bot":
|
if cert.username == "praxis_bot":
|
||||||
print("Twitch Certificate Found: " + cert.username)
|
print("Twitch Certificate Found: {" + cert.username + "}")
|
||||||
mainCert = cert
|
mainCert = cert
|
||||||
twitch_chat.twitchCredential = cert
|
|
||||||
|
print("Loading Credential: {" + cert.username + "} into Twitch_Module")
|
||||||
|
twitch_chat.twitchCredential = mainCert
|
||||||
|
print("Connecting to Channel: " + "thecuriousnerd")
|
||||||
twitch_chat.join_channel(None, "thecuriousnerd")
|
twitch_chat.join_channel(None, "thecuriousnerd")
|
||||||
|
|
||||||
#print("Connecting to Channels...")
|
#twitch_chat.send_message("activated")
|
||||||
#twitch_chat.join_channel(cert, "thecuriousnerd")
|
|
||||||
# twitch_chat.send_message("activated")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user