Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===//
- } else if cmd == "tokenlist" {
- if GetCodeprem(0, sender, to) {
- if CheckExprd(client, to, sender) {
- if len(Data.Authoken) > 0 {
- listtoken := "𝐓𝐨𝐤𝐞𝐧𝐥𝐢𝐬𝐭:\n"
- for i := range Data.Authoken {
- listtoken += "\n" + Data.Authoken[i]
- fmt.Sprintf("... %v", i)
- }
- sta := "\n\n 𝐓𝐨𝐭𝐚𝐥 "+strconv.Itoa(len(Data.Authoken))+" 𝐄𝐚."
- newsend += listtoken+sta + "\n"
- } else {newsend += "Tokenlist Empty•\n"}
- }
- }
- }else if strings.HasPrefix(cmd, "addassist"+":"){
- if GetCodeprem(3, sender, to) {
- if CheckExprd(client, to, sender) {
- result := strings.Split((text),":")
- r := strings.Replace(text,result[0]+":", "", 1)
- result2 := r
- if !InArray2(Data.Authoken,result2) {
- client.SendContact(to, r[0:33])
- Data.Authoken = append(Data.Authoken,result2)
- client.SendMessage(to, "Addtoken assist\nCmd use "+MsRname+"update")
- break
- } else {
- newsend += result2 + "\n"+"\nIn List"
- }
- break
- }
- }
- }else if strings.HasPrefix(cmd, "delassistno"+":"){
- if GetCodeprem(3, sender, to) {
- if CheckExprd(client, to, sender) {
- result := strings.Split((text),":")
- haniku := strings.Replace(text,result[0]+":", "", 1)
- no, _ := strconv.Atoi(haniku)
- kura := Squadlist[no-1]
- kura2 := Data.Authoken[no-1]
- if InArray2(Data.Authoken,kura2) {
- client.SendContact(to, kura)
- Data.Authoken = Remove(Data.Authoken,kura2)
- client.SendMessage(sender, "Removetoken assist\n"+kura2)
- asss := fmt.Sprintf("%v.%s\n", haniku, kura)
- client.SendMention(to, asss+"@!", []string{kura})
- break
- } else {
- newsend += kura2 + "\n"+"\nNot In List"
- }
- break
- }
- }
- //===//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement