Advertisement
kohpriwniranam

Untitled

Feb 10th, 2024
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1.  
  2. //===//
  3. } else if txt == "fixtoken" || txt == data.KohCmd["fixtoken"] && data.KohCmd["fixtoken"] != ""{
  4. if Pangkat1(sender) {
  5. if getAccess(ctime,cl.Mid) {
  6. fileName := fmt.Sprintf("token/%v.txt", os.Args[1])
  7. fileBytes, err := ioutil.ReadFile(fileName)
  8. if err != nil {fmt.Println(err);return}
  9. Token := strings.Split(string(fileBytes), "\r\n")
  10. if len(Token) > 0 {
  11. listtoken := fmt.Sprintf("%s", cl.Authtoken)
  12. for _ , ky := range Token {
  13. mids := strings.Split(ky, ":")
  14. mid := mids[0]
  15. if oop.Contains(data.StayGroup[to], mids[0]) && mid != cl.Mid{
  16. tokenmid := mids[0]+":"+mids[1]
  17. listtoken += "\r\n" + tokenmid
  18. }
  19. }
  20. cl.SendMessage(to, "adjusting...")
  21. R2 := listtoken
  22. fileNew := fmt.Sprintf("token/%v.txt", os.Args[1])
  23. ioutil.WriteFile(fileNew,[]byte(R2), 0644)
  24. time.Sleep(2 * time.Second)
  25. cl.SendMessage(to, "ReloginProgram..and fix later")
  26. go ReloginProgram(cl,to)
  27. } else {cl.SendMessage(to, "•Tokenlist Empty")}
  28. }
  29. }
  30. //==//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement