Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
2c588ff
Revised Taunting
Stefaf Nov 27, 2016
db1c2a4
9999 line taunt
Stefaf Nov 27, 2016
da450b3
Readme updated
Stefaf Nov 27, 2016
668570f
Force 1 line taunts
Stefaf Nov 28, 2016
2c15e26
Revert "Force 1 line taunts Adds a 45% Chance to force 1 line taunts.…
Stefaf Nov 28, 2016
f961818
Force 1 line taunts
Stefaf Nov 28, 2016
a286672
Fix custom text tags
Stefaf Dec 3, 2016
485d4d9
Readme updated
Stefaf Dec 3, 2016
01e1982
Small code cleanup
Stefaf Dec 4, 2016
9589027
MiniScript GetGotoChat
Stefaf Dec 4, 2016
ca27c4f
Readme updated
Stefaf Dec 4, 2016
3828e2e
Update README.md
Stefaf Dec 5, 2016
c1626a2
partial implementation of stackedcallreturn class (#16)
dariorbun Dec 8, 2016
0214a6d
v0.54.6.0 (#18)
Stefaf Dec 9, 2016
273ec32
RandomText-Fix
Stefaf Jan 11, 2017
4d5de80
Chatlog tweaks
pepsifreak Jan 27, 2017
04a8d00
forgot to check the chat autosave setting
pepsifreak Feb 16, 2017
c9820b3
Merge remote-tracking branch 'refs/remotes/origin/SF_WIP'
pepsifreak Feb 17, 2017
ec50535
Merge remote-tracking branch 'refs/remotes/origin/pepsi_wip'
pepsifreak Feb 17, 2017
d0ec2df
0.54.7.0
Milo1885 Feb 17, 2017
8fb2db5
0.54.7.0
Milo1885 Feb 17, 2017
a716b13
@CountVar[] Command, image fixes
Milo1885 Feb 18, 2017
1b66e5d
test
dariorbun Feb 19, 2017
ab9569c
synced with main
dariorbun Feb 19, 2017
3442140
@NotFlag() and @FlagOr() fix
Milo1885 Feb 20, 2017
83d0422
Merge branch 'master' into master
Milo1885 Feb 20, 2017
e980830
Merge pull request #22 from dariorbun/master
Milo1885 Feb 21, 2017
156f4df
Finalizing integration of dariobrun's features
Milo1885 Feb 21, 2017
e258ba4
Updated ReadMe
Milo1885 Feb 21, 2017
6a4d928
Fixed BtnRandomImageDir MouseHover description
Milo1885 Feb 21, 2017
6568961
Better timing for lines containing @RT()
Milo1885 Feb 21, 2017
b22d43c
Changed AI Box completion msgbox
Milo1885 Feb 21, 2017
d048c33
Allow comma usage in #RT()
Milo1885 Feb 22, 2017
6170da0
Validate All System Files
Milo1885 Feb 22, 2017
b771ada
Flag, NotFlag, FlagOr fix
Milo1885 Feb 22, 2017
879a549
CallReturn Goto fix
Milo1885 Feb 22, 2017
3b8f0cf
MiniScript-CallReturn conversion, @RT() delay fix
Milo1885 Feb 23, 2017
6012d5e
Change Domme buttons in Settings->Apps->Glitter
Milo1885 Feb 23, 2017
3970b63
Add pause setting check to TeaseTick
pepsifreak Mar 3, 2017
5737518
Output Error Messages to Chat
Milo1885 Mar 4, 2017
08bca23
#RandomSlideshowCategory fix
Milo1885 Mar 4, 2017
7d4b27e
#RandomSlideshowCategory fix #2
Milo1885 Mar 4, 2017
1d782b9
Added @SecondSession command: When used, sets a variable to start a s…
OxiKlein Mar 7, 2017
0ab0a73
Updated README.md to incorporate the last change.
OxiKlein Mar 7, 2017
30a6b10
Forgot the space after the * in README.md to make a bullet point. Who…
OxiKlein Mar 7, 2017
c91222e
Change URL File Servers
Milo1885 Mar 8, 2017
268317d
Prevent endless loop in statuses
pepsifreak Mar 9, 2017
b30c65e
Edge Taunt Command Filters
Milo1885 Mar 23, 2017
ae85259
MultipleEdges taunt timer reset
Milo1885 Mar 23, 2017
6d2d1b6
Merge pull request #23 from OxiKlein/master
Milo1885 Mar 23, 2017
4e4c140
Fixed @EdgeHold() Commands
Milo1885 Apr 1, 2017
05eb5fc
RandomDomme Fix
Milo1885 Apr 1, 2017
525468f
Fixed image changing during multi-line Taunts
Milo1885 Apr 1, 2017
d80d04e
Added CBT\Custom Task flags to StopEverything()
Milo1885 Apr 1, 2017
7ebd63a
@Goto() Improvements
Milo1885 Apr 1, 2017
07de315
Audit Scripts Comma fix
Milo1885 Apr 2, 2017
31fe368
@InputVar[] - Response fix
Milo1885 Apr 2, 2017
8f06d9c
Change Audit Scripts to ignore blank lines
Milo1885 Apr 2, 2017
b2291f3
First Round Give Up fix
Milo1885 Apr 5, 2017
3a1e225
Keyword exists but no valid lines
Milo1885 Apr 5, 2017
51c4c77
First batch for the merge:
dariorbun Apr 9, 2017
0e1abef
Small Update:
dariorbun Apr 9, 2017
df0c546
New command:
dariorbun Apr 9, 2017
26bb2aa
-Fixed a "bug" in the @ShowImage[ code when using *.*: the code was o…
dariorbun Apr 9, 2017
1faf6f7
Inserted the domhonorific checks to check everytime you write and not…
dariorbun Apr 9, 2017
6ccd6f9
improved GetLocalImage() function to be able to check for infinite nu…
dariorbun Apr 10, 2017
be4f78b
new command:
dariorbun Apr 10, 2017
2b10ebb
-fixed an error with lazysub shortcuts not using the honorific when n…
dariorbun Apr 11, 2017
5847959
forgot the please honorific lazysub fix :D
dariorbun Apr 11, 2017
e0722a8
damn...now it is fixed :D
dariorbun Apr 11, 2017
074ce63
-fixed @RT() routine to worl also when there is @RandomText() and not…
dariorbun Apr 12, 2017
2007144
Filter out image Commands when video is playing
Milo1885 Apr 12, 2017
c6d0035
-Fixed a bug with the new #ShortName controls:
dariorbun Apr 13, 2017
b2f2ebc
Removed the @VoiceOn and @VoiceOff commands
dariorbun Apr 13, 2017
897a374
URL-File SpeedUp
Stefaf Apr 14, 2017
12771e5
Merge pull request #25 from TeaseAI/URL_File_Speedup
Milo1885 Apr 14, 2017
3030625
Fixing cool new non working stuff...
Stefaf Apr 15, 2017
b436db2
-removed all the code dealing with miniscript since they are not used…
dariorbun Apr 15, 2017
aa58900
Multi-StrokeTaunt Image Change fix
Milo1885 Apr 16, 2017
ac3790a
Merge pull request #26 from TeaseAI/URL_File_Speedup
Milo1885 Apr 16, 2017
b901efa
test re-indented
dariorbun Apr 16, 2017
b29593a
new test
dariorbun Apr 16, 2017
3c9e4cf
test manual merge my version with latest stefaf changes
dariorbun Apr 16, 2017
26b9259
-changes to mode class:
dariorbun Apr 16, 2017
ef26975
fixed a small bug in the callreturn class with the new mode() to save…
dariorbun Apr 16, 2017
7b21efd
-fixed a few bugs with the giveupreturn checks not being executed in …
dariorbun Apr 19, 2017
06f2b47
-new command @WritingTaskRandom(): will pick a different line from a …
dariorbun Apr 22, 2017
4c402c9
New command:
dariorbun Apr 25, 2017
27d30fd
Commented out 3 lines in the domresponse() sub that were dealing with…
dariorbun Apr 25, 2017
7ffa80c
Forgot to complete the domTagOr() and domTag() functions also for dom…
dariorbun Apr 25, 2017
7a43883
for some unweird reason i removed a : in the chatappend function for …
dariorbun Apr 25, 2017
7655d0b
Fixed a problem with the new @DomTag() function that was using the wr…
dariorbun Apr 25, 2017
b96076c
Final fixes to @calreturn:
dariorbun Apr 29, 2017
4375dd0
fixed a very small bug in followup that was causing, sometimes in ver…
dariorbun Apr 29, 2017
1828db9
contactData.new() now will load the contact imagefolder right away in…
dariorbun Apr 30, 2017
95cbaed
commented out from the contact/domme timers and from the addContact/d…
dariorbun Apr 30, 2017
7a2a756
fixed a problem with not all filters being checked when present in a …
dariorbun Apr 30, 2017
d6f257c
@TimeOut() can now be used with #Vocabs (and filters too) to determin…
dariorbun May 1, 2017
a44585a
added improvement to @IF{] abd @Variable[] functions to work also if …
dariorbun May 1, 2017
eae6af6
Big changes to the commandclean funtcion:
dariorbun May 1, 2017
0fe71ed
fixed a small bug in the app settings with the new Always show new sl…
dariorbun May 1, 2017
64525ab
Final improvements to ImageTag/DommeTag:
dariorbun May 1, 2017
772069e
new commands @ImageTagAny and @DommeTagAny:
dariorbun May 1, 2017
dc0413e
Fixed a bug in the new commandclean() function
dariorbun May 1, 2017
a4c968e
changes to dommetag/imagetag:
dariorbun May 2, 2017
c36e461
fixed an error when launching teaseAI on a fresh startup due to it no…
dariorbun May 2, 2017
6a45fb7
fixed the problem when launching as a fresh start
dariorbun May 2, 2017
6333e4f
reverted the commandclean function to the old function, but added a d…
dariorbun May 3, 2017
ed54a7e
fixed small bug with @ShowImage[ command....i needed to move @ShowIma…
dariorbun May 4, 2017
d465393
Merge pull request #24 from dariorbun/master
Milo1885 May 4, 2017
35f77c0
Replaced missing colons
Milo1885 May 4, 2017
8a56d15
Reverted And\Or\Is\Not\While back to lower case in system messages
Milo1885 May 5, 2017
de5dcc7
Settings UI changes
Milo1885 May 5, 2017
1843789
Increased Tease Length Ranges, @ContinueSession Command
Milo1885 May 5, 2017
7cd5baf
ContinueSession checks
Milo1885 May 5, 2017
198e237
Change AuditScripts default to False
Milo1885 May 5, 2017
533e0fd
Enhanced end of tease and @EndTease Command
Milo1885 May 5, 2017
8addcbf
Contacts\Video Scripts fix
Milo1885 May 5, 2017
a3918ff
Changed AssemblyVersion to 0.54.8.0
Milo1885 May 5, 2017
ceb4d93
Updated ReadMe
Milo1885 May 6, 2017
e19e737
Updated ReadMe
Milo1885 May 6, 2017
181645a
Bugfix: WritingTask\WritingTaskRandom and Vocab files
Milo1885 May 6, 2017
4a22c5d
Last-minute updates
Milo1885 May 6, 2017
c7b4f55
Last-minute updates
Milo1885 May 6, 2017
fce56d3
Misc Settings UI Fix
Milo1885 May 6, 2017
b6e59b5
Genres added to @PlayVideo(), FilterList Optimization
Milo1885 May 8, 2017
a2dfb0d
Keyword Error fix, check if Liked\Disliked files exist
Milo1885 May 9, 2017
67cfc9b
#Null fix for Missing Vocab
Milo1885 May 9, 2017
796c156
Bugfix: Create URL Files was not working
Milo1885 May 9, 2017
fc5afb6
DailyTasks fix
Milo1885 May 10, 2017
6355329
Multiple Choice Branches fixes
Milo1885 May 10, 2017
64101b8
MCB fix
Milo1885 May 11, 2017
f0471e7
Changed Assembly Version to 0.54.9.0
Milo1885 May 11, 2017
bca7480
Bugfix: Recent Slideshows
Milo1885 May 12, 2017
8b920a5
ImageFolderComboBox fix
Milo1885 May 12, 2017
2722378
@DifferentAnswer bugfix, @ControlFlag() Command Filter
Milo1885 Jun 2, 2017
b9b4bb7
#Var[] fix
Milo1885 Jun 2, 2017
8f63c0f
Edge phrase apostrophe fix
Milo1885 Jun 2, 2017
76822b0
Implemented Dariobrun changes
Milo1885 Jun 8, 2017
782ef93
Fix saving of Custom1/Custom2 glitter settings
pepsifreak Jun 23, 2017
46d751c
dariorbun's Patch 55.3
Stefaf Nov 1, 2017
b713ea4
Updated Readme
Stefaf Nov 1, 2017
2112c96
Merge pull request #30 from TeaseAI/SF_WIP
pepsifreak Nov 4, 2017
fe04ce9
Glitter-App Rework
Stefaf Nov 4, 2017
c8b5395
Removed unused GetFilter2
Stefaf Nov 4, 2017
ece742b
Removed unused Sub ResetButton()
Stefaf Nov 4, 2017
e85e17b
Code Refactoring and Bugfixing
Stefaf Nov 5, 2017
eded67f
Chat HTML Rework
Stefaf Nov 14, 2017
d9dfaa3
Merge HTML rework from TeaseAI/SF_WIP
Stefaf Nov 24, 2017
37b3e1d
Variables Code Rework
Stefaf Nov 24, 2017
91d1dc0
Various improvements
Stefaf Jan 18, 2018
845feae
Increased Response speed
Stefaf Mar 4, 2018
d72ec62
Readme updated
Stefaf Mar 4, 2018
14ce939
Fixes DeleteVariable(String)
Stefaf Mar 7, 2018
5ddafcc
Merge pull request #33 from TeaseAI/SF_WIP
pepsifreak Mar 8, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,4 @@ FakesAssemblies/
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
Tease AI/Resources/Thumbs.db
381 changes: 371 additions & 10 deletions README.md

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions Tease AI/ApplicationEvents.vb
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,25 @@ Namespace My
Session = New SessionState
End Sub

''' =========================================================================================================
''' <summary>
''' Prints an Exception entry in the chatwindow if Form1 is available. This function uses INVOKE on Form1.
''' </summary>
''' <param name="msg">Represents a clear text message to display.</param>
''' <param name="ex">The occurred exception.</param>
Public Sub HandledException(msg As String, ex As Exception)
If Form1 Is Nothing Then Exit Sub
If Form1.IsHandleCreated = False Then Exit Sub

If Form1.InvokeRequired Then
Form1.Invoke(Sub() HandledException(msg, ex))
Exit Sub
End If

Form1.ChatAddException(msg, ex)

End Sub


End Class
End Namespace
66 changes: 34 additions & 32 deletions Tease AI/Classes/Common.vb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Public Class Common
Shared _synclockTxtCache As New Object

''' <summary>
''' A Dictionary containing all textfiles read by txt3List(string)
''' A Dictionary containing all textfiles read by Txt2List(string)
''' </summary>
Private Shared Property TxtCache As Dictionary(Of String, List(Of String))
Get
Expand Down Expand Up @@ -123,32 +123,32 @@ Public Class Common
''' <summary>
''' Reads a TextFile into a generic List(of String). EmptyLines are removed from the list.
''' </summary>
''' <param name="GetText">The Filepath to read.</param>
''' <param name="filepath">The Filepath to read.</param>
''' <returns>A List(of String) containing all Lines of the given File. Returns
''' an empty List if the specified file doesn't exists, or an exception occurs.</returns>
''' <remarks>This Method will create the given DirectoryStructure for the given
''' Filepath if it doesn't exist.</remarks>
Friend Shared Function Txt2List(ByVal GetText As String) As List(Of String)
Friend Shared Function Txt2List(ByVal filepath As String) As List(Of String)
#If TRACE Then
Dim TS As New TraceSwitch("TxtCache", "")
#End If
Try
If GetText Is Nothing Then
If filepath Is Nothing Then
Throw New ArgumentNullException("The given filepath was NULL.")
End If

If GetText Is Nothing Or GetText = "" Then
Throw New ArgumentException("The given filepath was empty """ & GetText & """")
If filepath Is Nothing Or filepath = "" Then
Throw New ArgumentException("The given filepath was empty """ & filepath & """")
End If

Dim TextList As New List(Of String)

If TxtCache.Keys.Contains(GetText.ToLower) Then
If TxtCache.Keys.Contains(filepath.ToLower) Then
#If TRACE Then
If TS.TraceInfo Then Trace.WriteLine("Loading cached Text-File: " & GetText, "TxtCache")
If TS.TraceInfo Then Trace.WriteLine("Loading cached Text-File: " & filepath, "TxtCache")
#End If

Txt2List = TxtCache(GetText.ToLower).ToList
Txt2List = TxtCache(filepath.ToLower).ToList

Exit Function
'Return TxtCache(GetText.ToLower).ToList
Expand All @@ -159,13 +159,13 @@ Public Class Common

' Check if the given Directory exists. MyDirectory.Exists will
' try to create the directory, if it's an App-sub-dir.
If myDirectory.Exists(Path.GetDirectoryName(Path.GetFullPath(GetText))) Then
If myDirectory.Exists(Path.GetDirectoryName(Path.GetFullPath(filepath))) Then
#If TRACE Then
If TS.TraceInfo Then Trace.Write("Reading Text-File: " & GetText, "TxtCache")
If TS.TraceInfo Then Trace.Write("Reading Text-File: " & filepath, "TxtCache")
#End If
If File.Exists(GetText) Then
If File.Exists(filepath) Then

Using TextReader As New StreamReader(GetText)
Using TextReader As New StreamReader(filepath)

While TextReader.Peek <> -1
TextList.Add(TextReader.ReadLine())
Expand All @@ -174,22 +174,22 @@ Public Class Common
' Remove all empty Lines from list.
TextList.RemoveAll(Function(x) x = "")

TxtCache.Add(GetText.ToLower, TextList.ToList)
TxtCache.Add(filepath.ToLower, TextList.ToList)

createFileSystemWatcher(GetText)
createFileSystemWatcher(filepath)
Return TextList
End Using
Else
Throw New FileNotFoundException("Can't locate the file: """ & GetText & """")
Throw New FileNotFoundException("Can't locate the file: """ & filepath & """")
End If
Else
Throw New DirectoryNotFoundException("Can't locate the directory """ & Path.GetDirectoryName(GetText) & """")
Throw New DirectoryNotFoundException("Can't locate the directory """ & Path.GetDirectoryName(filepath) & """")
End If
Catch ex As Exception
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
' All Errors
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
Log.WriteError(ex.Message, ex, "Error loading TextFile: """ & GetText & """")
Log.WriteError(ex.Message, ex, "Error loading TextFile: """ & filepath & """")
End Try
Return New List(Of String)
End Function
Expand All @@ -198,37 +198,40 @@ Public Class Common
''' <summary>
''' Reads the First line of the given textfile.
''' </summary>
''' <param name="GetText">On success the first line as string. Otherwise an
''' <param name="filePath">On success the first line as string. Otherwise an
''' empty String.</param>
''' <returns></returns>
Friend Shared Function TxtReadLine(ByVal GetText As String) As String
Friend Shared Function TxtReadLine(ByVal filePath As String) As String
Try
If GetText Is Nothing Then
Return Txt2List(filePath)(0)
Exit Function

If filePath Is Nothing Then
Throw New ArgumentNullException("The given filepath was NULL.")
End If

If GetText Is Nothing Or GetText = "" Then
Throw New ArgumentException("The given filepath was empty """ & GetText & """")
If filePath Is Nothing Or filePath = "" Then
Throw New ArgumentException("The given filepath was empty """ & filePath & """")
End If

' Check if the given Directory exists. MyDirectory.Exists will
' try to create the directory, if it's an App-sub-dir.
If myDirectory.Exists(Path.GetDirectoryName(Path.GetFullPath(GetText))) Then
If File.Exists(GetText) Then
Using TextReader As New StreamReader(GetText)
If myDirectory.Exists(Path.GetDirectoryName(Path.GetFullPath(filePath))) Then
If File.Exists(filePath) Then
Using TextReader As New StreamReader(filePath)
Return TextReader.ReadLine
End Using
Else
Throw New FileNotFoundException("Can't locate the file: """ & GetText & """")
Throw New FileNotFoundException("Can't locate the file: """ & filePath & """")
End If
Else
Throw New DirectoryNotFoundException("Can't locate the directory """ & Path.GetDirectoryName(GetText) & """")
Throw New DirectoryNotFoundException("Can't locate the directory """ & Path.GetDirectoryName(filePath) & """")
End If
Catch ex As Exception
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
' All Errors
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
Log.WriteError(ex.Message, ex, "Error loading TextLine: " & GetText)
Log.WriteError(ex.Message, ex, "Error loading TextLine: " & filePath)
End Try
Return ""
End Function
Expand Down Expand Up @@ -266,8 +269,8 @@ Public Class Common
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
' All Errors
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
Log.WriteError(ex.Message, ex, "Error removing TextLine: """ & Searchpattern &
""" from file """ & Filepath & """")
Log.WriteError(ex.Message, ex, "Error removing TextLine: """ & Searchpattern &
""" from file """ & Filepath & """")
Return 0
End Try
End Function
Expand Down Expand Up @@ -381,7 +384,6 @@ Public Class Common
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
Debug.Print("Exception while saving image: """ & uri & "")
Log.WriteError("Exception while saving image: """ & uri & "", ex, "Exception while saving image")
Return rtnImage
Catch ex As Exception
'▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨▨
' All Errors
Expand Down
Loading