zveinn 10 luni în urmă
părinte
comite
5fb2933fd1
5 a modificat fișierele cu 22 adăugiri și 4 ștergeri
  1. BIN
      mp3/blabla.mp3
  2. BIN
      twitch-bot.exe
  3. 17 1
      twitch-client.go
  4. 1 1
      twitch-core.go
  5. 4 2
      variables.go

BIN
mp3/blabla.mp3


BIN
twitch-bot.exe


+ 17 - 1
twitch-client.go

@@ -204,7 +204,23 @@ func ProcessMessage(msg tirc.PrivateMessage) {
 		return
 	}
 
-	if strings.Contains
+	// banword := ""
+	// isBanned := false
+	// if strings.Contains(msg.Message, " tailwind ") || strings.HasPrefix(msg.Message, "tailwind") {
+	// 	banword = "tailwind"
+	// 	isBanned = true
+	// }
+
+	// if strings.Contains(msg.Message, " rust ") || strings.HasPrefix(msg.Message, "rust") {
+	// 	banword = "rust"
+	// 	isBanned = true
+	// }
+
+	// if isBanned {
+	// 	TWITCH_CLIENT.ReplyToUser(msg.User.DisplayName, "You said a naughty word: "+banword+" -1000 points for you.", "")
+	// 	_ = IncrementUserPoints(U, -1000)
+	// 	return
+	// }
 
 	// if strings.Contains(msg.Message, "!tts") {
 	// 	go CustomTTS(*U, msg)

+ 1 - 1
twitch-core.go

@@ -35,8 +35,8 @@ func RenewTokensLoop() {
 	}()
 
 	for {
-		time.Sleep(1 * time.Hour)
 		RenewTokens()
+		time.Sleep(1 * time.Hour)
 	}
 }
 

+ 4 - 2
variables.go

@@ -33,6 +33,7 @@ func InitMP3Map() {
 	MP3Map["2a174cdd-a444-434e-af31-9e6a598944de"] = "come-after-you"
 	MP3Map["5a78d388-6757-422b-a348-9ce983f34cb3"] = "hey-listen"
 	MP3Map["1594a455-4a84-4a8b-a562-ac830c423d81"] = "excellent"
+	MP3Map["b714ac5a-e6a4-4cf5-9ea0-385c67a168b8"] = "blabla"
 }
 
 func InitTwitchClient() {
@@ -62,9 +63,10 @@ func InitCommands() {
 
 	// VPN RELATED
 	TextCommands["!freetrial"] = "All new accounts get 24 hours free trial > https://www.nicelandvpn.is/#/register"
-	TextCommands["!vpn"] = "NicelandVPN >> 24/h Free Trial >> Anonymous Accounts >> NO CARD INFO NEEDED! >>> https://nicelandvpn.is"
+	TextCommands["!vpn"] = "Tunnels.is >> 24/h Free Trial >> Anonymous Accounts >> NO CARD INFO NEEDED! >>> https://tunnels.is"
+	TextCommands["!vpndiscord"] = "Tunnels.is DISCORD: https://discord.com/invite/7Ts3PCnCd9"
 
-	TextCommands["!commands"] = "!top10 !roll !quote !vpn !freetrial !youtube !nvim !x !discord !roll !keyboard !spec !time !tts !terminal !keyboard !os !editor"
+	TextCommands["!commands"] = "lol.. just guess"
 }
 
 func CheckCustomReward(U *User, msg tirc.PrivateMessage) (success bool) {