Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===//
- } else if txt == "fixtoken" || txt == data.KohCmd["fixtoken"] && data.KohCmd["fixtoken"] != ""{
- if Pangkat1(sender) {
- if getAccess(ctime,cl.Mid) {
- fileName := fmt.Sprintf("token/%v.txt", os.Args[1])
- fileBytes, err := ioutil.ReadFile(fileName)
- if err != nil {fmt.Println(err);return}
- Token := strings.Split(string(fileBytes), "\r\n")
- if len(Token) > 0 {
- listtoken := fmt.Sprintf("%s", cl.Authtoken)
- for _ , ky := range Token {
- mids := strings.Split(ky, ":")
- mid := mids[0]
- if oop.Contains(data.StayGroup[to], mids[0]) && mid != cl.Mid{
- tokenmid := mids[0]+":"+mids[1]
- listtoken += "\r\n" + tokenmid
- }
- }
- cl.SendMessage(to, "adjusting...")
- R2 := listtoken
- fileNew := fmt.Sprintf("token/%v.txt", os.Args[1])
- ioutil.WriteFile(fileNew,[]byte(R2), 0644)
- time.Sleep(2 * time.Second)
- cl.SendMessage(to, "ReloginProgram..and fix later")
- go ReloginProgram(cl,to)
- } else {cl.SendMessage(to, "•Tokenlist Empty")}
- }
- }
- //==//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement