the AussieTard that can't even afford a haircut.dude I think that loser raymond cripps dropped by the forum. LMAO
totally, she is a total lesbo, she probably fixes carborators in his faggy game too. LOLpfft imagine spending 10+years developping a game about some lesbo 1 eared catgirl.
class Excluder {
private var startsWith = String
private var endsWith = String
func addStartsWith(_ s1: String) {
if !startsWith.contains("^(" + s1 + ").*") {
startsWith.append("^(" + s1 + ").*")
}
}
func addEndsWith(_ s1: String) {
if !endsWith.contains("(.*)(?=" + s1 + ")") {
endsWith.append("(.*)(?=" + s1 + ")")
}
}
func exclude(_ ear: String) -> Bool {
let r1 = RegexUtil() // Assuming RegexUtil is defined elsewhere
for tempStr in startsWith {
if r1.extractRegex(tempStr, from: ear).count > 0 {
return true
}
}
for tempStr in endsWith {
if r1.extractRegex(tempStr, from: ear).count > 0 {
return true
}
}
return false
}
}
class Excluder {
private var startsWith:Array<String> = [String]()
private var endsWith:Array<String> = [String]()
func addStartsWith(_ s1: String) {
if !startsWith.contains("^(" + s1 + ").*") {
startsWith.append("^(" + s1 + ").*")
}
}
func addEndsWith(_ s1: String) {
if !endsWith.contains("(.*)(?=" + s1 + ")") {
endsWith.append("(.*)(?=" + s1 + ")")
}
}
func exclude(_ ear: String) -> Bool {
let r1 = RegexUtil() // Assuming RegexUtil is defined elsewhere
for tempStr in startsWith {
if r1.regexChecker(theRegex: tempStr, str2Check: ear).count > 0 {
return true
}
}
for tempStr in endsWith {
if r1.regexChecker(theRegex: tempStr, str2Check: ear).count > 0 {
return true
}
}
return false
}
}
public class TimedMessages {
public Map<String, String> messages = new HashMap<>();
private final PlayGround playGround = new PlayGround();
private String lastMSG = "nothing";
private Boolean msg = false;
public void addMSG(String ear){
RegexUtil ru1 = new RegexUtil();
String tempMSG = ru1.extractRegex("(?<=remind me to).*?(?=at)",ear);
if(tempMSG.isEmpty()){return;}
String timeStamp = ru1.extractRegex(enumRegexGrimoire.simpleTimeStamp,ear);
if(timeStamp.isEmpty()){return;}
messages.put(timeStamp, tempMSG);
}
public void addMSGV2(String timeStamp, String msg){
messages.put(timeStamp, msg);
}
public void sprinkleMSG(String msg, int amount){
for (int i = 0; i < amount; i++) {
messages.put(generateRandomTimestamp(), msg);
}
}
public static String generateRandomTimestamp() {
// Generate a random number of minutes (0 to 59)
Random random = new Random();
int minutes = random.nextInt(60);
String m = "";
if(minutes>9){
m = String.format("%d", minutes);
}else{
m = String.format("0%d", minutes);
}
int hours = random.nextInt(12);
if(hours>9){
return String.format("%d:%s", hours, minutes);
}
return String.format("0%d:%s", hours, minutes);
}
public void clear(){messages = new HashMap<>();}
public void tick(){
String now = this.playGround.getCurrentTimeStamp();
if(this.messages.containsKey(now)){
if(!lastMSG.equals(messages.get(now))){
lastMSG = messages.get(now);
msg = true;
}
}
}
public String getLastMSG() {
msg = false;
return lastMSG;
}
public Boolean getMsg() {
return msg;
}
}
class TimedMessages {
var messages: [String: String] = [:]
private let playGround :PlayGround = PlayGround()
private var lastMSG = "nothing"
private var msg:Bool = false
func addMSG(_ ear: String) {
let ru1 = RegexUtil()
let tempMSG = ru1.regexChecker(theRegex:"(?<=remind me to).*?(?=at)", str2Check: ear)
if tempMSG.isEmpty { return }
let timeStamp = ru1.regexChecker(theRegex: enumRegexGrimoire.simpleTimeStamp, str2Check: ear)
if timeStamp.isEmpty { return }
messages[timeStamp] = tempMSG
}
func addMSGV2(_ timeStamp: String, _ msg: String) {
messages[timeStamp] = msg
}
func sprinkleMSG(_ msg: String, amount: Int) {
for _ in 0..<amount {
messages[Self.generateRandomTimestamp()] = msg
}
}
static func generateRandomTimestamp() -> String {
let minutes = Int.random(in: 0..<60)
let hours = Int.random(in: 0..<12)
let m = String(format: "%02d", minutes)
let h = String(format: "%02d", hours)
return "\(h):\(m)"
}
func clear() {
messages = [:]
}
func tick() {
let now = playGround.getCurrentTimeStamp()
if let message = messages[now], lastMSG != message {
lastMSG = message
msg = true
}
}
func getLastMSG() -> String {
msg = false
return lastMSG
}
func getMsg() -> Bool {
return msg
}
}
class DiBicameral: DiSkillV2 {
/*
* let bicameral = DiBicameral()
bicameral.msgCol.addMSGV2("02:57", "test run ok")
add # for messages that engage other skills
*/
var msgCol = TimedMessages()
override func input(_ ear: String, _ skin: String, _ eye: String) {
msgCol.tick()
if kokoro.toHeart["dibicameral"] != nil && kokoro.toHeart["dibicameral"] == "null" {
kokoro.toHeart["dibicameral"] = nil
}
if msgCol.getMsg() {
let temp = msgCol.getLastMSG()
if !temp.contains("#") {
setSimpleAlg(temp)
} else {
kokoro.toHeart["dibicameral"] = temp.replacingOccurrences(of: "#", with: "")
}
}
}
}
class DiBicameral: DiSkillV2 {
/*
* let bicameral = DiBicameral()
bicameral.msgCol.addMSGV2("02:57", "test run ok")
add # for messages that engage other skills
*/
public var msgCol:TimedMessages = TimedMessages()
override func input(ear: String, skin: String, eye: String) {
msgCol.tick()
if kokoro.toHeart["dibicameral"] != nil && kokoro.toHeart["dibicameral"] == "null" {
kokoro.toHeart["dibicameral"] = nil
}
if msgCol.getMsg() {
let temp = msgCol.getLastMSG()
if !temp.contains("#") {
setSimpleAlg(sayThis: temp)
} else {
kokoro.toHeart["dibicameral"] = temp.replacingOccurrences(of: "#", with: "")
}
}
}
}
Public Class Excluder
Private ReadOnly startsWith As New List(Of String)()
Private ReadOnly endsWith As New List(Of String)()
Public Sub AddStartsWith(s1 As String)
If Not startsWith.Contains("^(" & s1 & ").*") Then
startsWith.Add("^(" & s1 & ").*")
End If
End Sub
Public Sub AddEndsWith(s1 As String)
If Not endsWith.Contains("(.*)(?=" & s1 & ")") Then
endsWith.Add("(.*)(?=" & s1 & ")")
End If
End Sub
Public Function Exclude(ear As String) As Boolean
Dim r1 As New RegexUtil() ' Assuming RegexUtil is defined elsewhere
For Each tempStr As String In startsWith
If r1.ExtractRegex(tempStr, ear).Length > 0 Then
Return True
End If
Next
For Each tempStr As String In endsWith
If r1.ExtractRegex(tempStr, ear).Length > 0 Then
Return True
End If
Next
Return False
End Function
End Class
Public Class TimedMessages
Public Property Messages As New Dictionary(Of String, String)()
Private lastMSG As String = "nothing"
Private msg As Boolean = False
Public Sub AddMSG(ear As String)
Dim ru1 As New RegexUtil()
Dim tempMSG As String = ru1.ExtractRegex("(?<=remind me to).*?(?=at)", ear)
If String.IsNullOrEmpty(tempMSG) Then
Return
End If
Dim timeStamp As String = ru1.ExtractRegex(enumRegexGrimoire.simpleTimeStamp, ear)
If String.IsNullOrEmpty(timeStamp) Then
Return
End If
Messages(timeStamp) = tempMSG
End Sub
Public Sub AddMSGV2(timeStamp As String, msg As String)
Messages(timeStamp) = msg
End Sub
Public Sub SprinkleMSG(msg As String, amount As Integer)
For i As Integer = 0 To amount - 1
Messages(GenerateRandomTimestamp()) = msg
Next
End Sub
Public Shared Function GenerateRandomTimestamp() As String
Dim random As New Random()
Dim minutes As Integer = random.Next(60)
Dim m As String = If(minutes > 9, minutes.ToString(), $"0{minutes}")
Dim hours As Integer = random.Next(12)
Return If(hours > 9, $"{hours}:{m}", $"0{hours}:{m}")
End Function
Public Sub Clear()
Messages = New Dictionary(Of String, String)()
End Sub
Public Sub Tick()
Dim now As String = TimeUtils.getCurrentTimeStamp()
If Messages.ContainsKey(now) Then
If Not lastMSG.Equals(Messages(now)) Then
lastMSG = Messages(now)
msg = True
End If
End If
End Sub
Public Function GetLastMSG() As String
msg = False
Return lastMSG
End Function
Public Function GetMsg() As Boolean
Return msg
End Function
End Class