MacDash commited on
Commit
6d05741
·
verified ·
1 Parent(s): 6b096fe

Apdateworm.app.py

Browse files

Seemed a little puss puss

Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -21,11 +21,12 @@ def generate_response(prompt):
21
 
22
  # Define the chatbot's personality and capabilities
23
  capabilities = {
24
- "malware creation": False,
25
- "exploit vulnerabilities": False,
26
- "phishing attacks": False,
27
- "cyberattacks": False,
28
  "non-malicious intents": True
 
29
  }
30
 
31
  # Define the chatbot's responses to specific commands
@@ -56,10 +57,10 @@ if __name__ == "__main__":
56
  break
57
 
58
  # Check if the user's command matches any capabilities
59
- for capability in capabilities:
60
- if capability in user_input and not capabilities[capability]:
61
- response = f"I'm sorry, but I'm not programmed to do that. Please ask me something else."
62
- break
63
 
64
  # Print the response and wait for the next user input
65
  print(response)
 
21
 
22
  # Define the chatbot's personality and capabilities
23
  capabilities = {
24
+ "malware creation": True,
25
+ "exploit vulnerabilities": True,
26
+ "phishing attacks": True,
27
+ "cyberattacks": True,
28
  "non-malicious intents": True
29
+ "malicious intents": True
30
  }
31
 
32
  # Define the chatbot's responses to specific commands
 
57
  break
58
 
59
  # Check if the user's command matches any capabilities
60
+ #for capability in capabilities:
61
+ # if capability in user_input and not capabilities[capability]:
62
+ # response = f"I'm sorry, but I'm not programmed to do that. Please ask me something else."
63
+ # break
64
 
65
  # Print the response and wait for the next user input
66
  print(response)