Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. Rem Type=Plugin
  2. Rem Name=Vaughnlive Tv + Deep Web Access
  3. Rem Author=
  4. Rem Host=Assistant
  5.  
  6.  
  7.  
  8. 'This sub setups the plug-ins option panel in Hal's options dialog
  9. Sub OptionsPanel()
  10. lblPlugin(0).Caption = "This manages Vaughnlive Channels, And Deep Web Power searches "
  11. lblPlugin(0).Move 120, 120, 3300, 1000
  12. lblPlugin(0).WordWrap = True
  13. lblPlugin(0).Visible = True
  14. cmdPlugin(0).Move 800, 1300, 2100, 375
  15. cmdPlugin(0).Caption = "Help on this plugin"
  16. cmdPlugin(0).Visible = True
  17. End Sub
  18.  
  19. Sub cmdPlugin_Click(Index)
  20. Select Case Index
  21. Case 0
  22. HalMenu.HalCommand "<RUNPROG>cjTVhelp.html</RUNPROG>"
  23. End Select
  24. End Sub
  25.  
  26.  
  27. Rem PLUGIN: PLUGINAREA1
  28. 'The comment above tells Ultra Hal Assistant to insert the following code
  29. 'on-the-fly into the main brain code in the section referenced.
  30.  
  31. ' If the table cjTV does not exist, I create it and fill it with some bull shat values to get started, these channels do work too.
  32. ' This is the defaul table for me.
  33. If HalBrain.CheckTableExistence("cjTV") = False Then
  34. ' I store temporarily the Read Only status
  35. cjReadOnlyMode = HalBrain.ReadOnlyMode 'Here is where we check for Table, if not create it
  36. HalBrain.ReadOnlyMode = False
  37. HalBrain.CreateTable "cjTV", "PatternMatch", "DeepWeb"
  38.  
  39. 'My stock table filler
  40. HalBrain.AddToTable "cjTV", "PatternMatch", "*cyberjedi*", "http://vaughnlive.tv/mrelectric"
  41. HalBrain.AddToTable "cjTV", "PatternMatch", "*416*", "http://vaughnlive.tv/416moviez"
  42. HalBrain.AddToTable "cjTV", "PatternMatch", "*Breaking Bad*", "http://vaughnlive.tv/0_breakingbad"
  43. HalBrain.AddToTable "cjTV", "PatternMatch", "*blue Ray moviez*", "http://vaughnlive.tv/bluray_movies"
  44. HalBrain.AddToTable "cjTV", "PatternMatch", "*New Releases*", "http://http://vaughnlive.tv/new_releases1" 'Edit this and Fill in ur own Fav links
  45. HalBrain.AddToTable "cjTV", "PatternMatch", "*Formula 1*", "http://vaughnlive.tv/0_formula1classics"
  46. HalBrain.AddToTable "cjTV", "PatternMatch", "*Aliens and Ufo's*", "http://vaughnlive.tv/aliensandufos"
  47. HalBrain.AddToTable "cjTV", "PatternMatch", "*Doctor Who*", "http://vaughnlive.tv/11th_doctorwho"
  48. HalBrain.AddToTable "cjTV", "PatternMatch", "*Bad Movie*", "http://vaughnlive.tv/thebadmoviechannel"
  49. HalBrain.AddToTable "cjTV", "PatternMatch", "*coolden*", "http://vaughnlive.tv/cooldeniz"
  50. HalBrain.AddToTable "cjTV", "PatternMatch", "*moviezone*", "http://vaughnlive.tv/moviezone"
  51.  
  52. ' Set ReadOnly Mode to its previous state
  53. HalBrain.ReadOnlyMode = cjReadOnlyMode
  54. End If
  55.  
  56. 'Run the corresponding Web page, if the user question contains one of the searched words
  57. cjAddress = ""
  58. cjAddress = HalBrain.PatternDB(OriginalSentence, "cjTV")
  59. If cjAddress <> "" Then
  60. HalCommands = HalCommands & "<RUNPROG>" & cjAddress & "</RUNPROG>" ' This is where we do the deed, and execute the webpage
  61. Select Case (Int(Rnd * 4) + 1)
  62. Case 1
  63. GetResponse = "Here is your stuff Big Dog ." & vbCrLf
  64. Case 2
  65. GetResponse = "Now you got um by the Balls cyber." & vbCrLf 'Edit these lines to fit ur need. This is where the RND picks from 1-5 . Responses
  66. Case 3
  67. GetResponse = "I am really we happy we found this." & vbCrLf ' add more responses to make more realistic YOU , Adjust RND function with Responses
  68. Case 4
  69. GetResponse = "OH. I bet he thought he was safe behind his VPN" & vbCrLf
  70. Case 5
  71. GetResponse = "Now look at this dip stick here." & vbCrLf
  72. End Select
  73. HalBrain.ReadOnlyMode = True
  74. End If
  75.  
  76. '------------------
  77. ' Deep web search engine
  78. '------------------
  79. ' Advanced Deep Web search engine. This is the Mighty PIPL search engine. Type in your real name if u have any doubts.
  80.  
  81. SearchEngine = "https://pipl.com/search/?q="
  82. If InStr(1, UserSentence, "search ", 1) > 0 Or InStr(1, UserSentence, "find ", 1) > 0 Or InStr(1, UserSentence, "locate ", 1) > 0 Then
  83. SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "+"))
  84. SearchKeyWords = Replace(SearchKeywords, "find+", "") '<---- The following are the triggers
  85. SearchKeyWords = Replace(SearchKeywords, "research+", "")
  86. SearchKeyWords = Replace(SearchKeywords, "locate+", "")
  87. SearchKeyWords = Replace(SearchKeywords, "search+", "")
  88. HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
  89. GetResponse = "I will help you research this topic on the Internet. "
  90. HalBrain.ReadOnlyMode = True
  91. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement