-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMain.lua
More file actions
66 lines (49 loc) · 1.46 KB
/
Copy pathMain.lua
File metadata and controls
66 lines (49 loc) · 1.46 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
local Answer = nil
local Args = nil
local RawCommand = nil
table.unpack = table.unpack or unpack
dofile('../json.lua')
dofile('../Variables.lua')
dofile('../Globals.lua')
dofile('../Objects.lua')
dofile('../Accounts.lua')
dofile('../Helpers.lua')
dofile('../Controller.lua')
dofile('../Commands.lua')
Botnet.Helpers.SetAllSandboxieSettings()
io.write(Botnet.Helpers.GetAmountOfAvailableBots() .. "/" .. #Botnet.Accounts.LoginInformation .. ' Available')
io.write('\n'..Botnet.Controller.GetAmountOfRegisteredBots() .. ' Registered')
-- Now Args should be the rest of the Answer excluding the command
Args = {select(1, table.unpack(arg))}
RawCommand = Args[1]
print('\n'..RawCommand)
Botnet.Controller.ProcessGPlusQueue()
local cmd_table =
{
['connect'] = function ()
Botnet.Commands.Connect(Args)
end,
['prepare'] = function ()
Botnet.Commands.Prepare(Args)
end,
['unregister'] = function()
Botnet.Commands.Unregister(Args)
end,
['disconnect'] = function()
Botnet.Commands.Disconnect(Args)
end,
['data'] = function()
Botnet.Commands.Data(Args)
end,
['checkaccess'] = function()
Botnet.Commands.CheckAccess(Args)
end,
['sendcommand'] = function()
Botnet.Commands.SendCommandsToAll(Args)
end
}
if not cmd_table[RawCommand] then
print('\nThat\'s not a command.')
else
cmd_table[RawCommand]()
end