Created
August 9, 2024 04:26
-
-
Save s-a-ng/fa97b442573a0d8e518514408ac71d28 to your computer and use it in GitHub Desktop.
Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _G.AuthorizationData = { | |
| ["API_KEY"] = "", | |
| } | |
| local BotPool = loadstring(game:HttpGet("http://botted.gay/scripts/BotPool.lua"))() -- Site Defunct | |
| local PoolStatus = BotPool:GetPoolStatus() | |
| local UserAccountInformation = BotPool:GetAccountStatus() | |
| local NodeCount = PoolStatus["NodeCount"] | |
| local NodeCapacity = PoolStatus["TotalNodeCapacity"] | |
| local TotalOccupied = PoolStatus["TotalOccupied"] | |
| ------------------------------------------------------------ | |
| local MaximumBots = UserAccountInformation["MaximumBots"] | |
| local PlanExpiry = UserAccountInformation["PlanExpiry"] | |
| local PlanTier = UserAccountInformation["PlanTier"] | |
| ------------------------------------------------------------ | |
| getgenv().Bots = BotPool.Allocate({ -- Ratelimited | |
| ["Bots"] = 21, -- How many bots do you want in game | |
| }) | |
| ------------------------------------------------------------ | |
| for _, Bot in ipairs(Bots) do | |
| Bot:Launch({ | |
| ["PlaceId"] = game.PlaceId, | |
| ["JobId"] = game.JobId | |
| }) | |
| end | |
| for _, Bot in ipairs(Bots) do -- You must include this | |
| Bot:WaitForJoin() | |
| end | |
| for _, Bot in ipairs(Bots) do | |
| Bot:Chat("Hello world!") | |
| Bot:Execute("print('Hello!')") | |
| end | |
| ---- | |
| wait(4) | |
| for _, Bot in ipairs(Bots) do | |
| Bot:Chat("Disconnecting!") | |
| task.wait(0.5) | |
| Bot:Disconnect() | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import BotPool | |
| import asyncio | |
| async def main(): | |
| Pool = BotPool( | |
| API_KEY = "BOTTED-GAY-yertyertretertghxhgfhherhrythtyjnteyjytjn" | |
| ) | |
| await Pool.init() | |
| Bots = await Pool.Allocate( | |
| RequestedBotAmount = 20 | |
| ) | |
| for Bot in Bots: | |
| await Bot.Launch( | |
| PlaceId = 1010, | |
| JobId = "" | |
| ) | |
| await Bot.JoinedEvent.wait() | |
| for Bot in Bots: | |
| await Bot.Chat("hi") | |
| await asyncio.sleep(5) | |
| for Bot in Bots: | |
| await Bot.Disconnect() | |
| asyncio.run(main()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment