-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4ad401
commit 81d3654
Showing
11 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
print("[email protected]") | ||
|
||
#import modules for chatterbot | ||
from threading import Thread | ||
from chatterbot import ChatBot | ||
from chatterbot.trainers import ListTrainer | ||
from chatterbot.trainers import ChatterBotCorpusTrainer | ||
|
@@ -69,3 +70,29 @@ def trainchatbot(trainer): #works in tandem with bootnoise.startupnoise1() | |
trainer.train(conversation8) | ||
trainer.train(conversation9) | ||
|
||
|
||
|
||
|
||
|
||
|
||
#working path starts here (listed here for checklist) | ||
# 1. check user data | ||
# 2. train NLP data ++ play boot sound 1 | ||
# 3. start frontend | ||
# 4. time sleep 1 then start bootmessage | ||
# 5. start the rest of the program | ||
|
||
|
||
#general framework | ||
# 1. check user data | ||
checkuserdata() | ||
# 2. train NLP data ++ play boot sound 1 | ||
try: | ||
Thread(target=trainchatbot(trainer)).start() | ||
Thread(target=startnoise1()).start() | ||
except Exception as e: | ||
notify("OHNO", e ,90) | ||
print(e) | ||
# 3. start frontend | ||
# 4. time sleep 1 then start bootmessage | ||
# 5. start the ALPHAMAIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"main_user_data": { | ||
"dictpref": "british", | ||
"userbloodtype": "null", | ||
"usercity": "Newport", | ||
"userdob": "1997-03-14", | ||
"useremail": "[email protected]", | ||
"useremailpass": "test123!!", | ||
"userethnicity": "null", | ||
"usergender": "Male", | ||
"userheight": "null", | ||
"userhobby": "null", | ||
"userinterest": "null", | ||
"username": "test", | ||
"userpersonaldiscordbottoken": "null", | ||
"userreligion": "null", | ||
"userskincolor": "null", | ||
"userspecies": "homo sapien", | ||
"usersport": "null", | ||
"userweight": "null" | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from sys import modules | ||
from threading import Thread | ||
from boot_noise import * | ||
from boot_message import * | ||
from boot_checkuserdata import checkuserdata | ||
from sense import notify | ||
import random | ||
def startup(): | ||
user_name=checkuserdata()[0] | ||
user_gender=checkuserdata()[2] | ||
random_functions = random.randint(1,2) | ||
if int(random_functions) == 1: | ||
wishMe(user_gender) | ||
elif int(random_functions) == 2: | ||
wishme2(user_name) | ||
def bootloader(): #only this is meant to be called | ||
try: | ||
Thread(target=startupnoise).start() | ||
Thread(target=startupnoise2).start() | ||
Thread(target=startup()).start() | ||
except Exception as e: | ||
print(e) | ||
notify("OHNO", e, 90) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters