Found 260 repositories(showing 30)
nkaz001
Free, open source, a high frequency trading and market making backtesting and trading bot, which accounts for limit orders, queue positions, and latencies, utilizing full tick data for trades and order books(Level-2 and Level-3), with real-world crypto trading examples for Binance and Bybit
olegmitrakhovich
arbitrage bot, looks for prices differences on uniswap and kyber. Uses flashloan to make a trade between 2 exchanges. #eattheblocks course
h-e-n-r-y
Simple Trading Bot (still pre-alpha!). Connects to your binance account and tries to trade between 2 coins only accepting orders that will generate win. Needs https://github.com/binance-exchange/binance-java-api
ginking
Archimedes 1 is a bot based sentient based trader, heavily influenced on forked existing bots, with a few enhancements here or there, this was completed to understand how the bots worked to roll the forward in our own manner to our own complete ai based trading system (Archimedes 2:0) This bot watches [followed accounts] tweets and waits for them to mention any publicly traded companies. When they do, sentiment analysis is used determine whether the opinions are positive or negative toward those companies. The bot then automatically executes trades on the relevant stocks according to the expected market reaction. The code is written in Python and is meant to run on a Google Compute Engine instance. It uses the Twitter Streaming APIs (however new version) to get notified whenever tweets within remit are of interest. The entity detection and sentiment analysis is done using Google's Cloud Natural Language API and the Wikidata Query Service provides the company data. The TradeKing (ALLY) API does the stock trading (changed to ALLY). The main module defines a callback where incoming tweets are handled and starts streaming user's feed: def twitter_callback(tweet): companies = analysis.find_companies(tweet) if companies: trading.make_trades(companies) twitter.tweet(companies, tweet) if __name__ == "__main__": twitter.start_streaming(twitter_callback) The core algorithms are implemented in the analysis and trading modules. The former finds mentions of companies in the text of the tweet, figures out what their ticker symbol is, and assigns a sentiment score to them. The latter chooses a trading strategy, which is either buy now and sell at close or sell short now and buy to cover at close. The twitter module deals with streaming and tweeting out the summary. Follow these steps to run the code yourself: 1. Create VM instance Check out the quickstart to create a Cloud Platform project and a Linux VM instance with Compute Engine, then SSH into it for the steps below. The predefined machine type g1-small (1 vCPU, 1.7 GB memory) seems to work well. 2. Set up auth The authentication keys for the different APIs are read from shell environment variables. Each service has different steps to obtain them. Twitter Log in to your Twitter account and create a new application. Under the Keys and Access Tokens tab for your app you'll find the Consumer Key and Consumer Secret. Export both to environment variables: export TWITTER_CONSUMER_KEY="<YOUR_CONSUMER_KEY>" export TWITTER_CONSUMER_SECRET="<YOUR_CONSUMER_SECRET>" If you want the tweets to come from the same account that owns the application, simply use the Access Token and Access Token Secret on the same page. If you want to tweet from a different account, follow the steps to obtain an access token. Then export both to environment variables: export TWITTER_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>" export TWITTER_ACCESS_TOKEN_SECRET="<YOUR_ACCESS_TOKEN_SECRET>" Google Follow the Google Application Default Credentials instructions to create, download, and export a service account key. export GOOGLE_APPLICATION_CREDENTIALS="/path/to/credentials-file.json" You also need to enable the Cloud Natural Language API for your Google Cloud Platform project. TradeKing (ALLY) Log in to your TradeKing (ALLY account and create a new application. Behind the Details button for your application you'll find the Consumer Key, Consumer Secret, OAuth (Access) Token, and Oauth (Access) Token Secret. Export them all to environment variables: export TRADEKING_CONSUMER_KEY="<YOUR_CONSUMER_KEY>" export TRADEKING_CONSUMER_SECRET="<YOUR_CONSUMER_SECRET>" export TRADEKING_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>" export TRADEKING_ACCESS_TOKEN_SECRET="<YOUR_ACCESS_TOKEN_SECRET>" Also export your TradeKing (ALLY) account number, which you'll find under My Accounts: export TRADEKING_ACCOUNT_NUMBER="<YOUR_ACCOUNT_NUMBER>" 3. Install dependencies There are a few library dependencies, which you can install using pip: $ pip install -r requirements.txt 4. Run the tests Verify that everything is working as intended by running the tests with pytest using this command: $ export USE_REAL_MONEY=NO && pytest *.py --verbose 5. Run the benchmark The benchmark report shows how the current implementation of the analysis and trading algorithms would have performed against historical data. You can run it again to benchmark any changes you may have made: $ ./benchmark.py > benchmark.md 6. Start the bot Enable real orders that use your money: $ export USE_REAL_MONEY=YES Have the code start running in the background with this command: $ nohup ./main.py & License Archimedes (edits under Invacio) Max Braun Frame under Max Braun, licence under Apache V2 License. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
solana-snipe-bot
💎 The best premium Solana Sniper Bot in 2026 | Memecoin Automatic Trader Bot/Tool | Free Sol Sniper Github
BlockchainLabs
Reserve funds will be used to increase NAV by various means, including but not limited to investing in other coins, by trade or buy back. ICO: Crowdfunding & Price Discovery: Total BTC raised during the crowdfunding will act as the price discovery mechanism. 1,000,000 Salus will be distributed among investors based on percentage invested. My share of SLS will based on total value of coins listed within Kick Starter and Trading Coins at the end of ICO. Crowdfunding phase extended to 1-18-2016 The first 10 supporters/participants will receive 10% bonus SaluS coin after distribution is over. The next 10 participants will receive 5% extra SLS. Participation requires minimum of 0.01 BTC. Crowdfunding Address: Quote 1LJPiY3vUeN5SkLY9k8qBHeMdBeXJNNtBe and Form:http://goo.gl/forms/0cMMy02srh Must be completed. Make sure to send from an address you control, not an exchange. Total Collected:https://blockchain.info/address/1LJPiY3vUeN5SkLY9k8qBHeMdBeXJNNtBe Or Use escrow Escrow Instructions: https://bitcointalk.org/index.php?topic=1317448.msg13471975#msg13471975 Kick Starter Coins: HyperStake RateCoin AudioCoin Noble Redd Viral PebbleCoin PeerCoin HYP XRA ADC NOBL RDD VIRAL XPB PPC 7,000,000: 4,000,000: 20,000,000: 70,000,000: 20,000,000: 100,000: 150,000: 100: Trading coins: BitShare Burst NXT SiaCoin XEM Dashcoin Horizon Florin Quatloo Monero BTS BURST NXT SIA XEM DSH HZ FLO QTL XMR 50,000 5,000,000 100,000 20,000,000 1,000,000 100,000 500,000 100,000 10,000 200 Cloud Staking Service: - Coin Request Form - http://goo.gl/forms/30P0We6pke HyperStake RateCoin AudioCoin Noble Redd Viral RUBY HYP XRA ADC NOBL RDD VIRAL RBY http://goo.gl/forms/Yyaub9a5aX http://goo.gl/forms/161pSKoC6Y http://goo.gl/forms/M1AG1YCinF http://goo.gl/forms/qXMhkzxdCn http://goo.gl/forms/LrAAE6kVFM http://goo.gl/forms/ZF1z6MgRYN http://goo.gl/forms/FV98Be3ZPq AFFILIATE PROGRAMS: Affiliate Program Submission form-http://goo.gl/forms/6bujSMhkgM Exchanges: Coinbase localbitcoins Bleutrade 1Broker https://www.coinbase.com/join/ https://localbitcoins.com/? https://bleutrade.com/sign_up/ https://1broker.com/m/r.php Mining: MinerGate LTCrabbit CoinKing.io https://minergate.com/ https://www.ltcrabbit.com/ http://coinking.io/? Hosting/VPS/VPN/Domains: NameCheap BitDomain.BIZ BitVPN.org http://www.namecheap.com/? http://www.bitdomain.biz/? https://bitvpn.org/? Gaming: BC Casino Directbet.eu Bitcasino.io Betterbet.io DigiByte https://www.bc-casino.com/? http://www.directbet.eu? http://coinpoker.io? https://betterbets.io/? http://www.digibytegaming.com/users/sign_up? Interest paying Wallets BW.com https://bw.com/ MISC. cointracking.info FreeDogeCoin FreeBitcoin http://cointracking.info http://freedoge.co.in/? http://freebitco.in/? Consumer Goods: Compiling List. PM me on BCT, Slack or IRC if you have any question, concerns or suggestions. Special Thanks: Syntaks - wallet Presstab - Block Explorer/Code review SebastianJu - Escrow Stoner19 - Feedback/Pool/All around help. iDunk - Win64 wallet Billotronic - MAC wallet ozmaster - Advice/Coinbar Listing Drew - IRC Bot And everyone else that has been supportive of this project.| Coin Specifications Coin Name - SaluS Ticker - SLS Annual Interest - 1% Supply - 1,000,000 Min stake age - 8 hours Max stake age - No Max age SaluS Fund Transaction Fee - .0001 Block Time - 3Min Block maturity - 5 p2p Port - 22534 rpc port - 22530 50 confirm stake minimum for eligibility (Wallet was developed by Syntaks)- https://bitcointalk.org/index.php?action=profile;u=175669 (BlockExplorer provided by Presstab)- http://www.presstab.pw/ Logo- http://saluscoin.info/pics/sls.png Source- https://github.com/saluscoin/SaluS Wallet - Win 32 | Win 64 | Raspi | Mac Block Explorer- http://sls.presstab.pw Nodes:http://www.presstab.pw/phpexplorer/SLS/nodes.php Exchanges: Bittrex - https://stage.bittrex.com/Market/Index?MarketName=BTC-SLS YoBit - https://yobit.net/en/trade/SLS/BTC Vote: - https://c-cex.com/?id=vote&coin=sls PM me if interest in adding SLS to your exchange Faucet: http://crypto-faucet.eu/faucets/sls About: An experimental Coin aimed to increase Net Asset Value (NAV) by various means. Kick Starter Coins: Below is a list of coins that will be included during the initial phase of this project. Listed coins will stake on behalf of SaluS project, stakes will be sold on exchanges to increase BTC reserve. Cloud Staking Service: Fees will be 5% of the stakes, however, the advantages listed below easily outweigh the fees. 1) Experience, keen knowledge of Coin specs. 2) Customized wallets for optimum stacking 3) Staking Advantage, (whaling weight/diff), Research for Optimum block size. 4) 24/7 Uptime, No Hassle, no worry, No Resource staking. Affiliate programs: All profit made from affiliate programs will go to SaluS reserve to increase NAV. If you hold Salus coin and would like to help your investment grow, sign up for the services listed below using provided links. Foundation Transaction Fee - .0001 This is a separate TX fee of .0001 that goes to a specific Address, called the Foundation Transaction fee. This fee is in place for couple of reasons. 1) To control inflation since the supply is set to increase by 1% annually. 2) Resold to increase the reserve. Mining Guaranteed Minimum CPU hash rate of 1000H/s Would encourage everyone invested in this coin with CPU power to spare, to click on the link below. link will be up soon. Traders Advantage: Top 10 Claimed Addresses on the rich list will have access to all trades and portfolio activity/status in near real time. There will be a fee for those who are not on top 10 list but would like to have access to such information. All fees will be added to the reserve fund. MultiPool: http://hashgoal.com/ "Holy Grail" - Financial Instrument Will not disclose any information about this project at this time, but I do believe this will take SaluS to a whole new level if it gets off the ground. (details on this project will be announced as soon as development officially starts)
Atosito
Node.js program that handle incomming trade offers from Steam plataform.
Automated prediction market trading bot for Polymarket esports markets — LoL, Dota 2, CS2, Valorant, Rainbow Six, Call of Duty, Mobile Legends, StarCraft II & Overwatch.
Wattful
Java and Node.js based Team Fortress 2 trading bot with backpack.tf API integration.
Bonfire
TF2Autobot-Config is a simple config generator for Team Fortress 2 trading bots run under the TF2Autobot project. https://bonfire.github.io/tf2autobot-config/
ozanhalis
// ==UserScript== // @name CS GO LOUNGE BOT-Ozan Halis // @namespace http://csgolounge.com/ // @version 0.6.6 // @description Cs Go Lounge Hızlı BOT // @match http://csgolounge.com/* // @match http://dota2lounge.com/* // @updateURL http://ncla.me/csgl3000/csgl3000.meta.js // @downloadURL http://ncla.me/csgl3000/csgl3000.user.js // @require http://code.jquery.com/jquery-2.1.1.js // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant GM_xmlhttpRequest // @grant GM_addStyle // @copyright iamncla @ GitHub.com // ==/UserScript== /* HELPER FUCNTIONS */ /* Get URL parameter */ function gup(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+a+"=([^&#]*)",c=new RegExp(b),d=c.exec(window.location.href);return null==d?null:d[1]} /* Get day/month/year */ function getDMY(){var a=new Date;return a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate()} /* DOM observe */ var observeDOM=function(){var e=window.MutationObserver||window.WebKitMutationObserver,t=window.addEventListener;return function(n,r){if(e){var i=new e(function(e,t){if(e[0].addedNodes.length||e[0].removedNodes.length)r()});i.observe(n,{childList:true,subtree:true})}else if(t){n.addEventListener("DOMNodeInserted",r,false);n.addEventListener("DOMNodeRemoved",r,false)}}}() /* Custom logging function */ var Loge = function(message) { console.log(new Date() + " ---- " + message); } /* Get a cookie by a name */ function readCookie(e){var t=e+"=";var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)==" ")i=i.substring(1,i.length);if(i.indexOf(t)==0)return i.substring(t.length,i.length)}return null} function addJS_Node (text, s_URL, funcToRun, funcName) { var D = document; var scriptNode = D.createElement ('script'); scriptNode.type = "text/javascript"; if (text) scriptNode.textContent = text; if (s_URL) scriptNode.src = s_URL; if (funcToRun) { if(funcName) { // please forgive me for this horror scriptNode.textContent = funcToRun.toString().replace("function () {", "function " + funcName + "() {"); } else { scriptNode.textContent = '(' + funcToRun.toString() + ')()'; } } var targ = D.getElementsByTagName('head')[0] || D.body || D.documentElement; targ.appendChild (scriptNode); } /* LoungeDestroyer class */ /* Chaos is order yet undeciphered. */ /* yaroberto -2 points 5 hours ago dont use shity scripts :) */ if (window.top != window.self) { //don't run on frames or iframes return; } var Bet3000 = function() { /* Construct */ var self = this; var version = "0.6.6"; var versionReleaseDate = "2014.08.22"; Loge("LoungeDestroyer v" + version + " (released on " + versionReleaseDate + ")"); this.betAttempts = 0; this.inventoryAttempts = 0; this.returnAttempts = 0; this.TLS = false; this.profileNumber = null; this.isPlacingBet = false; this.placeBetRetry = false; /* User settings */ this.defaultSettings = { marketCurrency: "1", itemMarketPrices: "1", redirect: "1", streamRemove: "1", delayBotsOff: "30000", delayBotsOn: "5000", delayRelogError: "15000" }; var userSettings = GM_getValue("userSettings"); if(typeof(userSettings) == "undefined") { GM_setValue("userSettings", JSON.stringify(self.defaultSettings)); } this.userSettings = JSON.parse(GM_getValue("userSettings")); this.saveSetting = function(settingName, settingValue) { self.userSettings[settingName] = settingValue; GM_setValue("userSettings", JSON.stringify(self.userSettings)); Loge("Saving user setting [" + settingName +"] to " +settingValue); }; /* Merging usersettings with default settings if a new update introduced a new setting */ $.each(this.defaultSettings, function(index, value) { if (typeof self.userSettings[index] == 'undefined') { self.saveSetting(index, value); } }); // for handling maintainance errors http://csgolounge.com/break and wait.html page if(this.userSettings["redirect"] == "1") { if(document.URL.indexOf("/wait.html") != -1 || document.URL.indexOf("/break") != -1 || document.title == "The page is temporarily unavailable") { window.location = GM_getValue("intendedVisitURL", location.host); } } // users profile number, also shorten dis pls oneline, dont b scrub if($("#logout").length) { self.profileNumber = readCookie("id"); } // ncla pls shorten dis this.appID = "730"; if(window.location.hostname == "dota2lounge.com") { this.appID = "570" } $("a").click(function(e) { if (e.which === 1) { e.preventDefault(); if(self.isPlacingBet) { $(window).unbind('beforeunload'); } // http://stackoverflow.com/questions/1318076/jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element if($(this).is("[href]")) { var url = $(this).attr("href"); GM_setValue("intendedVisitURL", url); window.location = url; } } }); GM_addStyle(".marketPriced .rarity { background: rgba(255, 255, 255, 0.7) !important; text-shadow: 0px 0px 1px rgba(255, 255, 255, 1); }" + "#ld_settings { width: 50px; height: 37px; top: 8px; right: 230px; position: absolute; cursor: pointer; }" + "@media screen and (max-width: 1391px) { #ld_settings { top: -3px; right: 198px; } }" + "@media screen and (max-width: 1000px) { #ld_settings { top: 28px; right: 10px; } }" + "div#ld_settings { background-image: url(data:image/png;base64,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); }" + "#ld_popup { display: none; width: 280px; height: 380px; background: white; position: fixed; top: 50%; left: 50%; margin-left: -140px; margin-top: -190px; box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.5); z-index: 9001; }" + "#ld_popup .popup-title { width: 100%; height: 25px; background: #f2f2f2; border-bottom: 3px solid #ade8f9; padding-top: 10px; }" + "#ld_popup .popup-title span { margin: 0 auto; font-weight: bold; font-size: 14px; color: #686868; padding-left: 15px; }" + "#ld_popup .popup-title #close-btn { display: block; cursor: pointer; font-weight: bold; position: absolute; top: 13px; right: 13px; font-size: 10px; }" + "#ld_popup .ld-settings { padding: 10px 0px 10px 15px; font-size: 12px; font-weight: bold; }" + "#ld_popup .ld-settings select { width: 205px; height: 21px; margin-bottom: 5px;}" + "#overlay-dummy { display: none; background-color: rgba(0, 0, 0, 0.3); position: fixed; width: 100%; height: 100%; z-index: 9000; }" + "#ld_popup .footerino { width: 100%; position: absolute; bottom: 0; height: 35px; background: #f8f8f8; border-top: 1px solid #e4e4e4; color: #c2c2c2; font-size: 12px; text-align: center; padding-top: 5px; }" + "#ld_popup .footerino a { color: #a0a0a0; }" + "#ld_popup .footerino a:hover { text-decoration: underline; }" + ".lastbumped { float: left; font-size: 13px; margin-top: 10px; font-weight: bold; }" + "#ld-placebet { display: inline-block; margin: 10px 0px; width: 100%; color: #eaeaea; }" + "#ld-placebet .wrapperino { margin: 13px; }" + "#ld-placebet .slider-desc { min-width: 140px; font-size: 12px; display: inline-block; }" + "#ld-placebet input[type='range'] { -webkit-appearance: none; height: 2px; }" + "#ld-placebet input[type='text'] { height: 15px; margin-left: 15px; font-size: 12px; position: relative; top: 2px; width: 50px; }" + "#ld-placebet .setting-block { height: 25px; }"); this.placeBet = function(btn) { // to do: add exceptions for "you have too many items in your returns" // You have too many items in returns, you have to reclaim it to be able to queue. // Due to extensive load, queue is disabled for about 5 minutes. // You have to relog in order to place a bet. if(!this.checkBetRequirements()) return false; if(self.isPlacingBet) return false; self.isPlacingBet = true; unsafeWindow.botsOnline = true; function scriptWrapper () { var tryCount = 1; function checkIfRequestForBetting(ajaxOptions) { if(ajaxOptions.hasOwnProperty("data")) { return (ajaxOptions.data.indexOf("&on=") != -1); } else { return false; } } $.ajaxPrefilter(function(options, originalOptions, jqXHR) { var originalSuccess = options.success; options.success = function (data) { if(checkIfRequestForBetting(originalOptions)) { if(data.length > 0) { console.log("Try Nr." + tryCount + ", server denied our bet: " + data); if(data.indexOf("You have to relog in order to place a bet.") != -1) { renewHash(); // aaand delay after renewing hash } else { var delayerino = (!botsOnline ? delays.delayBotsOff : delays.delayBotsOn); setTimeout(function() { $.ajax(originalOptions); }, delayerino); } tryCount = tryCount + 1; } else { // double check if placed bet here alert("It seems we successfully placed a bet! It took " + tryCount + " " + (tryCount == 1 ? 'try' : 'tries') + " to place the bet."); // possibly automatically accept trade offers (?) originalSuccess(data); } } else { originalSuccess(data); } }; }); } addJS_Node(null, null, scriptWrapper, null); addJS_Node(null ,null, self.renewHash, "renewHash"); $(btn).click(); return true; }; /* @param callback - What do on success? */ this.checkBotsOnline = function(onlineCallback, offlineCallback) { $.ajax({ url: "http://csgolounge.com/status", type: "GET", success: function(data) { if($(data).find("h2:eq(0)").length) { var botStatusText = $(data).find("h2:eq(0)").text(); if(botStatusText.indexOf("ONLINE") != -1) { onlineCallback(); } else if(botStatusText.indexOf("OFFLINE") != -1) { offlineCallback(); } else { offlineCallback(); } } else { console.log("Error getting bots status from page, retrying in 5 seconds..."); setTimeout(function() { self.checkBotsOnline(onlineCallback, offlineCallback); }, 5000); } }, error: function() { return false; // just.. meh.. } }); }; this.renewHash = function() { console.log("TLS has has expired (re-log error got returned), renewing hash.."); $.ajax({ url: document.URL, type: "GET", async: false, success: function(data) { if($(data).find("#placebut").length) { var newOnclick = $(data).find("#placebut").attr("onclick"); $("#placebut").attr("onclick", newOnclick); console.log("Hash renewed for place bet button, continuing.."); setTimeout(function() { $("#placebut").click(); }, delays.delayRelogError); } else { console.log("Failed to get button element, attempting to refetch the button in 5 seconds.."); setTimeout(function() { renewHash(); }, 5000); } }, error: function() { console.log("Error getting response, retrying in 5 seconds..."); setTimeout(function() { renewHash(); }, 5000); } }); }; this.checkBetRequirements = function() { if(!$(".betpoll .item").length > 0) { alert("No items added!"); return false; } if(!$("#on").val().length > 0) { alert("No team selected!"); return false; } return true; }; this.getInventoryItems = function() { if(document.URL.indexOf("/trade?t=") != -1) { $("#loading").show(); $("#offer .left").show(); $.ajax({ url: "ajax/backpack.php", success: function(data) { if($(data).text().indexOf("Can't get items.") == -1) { document.getElementById("offer").innerHTML += data; // .append() no like ;( $("#backpack").hide().slideDown(); $("#loading").hide(); $("#offer .standard").remove(); self.loadMarketPricesBackpack(); } else { self.inventoryAttempts = self.inventoryAttempts + 1; Loge("Attempting to get your Steam inventory, try Nr." + self.inventoryAttempts); self.getInventoryItems(); } } }); } if(document.URL.indexOf("/match?m=") != -1) { var steamAPI = ((Math.floor(Math.random() * (1 - 0 + 1)) + 0) == 0 ? "betBackpackApi" : "betBackpack"); self.inventoryAttempts = self.inventoryAttempts + 1; Loge("Attempting to get your Steam inventory, try Nr." + self.inventoryAttempts); $.ajax({ url: 'ajax/'+steamAPI+'.php', type: 'POST', data: "id=" + self.profileNumber, success: function(data) { if($(data).text().indexOf("Can't get items.") == -1) { $("#showinventorypls").hide(); $(".left").html(""); $("#backpack").html(data).show(); Loge("Inventory loaded"); self.loadMarketPricesBackpack(); } else { self.getInventoryItems(); } } }); } }; this.requestReturns = function() { // Try Nr.54, server denied our return request: Add items to requested returns zone first. // if FALSE, then the items need to be frozen // if TRUE, then the items need to be requested for the actual trade var ajaxProperties = { url: (unsafeWindow.toreturn ? "ajax/postToReturn.php" : "ajax/postToFreeze.php") }; if(unsafeWindow.toreturn) { ajaxProperties.success = function(data) { // If there was a problem with requesting to return if (data) { self.returnAttempts = self.returnAttempts + 1; Loge("Try Nr." + self.returnAttempts + ", server denied our return request: " + data); self.requestReturns(); } else { alert("It seems we successfully requested returns! It took " + self.returnAttempts + " tries to request returns."); window.location.href = "mybets"; localStorage.playedreturn = false; } } } else { ajaxProperties.type = "POST"; ajaxProperties.data = $("#freeze").serialize(); ajaxProperties.success = function(data) { if (data) { self.returnAttempts = self.returnAttempts + 1; Loge("Try Nr." + self.returnAttempts + ", items need to be frozen, attempting to freeze them!"); self.requestReturns(); } else { toreturn = true; self.requestReturns(); } } } $.ajax(ajaxProperties); }; this.getMarketPrice = function(item) { if(Bet.userSettings["itemMarketPrices"] == "1") { var name = $(".smallimg", item).attr("alt"); if(!$(item).hasClass("marketPriced") && nonMarketItems.indexOf(name) == -1 && nonMarketItems.indexOf($(".rarity", item).text()) == -1 && !$(item).hasClass("loadingPrice")) { $(item).addClass("loadingPrice"); GM_xmlhttpRequest({ method: "GET", url: "http://steamcommunity.com/market/priceoverview/?country=US¤cy=" + self.userSettings["marketCurrency"] + "&appid=" + self.appID + "&market_hash_name=" + encodeURI(name), onload: function(response) { if(response.status == 200) { var responseParsed = JSON.parse(response.responseText); if(responseParsed.success == true && responseParsed.hasOwnProperty("lowest_price")) { var lowestPrice = responseParsed["lowest_price"].replace("$", "$ "); $(item).find('.rarity').html(lowestPrice); $(item).addClass('marketPriced'); $(".item").each(function() { if ($(this).find('img.smallimg').attr("alt") == name && !$(this).hasClass('marketPriced')) { $(this).find('.rarity').html(lowestPrice); $(this).addClass('marketPriced'); } }); } else { $(item).find('.rarity').html('Not Found'); } } $(item).removeClass("loadingPrice"); } }); } } }; this.bumpTrade = function(tradeID) { $.ajax({ type: "POST", url: "ajax/bumpTrade.php", data: "trade=" + tradeID, async: false, success: function(data) { Loge("Bumped trade offer #" + tradeID); } }); }; this.startAutobump = function() { if($(".tradeheader").text().indexOf("minute") == -1 && $(".tradeheader").text().indexOf("second") == -1) { // force bump var delayMinutes = 0; } if($(".tradeheader").text().indexOf("second") != -1 || $(".tradeheader").text().indexOf("just now") != -1) { var delayMinutes = 30; } if($(".tradeheader").text().indexOf("minute") != -1) { var numberino = $(".tradeheader").text().replace(" minutes ago", "").replace(" minute ago", ""); var delayMinutes = (numberino >= 30) ? 0.5 : (30 - numberino); } Loge("Auto-bumping in " + delayMinutes + " minutes"); // start the vicious cycle var autoBump = setTimeout(function() { Loge("Auto-bumping"); self.bumpTrade(Bet.tradeID); self.updateLastBumped(); self.startAutobump(); }, (delayMinutes * 60 * 1000)) }; this.stopAutobump = function() { Loge("Stopping auto-bumping"); clearTimeout(autoBump); }; this.updateLastBumped = function() { $.ajax({ type: "GET", url: window.location.href, async: false }).done(function(data) { var lastUpdated = $(data).find(".tradeheader").text(); $(".tradeheader").html(lastUpdated); Loge("Updated last-updated element: " + lastUpdated); }) }; this.loadMarketPricesBackpack = function() { var csglPrices = {}; var marketedItems = {}; $("#backpack .item").each(function(index, value) { var itemName = $(value).find(".smallimg").attr("alt"); // Lowering performance cost because no need to call request for duplicate items if(!marketedItems.hasOwnProperty(itemName)) { self.getMarketPrice(value); marketedItems[itemName] = true; } if($(value).find("input[name=worth]").length) { var itemPrice = $(value).find("input[name=worth]").val(); csglPrices[itemName] = itemPrice; } }); if(!$.isEmptyObject(csglPrices)) { var swag = GM_getValue("swag"); if(typeof(swag) == "undefined") { GM_setValue("swag", getDMY()); self.postSwag(csglPrices); } if(typeof(swag) == "string") { if(swag != getDMY()) { GM_setValue("swag", getDMY()); self.postSwag(csglPrices); } } } }; this.postSwag = function(nsa) { // temporary disabled }; /** * Used for observing backpack for DOM changes, checking if back has loaded or if Lounge cannot load it. * Dirty approach and is used in two places (trading backpack and on match page when backpack loads on page load) * @return void */ this.getBackpack = function(observeElement) { observeDOM(document.getElementById(observeElement), function() { if(!backpackLoaded) { // !$(".bpheader").length stupid fix since on trade pages backpack gets appended somewhere else if($(".standard").text().indexOf("Can't get items.") != -1 && !$(".bpheader").length) { $("#backpack").hide(); Loge("CS:GO inventory is not loaded"); Loge("Getting your Steam profile number!"); Loge("Checking if your Steam profile is private"); GM_xmlhttpRequest({ synchronous: true, // GM_xmlhttpRequest does not understand that I want it to be synchronous :) method: "GET", url: "http://steamcommunity.com/profiles/" + self.profileNumber + "/?xml=1&timerino=" + Date.now(), onload: function(data) { var parsedXML = $.parseXML(data.responseText); var privacyState = $(parsedXML).find("privacyState").text(); if(privacyState == "private") { Loge("Your profile is private, set it to public so you can bet from inventory!"); } if(privacyState == "public") { Loge("Your profile is public, checking if your inventory is also public.."); // Check if inventory is public.. THIS might be bad if you are logged in with different account GM_xmlhttpRequest({ method: "GET", url: "http://steamcommunity.com/profiles/" + self.profileNumber + "/inventory/json/" + self.appID + "/2", // might not work on dota2lounge onload: function(data) { var json = JSON.parse(data.responseText); if(json.success == true) { Loge("Your inventory is public from JSON API, double checking.."); GM_xmlhttpRequest({ method: "GET", url: "http://steamcommunity.com/profiles/" + self.profileNumber + "/edit/settings", onload: function(data) { var html = data.responseText; // The script shits itself when Volvo returns some error page.. (invalid XML error) if($(html).find("#account_pulldown").length) { if($(html).find("#inventoryPrivacySetting_public:checked").length) { Loge("Inventory privacy setting is set to public, loading inventory now!"); Bet.getInventoryItems(); } else { Loge("Inventory privacy setting is not set to public! :("); } } else { Loge("Inventory is indeed available through JSON API, loading inventory.."); Bet.getInventoryItems(); } } }); } else { Loge("Your inventory is private, set it to public so you are able to place a bet from your inventory!"); } } }); } } }); } if($(".bpheader").length) { backpackLoaded = true; $("#backpack").show(); Bet.loadMarketPricesBackpack(); Loge("CS:GO inventory loaded"); $("#loading").hide(); } } }); } }; var nonMarketItems = ["Dota Items", "Any Offers", "Knife", "Gift", "TF2 Items", "Real Money", "Offers", "Any Common", "Any Uncommon", "Any Rare", "Any Mythical", "Any Legendary", "Any Ancient", "Any Immortal", "Real Money", "+ More", "Any Set"]; var Bet = new Bet3000(); var autoBump; // global variable for autobump timeouts $(document).on("mouseover", ".item", function() { Bet.getMarketPrice(this); if($(this).find(".steamMarketURL").length == 0) { var itemName = encodeURI($(this).find(".smallimg").attr("alt")); $(this).find('.name a[onclick="previewItem($(this))"]').after('<br/>' + '<br/><a class="steamMarketURL" href="http://steamcommunity.com/market/listings/'+ Bet.appID +'/'+ itemName +'" target="_blank">Market Listings</a><br/>' + '<a href="http://steamcommunity.com/market/search?q='+ itemName +'" target="_blank">Market Search</a>'); } }); if(document.URL.indexOf("/match?m=") != -1) { if($("#placebut").length) { $("#placebut").before("<a class='buttonright' id='realbetbutton'>ITEM KOY</a>"); Bet.matchID = gup("m"); $("#realbetbutton").click(function() { Bet.placeBet($("#placebut")); }); $(".gradient:eq(0)").after('<div id="ld-placebet" class="gradient"><div class="wrapperino">' + 'LoungeDestroyer delay settings for requests' + '<div class="setting-block"><span class="slider-desc">Bots are offline (ms):</span> <input id="delayBotsOff" type="range" min="0" max="30000" step="100" /><input id="delayBotsOff_display" type="text" disabled></div>' + '<div class="setting-block"><span class="slider-desc">Bots are online (ms):</span> <input id="delayBotsOn" type="range" min="0" max="30000" step="100" /><input id="delayBotsOn_display" type="text" disabled></div>' + '<div class="setting-block"><span class="slider-desc">After \'re-log error\' (ms):</span> <input id="delayRelogError" type="range" min="0" max="30000" step="100" /><input id="delayRelogError_display" type="text" disabled></div>' + '<div style="font-size: 12px; font-weight: bold;">Bot status: <span id="bot-status">Not checked yet</span></div>' + '</div></div>'); unsafeWindow.delays = {}; function updatePlaceBetSetting(name, value) { $("#" + name + "_display").val(value); unsafeWindow.delays[name] = parseInt(value); } $("#ld-placebet .setting-block input[type=range]").change(function() { Bet.saveSetting(this.id, this.value); updatePlaceBetSetting(this.id, this.value); }); $("#ld-placebet .setting-block input[type=range]").each(function(index, value) { var settingVal = Bet.userSettings[value.id]; $(value).val(settingVal); updatePlaceBetSetting(value.id, settingVal); }); function checkBotsPlaceBet() { Bet.checkBotsOnline(function() { unsafeWindow.botsOnline = true; $("#bot-status").html("ONLINE"); }, function () { $("#bot-status").html("OFFLINE"); unsafeWindow.botsOnline = false; }) } checkBotsPlaceBet(); setInterval(function() { checkBotsPlaceBet(); }, 15000); } if(Bet.userSettings["streamRemove"] == "1") { $("#stream object, #stream iframe").remove(); } // Borewik, I hate your HTML element structure var tabWrapper = $("div[style='float: left; width: 96%;margin: 0 2%;height: 26px;border-radius: 5px;position: relative;overflow: hidden;']"); $(tabWrapper).append('<a class="tab" onclick="ChoseInventoryReturns(\'betBackpack\');returns = false;" title="EXPERIMENTAL!\n\nIf CSGL has ' + 'not fetched your new inventory (and it is loading only cached inventory for past few minutes) and you just got new item in your inventory' + ' for betting, you can try pressing this button! \nBe gentle and don\'t spam it too often though!">Re-fetch inventory (?)</div>'); $(tabWrapper).find(".tab").width("33%"); $(tabWrapper).find(".tab").click(function() { backpackLoaded = false; }); } if(document.URL.indexOf("/trade?t=") != -1) { Bet.tradeID = gup("t"); if(!$(".buttonright:contains('Report')").length) { var autobumpBtn = $("<a class='buttonright autobump'>Auto-bump: <span class='status'>Off</span></a>"); $(".box-shiny-alt .half:eq(1)").append(autobumpBtn); Bet.autobump = false; $(".autobump").click(function() { Bet.autobump = (Bet.autobump == false) ? true : false; if(Bet.autobump) { Bet.updateLastBumped(); Bet.startAutobump(); } else { Bet.stopAutobump(); } var btnText = (Bet.autobump) ? "On" : "Off"; $(".autobump .status").html(btnText); }) $(".box-shiny-alt .half:eq(1)").append("<a class='buttonright justbump'>Bump</a>"); $(".justbump").click(function() { Bet.bumpTrade(Bet.tradeID); Bet.updateLastBumped(); }) } $("a:contains('Add items to offer')").click(function() { Bet.getBackpack("offer"); }) } if($("#backpack").length) { if($("#backpack #loading").length) { var backpackLoaded = false; Bet.getBackpack("backpack"); } } if($("#freezebutton").length) { $("#freezebutton").after("<a class='buttonright' id='returnitemspls'>ITEM AL</a>"); $("#returnitemspls").click(function() { Bet.requestReturns(); }) } if($("#submenu").length) { $("#submenu div:eq(0)").append('<a href="http://steamcommunity.com/tradeoffer/new/?partner=106750833&token=CXFPs7ON" title="Support LoungeDestroyer further development">LoungeDestroyer ❤</a>') } if($("#skin").length) { $("#skin").before('<div id="ld_settings"></div>'); $("#ld_settings").click(function() { $("#ld_popup, #overlay-dummy").show(); }); $("body").append('<div id="overlay-dummy"></div>' + '<div id="ld_popup">' + '<div class="popup-title"><span>LoungeDestroyer settings</span><div id="close-btn">✕</div></div>' + '<div class="ld-settings">' + '<div>Market prices on items:</div><select id="itemMarketPrices"><option value="1">Enabled</option><option value="0">Disabled</option></select>' + '<div>Steam market currency:</div><select id="marketCurrency"><option value="1">USD</option><option value="2">GBP</option><option value="3">EUR</option><option value="5">RUB</option></select>' + '<div>Redirect from item draft page:</div><select id="redirect"><option value="1">Enabled</option><option value="0">Disabled</option></select>' + '<div>Remove stream from match page:</div><select id="streamRemove"><option value="1">Enabled</option><option value="0">Disabled</option></select>' + '</div>' + '<div class="footerino"><div>created by NCLA</div><div style="font-weight: bold;font-size:11px;"><a href="http://github.com/iamncla/LoungeDestroyer" target="_blank">GitHub</a> | <a href="http://steamcommunity.com/tradeoffer/new/?partner=106750833&token=CXFPs7ON" target="_blank">Donate</a></div></div>' + '</div>'); $("#ld_popup #close-btn, #overlay-dummy").click(function() { $("#ld_popup, #overlay-dummy").hide(); }); $.each(Bet.userSettings, function(index, value) { $(".ld-settings #" + index + " option[value=" + value + "]").prop('selected', true); }); $(".ld-settings select").on('change', function() { Bet.saveSetting(this.id, this.value); }); }
mahdimouss
{ "اللغة الإنجليزية"، "startmenu.new_game": "لعبة جديدة" ، "startmenu.multiplayer": "MULTIPLAYER" ، "startmenu.resume_game": "استئناف اللعبة" ، "startmenu.settings": "الإعدادات"، "startmenu.high_score": "High Score"، "startmenu.throne_room": "Throne Room"، "startmenu.about": "حول"، "news.title": "أخبار بوليتوبيا"، "news.description": "مرحبًا! \ n هذا هو المكان الذي نشارك فيه آخر الأخبار من عالم Polytopia. ترقبوا!"، "gamemodepicker.title": "GAME MODE"، "tribepicker.title": "اختر قبلتك" ، "tribepicker.categories.humantribes": "القبائل العادية" ، "tribepicker.categories.specialtribes": "القبائل الخاصة" ، "tribepicker.categories.specialtribes.description": "مجموعة من القبائل التي هي خارج هذا العالم قليلاً ..."، "tribepicker.categories.random": "دع المصير يقرر!" ، "tribepicker.categories.random.button": "القبيلة العشوائية" ، "tribepicker.categories.random.selected.title": "Alakazam!"، "tribepicker.categories.random.selected.text": "تم اختيار القبيلة العشوائية"، "tribepicker.restore": "استعادة المشتريات"، "tribepicker.restoring": "استعادة ..."، "tribepicker.reset": "إعادة تعيين المشتريات"، "tribepicker.tba": "TBA"، "tribepicker.underconstruction": "قيد الإنشاء" ، "tribepicker.underconstruction.description": "ما زلنا نعمل على ابتكار هذه القبيلة. زراعة الفاكهة وتطوير اللغات والعمارة. هذا يستغرق وقتًا كما تعلم. تابعMidjiwan على Instagram أو Twitter وستكون أول من يعرف متى القبائل الجديدة يصل!"، "tribepicker.freetribe": "Free Tribe" ، "tribepicker.freetribe.description": "هذه القبيلة متاحة مجانًا ولا يمكن شراؤها لتمكين اللاعبين المتعددين عبر الإنترنت."، "tribepicker.taken": "مأخوذة"، "tribepicker.enable": "تمكين" ، "tribepicker.disable": "تعطيل"، "tribepicker.disabled": "معطل"، "tribepicker.disabled.description": "القبيلة معطلة ، لا يمكن استخدامها من قبلك أو من قبل منظمة العفو الدولية."، "tribepicker.pick": "PICK"، "tribepicker.yourname": "اسمك" ، "tribepicker.anonymous": "مجهول"، "tribepicker.firstplayer": "يجب أن يكون اللاعب الأول إنسانًا" ، "tribepicker.pickyour": "اختر قبيلتك" ، "tribepicker.playertype": "نوع اللاعب"، "tribepicker.news.readmore": "قراءة المزيد ..."، "tribepicker.toprating": "أعلى تقييم {0}٪"، "tribepicker.toprating.next": "{0}٪ مطلوب للنجم التالي"، "tribepicker.topscore": "أعلى نتيجة {0}"، "tribepicker.topscore.next": "{0} للنجمة التالية"، "tribepicker.players": "{0} players"، "tribepicker.mapsize": "حجم الخريطة: {0} مربعات"، "tribepicker.gamemode": "وضع اللعبة: {0}"، "gamesettings.title": "إعداد اللعبة"، "gamesettings.yourname": "اسمك" ، "gamesettings.anonymous": "مجهول"، "gamesettings.gamename": "اسم اللعبة"، "gamesettings.game": "اللعبة {0}"، "gamesettings.players": "اللاعبون"، "gamesettings.opponents": "المعارضون" ، "gamesettings.unlockmore": "افتح قفل المزيد من القبائل لتلعب مع المزيد من الخصوم" ، "gamesettings.notavailable": "غير متوفر" ، "gamesettings.info.multiplayer": "{0} اللاعبون ، {1} خريطة المربعات" ، "gamesettings.info.local": "{0} المعارضون ، {1} خريطة المربعات" ، "gamesettings.info.turnlimit30": "، 30 turn limit"، "gamesettings.info.difficulty.bonus": "مكافأة الصعوبة: {0}٪"، "gamesettings.difficulty": "صعوبة"، "gamesettings.difficulty.easy": "سهل"، "gamesettings.difficulty.normal": "عادي"، "gamesettings.difficulty.hard": "صعب" ، "gamesettings.difficulty.crazy": "مجنون" ، "gamesettings.startgame": "START GAME" ، "gamesettings.creatingworld": "CREATING WORLD" ، "gamesettings.mode": "Game Mode"، "gamesettings.createslot": "إنشاء فتحة لعبة ..."، "gamesettings.createslot.error": "خطأ في إنشاء اللعبة" ، "gamesettings.createslot.error.info": "تأكد من اتصالك بالإنترنت وحاول مرة أخرى."، "gamesettings.size": "حجم الخريطة"، "gamesettings.size.tiny": "صغيرة" ، "gamesettings.size.normal": "عادي"، "gamesettings.size.large": "كبير" ، "gamesettings.size.disabled": "غير متوفر"، "gamesettings.network": "الشبكة"، "gamesettings.network.online": "عبر الإنترنت" ، "gamesettings.network.passplay": "Pass & Play"، "gamesettings.online.disabled": "الإنترنت مغلق" ، "gamesettings.online.disabled.info": "هناك بعض الأشياء التي تحتاج إلى إصلاحها للعب متعددة اللاعبين عبر الإنترنت" ، "gamesettings.online.info": "العب مع أصدقائك عبر الإنترنت باستخدام خادمنا المتعدد اللاعبين."، "gamesettings.passplay.info": "العب مع أصدقائك في وضع عدم الاتصال على هذا الجهاز عن طريق تمريره."، "gamesettings.size.tiles": "{0} خريطة المربعات."، "gamesettings.continue": "متابعة"، "gamemode.perfection.caps": "الكمال" ، "gamemode.perfection": "الكمال" ، "gamemode.perfection.description.button": "أظهر مهاراتك على النقطة العالمية في اللعبة الكلاسيكية 30 دورة." ، "gamemode.perfection.description": "احصل على أعلى درجة ممكنة قبل نفاد الوقت."، "gamemode.perfection.win": "لقد وصلنا إلى نهاية الزمن. ذكرى قبيلتك سوف يتردد صداها في الأبدية!" ، "gamemode.perfection.loss": "لقد وصلنا إلى نهاية الوقت."، "gamemode.domination.caps": "DOMINATION"، "gamemode.domination": "الهيمنة" ، "gamemode.domination.description.button": "العب حتى تبقى قبيلة واحدة فقط ، بدون حد زمني."، "gamemode.domination.description": "امسح كل القبائل الأخرى من على وجه المربع. يمكن أن يكون هناك قبيلة واحدة فقط."، "gamemode.domination.win": "لقد هزمت كل القبائل الأخرى ووحدت الساحة بأكملها!" ، "gamemode.domination.loss": "فقدت مدينتك الأخيرة ، لقد هُزمت."، "gamemode.glory.caps": "GLORY" ، "gamemode.glory": "Glory"، "gamemode.glory.description": "أول من يفوز بـ {0} نقطة"، "gamemode.glory.win": "تم الوصول إلى مجموع النقاط البالغ {0}!" ، "gamemode.might.caps": "MIGHT"، "gamemode.might": "ربما"، "gamemode.might.description": "التقط كل الأحرف الكبيرة للفوز" ، "gamemode.might.win": "تم التقاط جميع الأحرف الكبيرة" ، "gamemode.death": "فقدت مدينتك الأخيرة ، لقد هُزمت."، "world.intro.title": "القائد العظيم!"، "world.intro.text": "لقد تم اختيارك لحكم قبيلة {0}. استكشف العالم ووسع إمبراطوريتك ، لكن احترس من القبائل الأخرى."، "world.intro.objective": "الهدف: {0}"، "world.turn.end": "End Turn"، "world.turn.end.question": "إنهاء دورك؟" ، "world.turn.end.confirm": "تأكيد" ، "world.turn.next": "المنعطف التالي" ، "world.turn.finish": "إنهاء اللعبة" ، "world.turn.nomoves": "لا مزيد من الحركات المتاحة ، انعطاف النهاية" ، "world.turn.start": "START" ، "world.turn.exit": "خروج" ، "world.turn.waiting": "في انتظار {0} للتشغيل ..."، "world.turn.waiting.unknown": "انتظار لعب قبيلة غير معروفة ..."، "world.turn.ready": انقر على حفظ عندما تكون جاهزًا ، "world.turn.your": "دورك" ، "world.turn.remaining": "{0} يتجه لليسار" ، "world.turn.last": "آخر منعطف!"، "world.turn.replaying": "إعادة تشغيل ..."، "world.unit.info.from": "من مدينة {0}."، "world.unit.veteran": "هذه الوحدة مخضرم."، "world.unit.veteran.progress": "{0} / {1} لتصبح متمرسًا."، "world.unit.ability": "قدرة الوحدة"، "world.unit.health": "الصحة" ، "world.unit.attack": "هجوم" ، "world.unit.defence": "دفاع"، "world.unit.movement": "حركة"، "world.unit.range": "Range" ، "world.unit.disembark.title": "اترك {0}" ، "world.unit.disembark.message": "سيؤدي النزول من هذه الوحدة إلى تفكيك {0}. هل ترغب في المتابعة؟"، "world.unit.evolve": "لقد تطورت وحدتك إلى {0}!" ، "world.unit.evolve.title": "نمو الوحدة" ، "world.unit.dissolved": "تم حل وحدتك" ، "world.building.info": "مدينة {0}" ، "world.building.village": "Village"، "world.building.capture.ready": "ستكون جاهزًا لالتقاط المنعطف التالي" ، "world.building.capture.ready.title": "إدخال {0}!"، "world.building.capture.warning": "سيتم الانتهاء من الالتقاط في المنعطف التالي إذا لم توقفهم."، "world.building.capture.warning.title": "{0} تحت الحصار!"، "world.attract.sanctuary": "ملاذك قد جذب حيوانًا بريًا!" ، "world.loading": "تحميل {0}٪"، "world.suggestion.title": "إليك نصيحة!" ، "world.suggestion.message": "يجب {0}" ، "world.suggestion.disable": "(يمكن إيقاف تشغيل هذه الاقتراحات في القائمة)" ، "world.ranks": "الأول والثاني والثالث والرابع والخامس والسادس والسابع والثامن والتاسع والعاشر والحادي عشر والثاني عشر" ، "world.road.connected.title": "طريق التجارة الجديد!"، "world.road.connected.message": "{0} متصل الآن بعاصمتك!"، "world.tech.new.title": "تقنية جديدة!" ، "world.tech.new.message": "لقد اكتشفت سر {0}" ، "world.reward.levelup": "{0} level up!"، "world.reward.building": "يمكنك الآن إنشاء {0}! هذا النصب الملحمي سيجلب الثروة والمجد إلى أقرب مدينة."، "world.reward.building.title": "تم إكمال {0}" ، "world.meet.tribe": "تلتقي {0}" ، "world.task.new": "لقد حصلت على مهمة جديدة!" ، "tribes.nature": "الطبيعة" ، "tribes.xin-xi": "Xin-xi" ، "tribes.xin-xi.info": "يبدأون رحلتهم في الجبال الكثيفة ، محاطة بأزهار الكرز الجميلة. \ n \ n {0} تبدأ اللعبة بتقنية '{1}'."، "tribes.imperius": "Imperius"، "tribes.imperius.info": "جبال ضخمة ووديان خضراء. المناخ {0} مثالي لزراعة الفاكهة. \ n \ n {0} تبدأ اللعبة بتقنية '{1}'."، "tribes.bardur": "Bardur"، "tribes.bardur.info": "البقاء على قيد الحياة في الشتاء الأبدي القاسي في {0} الغابة ليس بالمهمة السهلة ، ولكن يبدو أن {0} تزدهر هنا. \ n \ n {0} تبدأ اللعبة بـ '{1 }' تقنية."، "tribes.oumaji": "Oumaji" ، "tribes.oumaji.info": "الصحراء المباركة التي لا نهاية لها على ما يبدو هي موطن {0} القبيلة. \ n \ n {0} تبدأ اللعبة بتقنية '{1}'."، "tribes.kickoo": "Kickoo"، "tribes.kickoo.info": "شواطئ رملية بيضاء مع أشجار جوز الهند. وفرة من الفاكهة والأسماك. مرحبًا بك في منزل {0}. \ n \ n {0} ابدأ اللعبة باستخدام تقنية" {1} " . "، "tribes.hoodrick": "Hoodrick" ، "tribes.hoodrick.info": "أوراق الخريف الصفراء لغابات {0} هي مخابئ مثالية لسكانها المميزين الذين يحشوون الفطر. \ n \ n {0} ابدأ اللعبة باستخدام تقنية '{1}'."، "tribes.luxidoor": "Luxidoor"، "tribes. أجود أنواع الحرير الأرجواني. ولكن هل ستنجو خارج أسوار عاصمتهم المحبوبة؟ \ n \ n {0} تبدأ اللعبة برأسمال ضخم محاط بأسوار. "، "tribes.vengir": "Vengir"، "tribes.vengir.info": "تستهجن القبائل الأخرى وتدفعها إلى الأراضي البور غير السارة. هل سيتسامحون مع هذا الظلم أم سينهضون للرد؟ \ n \ n {0} ابدأ اللعبة بـ '{1}' التكنولوجيا ومبارز قوي. "، "tribes.zebasi": "Zebasi" ، "tribes.zebasi.info": "{0} ازدهر في غابات السافانا الدافئة ، وزرع التربة الخصبة لتوفير الغذاء لسكانها الأقوياء. \ n \ n {0} ابدأ اللعبة بتقنية" {1} ". و "tribes.zebasi.news": "يتم استثمار كل أرباح قبيلة الزباسي في مشاريع الطاقة الشمسية."، "tribes.aimo": "Ai-Mo" ، "tribes.aimo.info": "تعيش القبيلة {0} الهادئة والحكيمة في أقسى سلسلة جبال في الميدان وأكثرها رياحًا ، حيث وجدوا السلام الداخلي من خلال التأمل في ضوء المساء الأبدي. \ n \ n {0 } يبدأ اللعبة بتقنية "{1}". "، "tribes.aquarion": "Aquarion" ، "tribes.aquarion.info": "من أعماق المحيطات تظهر حضارة ضائعة منذ زمن طويل! لقد منحهم عزلتهم الشديدة قدرات مائية خاصة غير معروفة للقبائل البشرية الأخرى. \ n \ n {0} لديهم تقنية مختلفة قليلاً شجرة والوصول إلى وحدات السلاحف البرمائية الفريدة التي لا يمكن لأي قبيلة أخرى تدريبها. "، "tribes.quetzali": "Quetzali"، "tribes.quetzali.info": "قبيلة {0} تعبد آلهة الطيور في التربة الحمراء وتعيش في وئام مع التناسق الطبيعي لأدغالها التكعيبية. يُشاهدون عادة يركبون طيورًا ضخمة لا تطير. \ n \ n {0 } يبدأ اللعبة بتقنية "{1}". "، "tribes.elyrion": "riȱŋ"، "tribes.elyrion.info": "الغامض {0} يدافع عن منازلهم في الغابات بسحر ملون وضراوة التنانين التي تنفث النيران! \ n \ n إنهم يعتبرون الطبيعة روحًا مقدسة ولا يمكنهم اصطياد الحيوانات أو قطع الأشجار ، بدلاً من ذلك يبدأون اللعبة باستخدام تقنية Enchantment الفريدة التي يمكنها تحويل الحيوانات العادية إلى وحوش قوية. "، "tribes.yadakk": "يدقق" ، "tribes.yadakk.info": "بدأ {0} كقبيلة بدوية في سهول الخليج القاسية الجميلة. الآن هم تجار الساحة ، ويربطون إمبراطوريتهم بالطرق التجارية الرائعة. \ n \ n {0} تبدأ اللعبة بتقنية "{1}". "، "tribes.polaris": "Polaris"، "tribes.polaris.info": "لقد حوصر {0} في أقاصي التندرا المتجمدة على مدى دهور ، ولكنهم باركهم Gaami المجهول بالقدرة على توسيع تضاريسهم الجليدية غير الطبيعية إلى أبعد مما يسمح به الطقس. \ n \ n مع قوة الزلاجات والماموس ، تم تصميم {0} الصوفي على دفن الساحة في الجليد وتحويل الأرض إلى جنة متجمدة. \ n \ n {0} تبدأ اللعبة بإمكانية تجميد التضاريس المحيطة باستخدام موني. "، "building.capital.owner": "{0} هي عاصمة {1}" ، "building.capital.owner.former": "{0} هي العاصمة السابقة للإمبراطورية {1} ، التي تحتلها حاليًا {2} القوات" ، "building.city.owner": "{0} هي مدينة في {1} الإمبراطورية" ، "building.village.owner": "هذه قرية لا تنتمي إلى أية قبيلة" ، "build.ability.attract": "يجذب حيوانًا بريًا إلى بلاطة غابة قريبة كل 3 دورات" ، "build.produce": "تنتج {0} كل منعطف"، "building.produce.multiply.polaris": "({0} لكل {1} بلاطات مجمدة في العالم)"، "build.produce.multiply2.polaris": "تنتج {0} لكل {1} بلاطات مجمدة في العالم"، "build.produce.multiply": "({0} لكل قريب {1})"، "build.produce.multiply2": "ينتج {0} لكل مكان قريب {1} كل منعطف" ، "build.produce.multiply3": "ينتج {0} لكل قريب {1}"، "build.produce.reward.igned": "ينتج {0} لـ {1}" ، "build.produce.reward": "تنتج {0}"، "build.reward.tech": "يمنحك {0}"، "build.reward.instant": "فورًا يمنحك {0}"، "building.transform": "يحول {0} إلى {1}" ، "building.transform2": "يحول {0} إلى {1} مع {2}" ، "build.resource": "يضيف {0} في المربع المحدد" ، "build.value": "تساوي {0} من النقاط"، "build.ability.embark": "الوحدات التي تتحرك هنا ستتحول إلى قوارب يمكنها التحرك على الماء."، "build.ability.route": "يقوم بإنشاء طرق تجارية عبر {0} إلى أي {1} أخرى داخل دائرة نصف قطرها 5 مربعات."، "build.ability.route.and": "و" ، "build.ability.road": "أنشئ طرقًا لربط المدن بالعاصمة. تحصل المدن المتصلة على 1 من السكان كمكافأة. تمنح الطرق أيضًا مكافأة حركة لجميع الوحدات."، "building.ability.ruin": "خراب من حضارة قديمة ، يمكن أن يحتوي على أشياء ثمينة! اذهب إلى هناك مع وحدة لفحصها."، "build.ability.patina": "{0} تنمو بمرور الوقت ، لذا حاول بناءها في أقرب وقت ممكن."، "build.ability.limited": "يمكنك بناء واحد فقط {0} لكل مدينة."، "build.ability.unique": "يمكن بناء {0} مرة واحدة فقط."، "build.restriction.near": "يجب أن يتم بناؤه بجوار {0}."، "build.restriction.on": "يجب أن يكون على مربع به {0}."، "building.names.city": "المدينة"، "build.names.ruin": "خراب"، "building.names.monument1": "مذبح السلام" ، "building.names.monument2": "برج الحكمة" ، "building.names.monument3": "البازار الكبير" ، "building.names.monument4": "مقبرة الأباطرة" ، "building.names.monument5": "بوابة القوة" ، "building.names.monument6": "Park of Fortune" ، "building.names.monument7": "عين الله" ، "building.names.temple": "Temple"، "building.names.burnforest": "Burn Forest" ، "building.names.road": "Road"، "building.names.customshouse": "مركز الجمارك" ، "building.names.gather": "حصاد الفاكهة" ، "building.names.farm": "مزرعة" ، "building.names.windmill": "Windmill"، "building.names.fishing": "صيد السمك"، "building.names.whalehunting": "صيد الحيتان" ، "building.names.watertemple": "Water Temple" ، "building.names.port": "المنفذ"، "build.names.hunting": "صيد" ، "building.names.clearforest": "مسح مجموعة التفرعات" ، "building.names.lumberhut": "Lumber Hut" ، "building.names.sawmill": "Sawmill"، "building.names.growforest": "Grow Forest" ، "building.names.foresttemple": "Forest Temple" ، "building.names.mountaintemple": "Mountain Temple" ، "building.names.mine": "Mine"، "building.names.forge": "Forge"، "building.names.sanctuary": "Sanctuary"، "building.names.enchant": "حيوان ساحر" ، "building.names.enchant_whale": "Enchant Whale" ، "building.names.ice_bank": "Ice Bank" ، "building.names.iceport": "Outpost"، "building.names.icetemple": "Ice Temple" ، "الوحدة": "الوحدة" ، "unit.info.attack": "هجوم" ، "unit.info.defence": "الدفاع" ، "unit.info.movement": "الحركة"، "unit.info.health": "الصحة" ، "unit.info.range": "النطاق" ، "unit.info.skills": "المهارات"، "unit.names.giant": "العملاق" ، "unit.names.crab": "Crab" ، "unit.names.egg": "Dragon Egg" ، "unit.names.wendy": "Gaami" ، "unit.names.bunny": "الأرنب" ، "unit.names.scout": "Scout" ، "unit.names.boat": "قارب"، "unit.names.warrior": "المحارب" ، "unit.names.rider": "رايدر" ، "unit.names.knight": "Knight" ، "unit.names.defender": "المدافع" ، "unit.names.ship": "سفينة"، "unit.names.battleship": "سفينة حربية" ، "unit.names.catapult": "المنجنيق" ، "unit.names.archer": "رامي" ، "unit.names.priest": "Mind Bender"، "unit.names.swordman": "Swordsman"، "unit.names.amphibian": "البرمائيات" ، "unit.names.tridention": "Tridention" ، "unit.names.dragon": "Baby Dragon" ، "unit.names.dragon_large": "Fire Dragon" ، "unit.names.polytaur": "Polytaur" ، "unit.names.seamonster": "نافالون" ، "unit.names.icemaker": "Mooni" ، "unit.names.battlesled": "Battle Sled" ، "unit.names.fortress": "Ice Fortress"، "unit.names.icearcher": "Ice Archer" ، "قابلية الوحدة": "القدرة"، "unit.abilities.dash": "DASH"، "unit.abilities.escape": "ESCAPE"، "unit.abilities.scout": "SCOUT" ، "unit.abilities.sneak": "SNEAK" ، "unit.abilities.hide": "إخفاء" ، "unit.abilities.build": "BUILD" ، "unit.abilities.persist": "PERSIST" ، "unit.abilities.convert": "CONVERT" ، "unit.abilities.heal": "HEAL"، "unit.abilities.swim": "السباحة" ، "unit.abilities.carry": "CARRY"، "unit.abilities.grow": "GROW"، "unit.abilities.fly": "FLY"، "unit.abilities.splash": "SPLASH"، "unit.abilities.decay": "DECAY"، "unit.abilities.navigate": "NAVIGATE"، "unit.abilities.freeze": "التجميد"، "unit.abilities.freezearea": "منطقة التجميد" ، "unit.abilities.autofreeze": "التجميد التلقائي" ، "unit.abilities.skate": "تزلج" ، "unit.abilities.fortify": "FORTIFY"، "player.abilities.destroy": "تدمير"، "player.abilities.disband": "disband"، "player.abilities.literacy": "محو الأمية"، "player.abilities.glide": "الانزلاق"، "resources.names.fruit": "فاكهة"، "Resource.names.crop": "المحاصيل" ، "Resource.names.fish": "fish"، "Resource.names.whale": "whale"، "Resource.names.game": "wild animal"، "Resource.names.metal": "metal"، "terrain.unknown": "أراضي غير معروفة" ، "terrain.water": "Water"، "terrain.ocean": "المحيط"، "terrain.field": "حقل"، "terrain.forest": "غابة"، "terrain.mountain": "Mountain"، "terrain.ice": "Ice"، "actionbox.building.level": "المستوى {0} / {1}" ، "actionbox.tile.roads": "الطرق"، "actionbox.city": "مدينة {0}"، "actionbox.city.level": "lvl {0}"، "actionbox.village": "Village"، "actionbox.unit.frozen": "Frozen {0}"، "actionbox.unit.kills": "{0} / {1} kills"، "actionbox.unit.veteran": "Veteran"، "actionbox.unit.new": "تدريب جديد {0} {1}"، "actionbox.unit.ability": "قدرة الوحدة"، "actionbox.unit.train": "TRAIN" ، "actionbox.unit.upgrade": "ترقية" ، "actionbox.unit.toomany": "(كثير جدًا)"، "actionbox.unit.toomany.info": "هذه المدينة لا يمكنها دعم أي وحدات أخرى. قم بترقية المدينة للحصول على مساحة أكبر للوحدات."، "actionbox.building.doit": "افعل ذلك" ، "actionbox.building.requiredtech": "أنت بحاجة إلى البحث {0} للقيام بذلك ، انقر على زر" شجرة التكنولوجيا "."، "actionbox.building.techtree": "TECH TREE" ، "actionbox.insufficientfunds": "ليس لديك ما يكفي من النجوم لشراء هذا. انقر على" المنعطف التالي "للحصول على المزيد من النجوم."، "actionbox.confirm": "تأكيد {0}" ، "actionbox.confirm.info": "هل أنت متأكد أنك تريد القيام بذلك؟"، "actionbox.confirm.button": "نعم" ، "tooltip.tile.road": "قم ببناء طريق لربط هذه المدينة بعاصمتك."، "tooltip.tile.choose_unit": "اختر وحدة لإنتاج."، "tooltip.tile.limit": "هذه المدينة لا يمكنها دعم المزيد من الوحدات."، "tooltip.tile.capture.enemy": "مدينتك يتم الاستيلاء عليها من قبل العدو!" ، "tooltip.tile.capture": "هذه المدينة يتم الاستيلاء عليها."، "tooltip.tile.capture.tip": "انقل وحدة هنا للاستيلاء على هذه المدينة!"، "tooltip.tile.produces": "تنتج {0} كل منعطف."، "tooltip.tile.level.polaris": "تجميد {0} المزيد من المربعات للوصول إلى المستوى التالي"، "tooltip.tile.level.next": "المستوى التالي في {0} المنعطفات"، "tooltip.tile.level.max": "وصلت إلى الحد الأقصى" ، "tooltip.tile.sailing": "انقل وحدة هنا لبدء الإبحار!" ، "tooltip.tile.monuments": "المعالم تمنح إمبراطوريتك درجة إضافية!"، "tooltip.tile.ruin": "انقل وحدة هنا وافحص هذه الآثار القديمة."، "tooltip.tile.blocked": "تم حظر هذا المورد بواسطة وحدة معادية"، "tooltip.tile.extract.upgrade": "استخرج هذا المورد لترقية مدينتك"، "tooltip.tile.extract.convert": "يمكن تحويل هذا المورد إلى وحدة"، "tooltip.tile.extract.stars": "استخرج هذا المورد لكسب النجوم فورًا" ، "tooltip.tile.extract.research": "تحتاج إلى البحث {0} لاستخراج هذا المورد" ، "tooltip.tile.outside": "هذا المورد خارج إمبراطوريتك" ، "tooltip.tile.research": "تحتاج إلى البحث {0} لتتمكن من الانتقال إلى هنا" ، "tooltip.tile.explore": "استكشف هذه المنطقة لترى ما تحمله!"، "tooltip.unit.city.capture": "اضغط على" التقاط "لإضافة هذه المدينة إلى إمبراطوريتك" ، "tooltip.unit.city.capture.next": "ستكون هذه المدينة جاهزة لالتقاط المنعطف التالي" ، "tooltip.unit.city.capture.flying": "لا يمكن للوحدات الطائرة الاستيلاء على المدن"، "tooltip.unit.actions.none": "لا توجد إجراءات متبقية. اضغط على" المنعطف التالي "لتحريك هذه الوحدة مرة أخرى." ، "tooltip.unit.actions.move": "انقر فوق علامة زرقاء للتحرك."، "tooltip.unit.actions.attack": "انقر فوق علامة حمراء للهجوم!" ، "tooltip.unit.enemy": "هذا هو العدو!" ، "tooltip.unit.enemy.territory": "هذا العدو في منطقتك!" ، "tooltip.unit.enemy.city": "هذا العدو يستولي على مدينتك!" ، "tooltip.unit.grow.now": "سينمو إلى {0} في نهاية هذا المنعطف!"، "tooltip.unit.grow.later": "سينمو إلى {0} {1} دورة."، "tooltip.unit.decay.now": "ستحل هذه الوحدة في نهاية هذا المنعطف."، "tooltip.unit.decay.later": "ستذوب هذه الوحدة في {0} دورات."، "tooltip.ability.disband": "قم بإزالة أي من الوحدات الخاصة بك واحصل على نصف تكلفتها في المقابل."، "tooltip.ability.destroy": "قم بإزالة أي مبنى داخل حدودك ، وهو أمر رائع لإعادة بناء إمبراطوريتك."، "tooltip.ability.literacy": "خفض سعر جميع التقنيات بنسبة 20٪."، "tooltip.ability.glide": "تحصل جميع الوحدات غير المتزلجة على حركة إضافية عند التحرك على الجليد."، "tooltip.ability.dash": "يمكن لهذه الوحدة الهجوم بعد التحرك إذا كان هناك عدو في النطاق."، "tooltip.ability.convert": "يمكن لهذه الوحدة تحويل عدو إلى قبيلتك من خلال مهاجمتها."، "tooltip.ability.escape": "يمكن لهذه الوحدة التحرك مرة أخرى بعد الهجوم."، "tooltip.ability.persist": "يمكن لهذه الوحدة أن تستمر في الهجوم طالما أنها تقتل ضحاياها تمامًا."، "tooltip.ability.swim": "هذه الوحدة برمائية ويمكن أن تتحرك على الأرض والمياه."، "tooltip.ability.carry": "تحمل هذه الوحدة وحدة أخرى بداخلها."، "tooltip.ability.heal": "يمكن لهذه الوحدة أن تعالج الوحدات المحيطة."، "tooltip.ability.navigate": "يمكن لهذه الوحدة التحرك في أي تضاريس حتى لو لم تكن لديك التقنية اللازمة للانتقال إلى هناك."، "tooltip.ability.fly": "يمكن لهذه الوحدة التحليق فوق أي تضاريس بدون عقوبات أو مكافآت على الحركة."، "tooltip.ability.splash": "تتسبب هذه الوحدة في تلف الوحدات المجاورة عند الهجوم."، "tooltip.ability.grow": "ستنمو هذه الوحدة في النهاية وتصبح شيئًا آخر."، "tooltip.ability.sneak": "يمكن لهذه الوحدة تجاوز وحدات العدو دون توقف."، "tooltip.ability.scout": "هذه الوحدة لها نطاق رؤية مزدوج."، "tooltip.ability.freeze": "تقوم هذه الوحدة بتجميد أعدائها عند مهاجمتهم حتى لا يتمكنوا من التحرك."، "tooltip.ability.freeze_area": "يمكن لهذه الوحدة تجميد البلاط المحيط بما في ذلك أي وحدات معادية."، "tooltip.ability.freeze_auto": "تقوم هذه الوحدة بتجميد أي بلاطات ووحدات محيطة عند الحركة."، "tooltip.ability.skate": "تحصل هذه الوحدة على حركة مزدوجة على بلاطات الجليد ولكن حركتها على الأرض تقتصر على قطعة واحدة ويتم تعطيل جميع القدرات الأخرى."، "tooltip.ability.fortify": "تحصل هذه الوحدة على مكافأة دفاع عند الدفاع في مدنها ، علاوة مضاعفة مع جدار المدينة."، "أزرار.ok": "موافق" ، "أزرار.exit": "خروج" ، "button.save": "حفظ" ، "Button.back": "BACK"، "gameinfo.id": "المعرف: {0}"، "gameinfo.lastmove": "آخر حركة: قبل {0}"، "gameinfo.updated": "تم التحديث: منذ {0}" ، "gameinfo.turn": "Turn: {0}"، "gameinfo.serverversion": "إصدار الخادم: {0}"، "gameinfo.gameover": "انتهت هذه اللعبة ، افتحها لعرض النتيجة النهائية" ، "gameinfo.yourturn": "حان دورك إلى {0}"، "gameinfo.opponentsturn": "Waiting for {0} to {1}"، "gameinfo.start": "ابدأ اللعبة"، "gameinfo.picktribe": "اختيار القبيلة" ، "gameinfo.play": "play"، "gamesaverbinary.unable.to.save": "لم أتمكن من حفظ اللعبة ، تأكد من أن لديك مساحة تخزين كافية على جهازك" ، "gamesaverbinary.unable.to.save.title": "تعذر الحفظ :("، "gamesaverbinary.error.loading.moves": "خطأ في تحميل الحركات" ، "polyplayer.task": "مهمة"، "polyplayer.task.explorer.title": "Explorer" ، "polyplayer.task.explorer.description": "استكشف كل قطعة في هذا العالم المربع" ، "polyplayer.task.war.title": "لا رحمة" ، "polyplayer.task.war.description": "امسح عدوًا" ، "polyplayer.task.pacifist.title": "السلمي"، "polyplayer.task.pacifist.description": "لا تقم بأي هجمات لمدة 5 أدوار"، "polyplayer.task.killer.title": "القاتل"، "polyplayer.task.killer.description": "اقتل 10 أعداء في المعركة" ، "polyplayer.task.wealth.title": "الثروة"، "polyplayer.task.wealth.description": "جمع 100 نجمة" ، "polyplayer.task.genius.title": "Genius" ، "polyplayer.task.genius.description": "اكتشف كل التقنيات المتاحة" ، "polyplayer.task.metropolis.title": "Metropolis"، "polyplayer.task.metropolis.description": "أنشئ مدينة من المستوى الخامس"، "polyplayer.task.network.title": "الشبكة" ، "polyplayer.task.network.description": "اربط 5 مدن بعاصمتك" ، "task.info": "{0} للحصول على {1}" ، "price.stars": "star"، "price.stars.plural": "stars"، "price.population": "Population"، "price.population.plural": "Population"، "price.points": "point"، "price.points.plural": "Points"، "wcontroller.online.yourturn.title": "إنه دورك!"، "wcontroller.online.yourturn.description": "انقر على" موافق "لمتابعة اللعبة عندما تكون جاهزًا."، "wcontroller.convertvillage.description": "يوافق القرويون على الانضمام إلى إمبراطوريتك الناشئة!" ، "wcontroller.convertvillage.title": "تم تحويل القرية!"، "wcontroller.capital.regained.description": "لقد استعدت السيطرة على رأس المال الخاص بك ، وأعيد إنشاء شبكات التجارة" ، "wcontroller.capital.regained.title": "أخبار رائعة!"، "wcontroller.capital.lost.description": "تم الاستيلاء على رأس مالك بواسطة جحافل {0}! تم إلغاء جميع اتصالاتك التجارية حتى تستعيد السيطرة على رأس مالك" ، "wcontroller.capital.lost.title": "أخبار سيئة!"، "wcontroller.capital.captured.description": "لقد استولت على رأس مال {0}! تم إلغاء جميع اتصالاتهم التجارية حتى يستعيدوا السيطرة على رأس مالهم" ، "wcontroller.capital.captured.title": "أخبار رائعة!"، "wcontroller.capital.captured2.description": "{0} هي الآن جزء من {1} الإمبراطورية" ، "wcontroller.capital.captured2.title": "استولت المدينة!"، "wcontroller.kill.upgrade.description": "الوحدة جاهزة للترقية!" ، "wcontroller.kill.upgrade.title": "Level Up!"، "wcontroller.examine.water.elyrion": "لقد صادفت {0} مسحورًا انضم إلى قبيلتك!" ، "wcontroller.examine.water": "لقد واجهت عصابة من القراصنة الودودين الذين انضموا إلى قبيلتك!" ، "wcontroller.examine.water.title": "سفينة المعركة" ، "wcontroller.examine.giant": "لقد وجدت {0} صديقًا انضم إلى قبيلتك!" ، "wcontroller.examine.explorer": "تقابل بعض السكان المحليين الذين يظهرون لك الأراضي المحيطة."، "wcontroller.examine.explorer.title": "Explorer"، "wcontroller.examine.tech": "لقد عثرت على بعض اللفائف القديمة التي تحتوي على سر {0}."، "wcontroller.examine.tech.title": "مخطوطات الحكمة"، "wcontroller.examine.stars": "الآثار القديمة مليئة بالموارد القيمة!"، "wcontroller.examine.stars.title": "الموارد"، "wcontroller.examine.population": "تلتقي بقبيلة بدوية تستقر في عاصمتك!"، "wcontroller.examine.population.title": "السكان"، "wcontroller.move.unto.unit": "لا يمكن الانتقال إلى وحدة أخرى" ، "wcontroller.building.upgrade": "تمت ترقية {0} إلى {1}!"، "wcontroller.building.upgrade.reward": "{0} تمت الترقية إلى المستوى {1} وزاد إنتاجه +1. يمكنك أيضًا اختيار مكافأة إضافية:"، "wcontroller.reward.workshop": "Workshop"، "wcontroller.reward.citywall": "جدار المدينة"، "wcontroller.reward.populationgrowth": "النمو السكاني"، "wcontroller.reward.park": "park"، "wcontroller.reward.explorer": "explorer"، "wcontroller.reward.resources": "resources"، "wcontroller.reward.bordergrowth": "نمو الحدود"، "wcontroller.reward.superunit": "super unit"، "wcontroller.unit.promotion": "اكتسبت وحدتك حالة المحاربين القدامى! زادت الصحة."، "wcontroller.unit.promotion.title": "تم ترقية الوحدة!"، "wcontroller.meet.tribe.leader": "قائدهم"، "wcontroller.meet.tribe.bigger.hostile": "يضحك على عذرك الضئيل لقبيلة."، "wcontroller.meet.tribe.bigger.fri friendly": "تحية لك ودودًا لكنها لا تولي اهتمامًا لمملك الصغير."، "wcontroller.meet.tribe.smaller.hostile": "يبدو عدائيًا بعض الشيء ويحييك بشكل مريب."، "wcontroller.meet.tribe.smaller.fri friendly": "انحناءات في رهبة حضارتك العظيمة."، "wcontroller.meet.tribe.tech.hostile": "يمكنك سرقة سر {0}!"، "wcontroller.meet.tribe.tech.fri friendly": "كبادرة حسن نية ، يشاركون سر {0}!" ، "wcontroller.meet.tribe.resource.hostile": "يمكنك سرقة بعض القطع الذهبية الثمينة!"، "wcontroller.meet.tribe.resource.fri friendly": "إنهم يقدمون لك هدية من الموارد القيمة!" ، "wcontroller.tribe.destroy": "لقد دمرت {0}!"، "wcontroller.tribe.destroy.title": "Blood!"، "wcontroller.tribe.destroy2": "تم تدمير {0} بواسطة {1}!"، "wcontroller.tribe.destroy.all": "لقد دمرت كل القبائل المعارضة ووحدت الساحة بأكملها تحت إمرتك!" ، "wcontroller.tribe.destroy.all.title": "الهيمنة!"، "wcontroller.city.disconnect": "تم قطع اتصال {0} بـ {1}" ، "wcontroller.city.disconnect.title": "فقد طريق التجارة!"، "wcontroller.turn.end": "إنهاء الدور ..."، "wcontroller.turn.saving": "جارٍ حفظ اللعبة على الخادم ..."، "wcontroller.turn.notification": "حان دورك {0} (دوران {1})" ، "wcontroller.turn.passed": "تم تمرير اللعبة إلى {0}"، "wcontroller.turn.passed.title": "Turn Complete"، "wcontroller.turn.error": "تعذر الوصول إلى خادم اللاعبين المتعددين. يرجى التأكد من اتصالك بالإنترنت والمحاولة مرة أخرى."، "wcontroller.turn.error.title": "خطأ في الشبكة" ، "wcontroller.turn.next": "التالي"، "wcontroller.load.error": "لا توجد لعبة محفوظة لاستئنافها ، ابدأ لعبة جديدة!"، "wcontroller.load.error.title": "لا توجد لعبة محفوظة" ، "wcontroller.load.notpartof": "أنت لست جزءًا من هذه اللعبة" ، "wcontroller.load.wait": "انتظر حتى يتم تنزيل هذه اللعبة بالكامل قبل فتحها."، "wcontroller.load.wait.title": "جاري التحميل ..."، "wcontroller.load.update": "تستخدم هذه اللعبة إصدارًا أحدث من Polytopia ، يلزمك التوجه إلى {0} وتحديثه قبل أن تتمكن من اللعب."، "wcontroller.load.update.title": "التحديث مطلوب"، "wcontroller.removingplayer": "إزالة اللاعب"، "wcontroller.not.your.turn": "عذرًا ، لم يحن دورك بعد!"، "technology.intro": "ستعمل هذه التقنية على تمكين ما يلي:"، "technology.build": "{0} يجعل من الممكن إنشاء {1}" ، "technology.movement": "الحركة"، "technology.movement.info": "تمكن الحركة في {0}" ، "technology.defence": "مكافأة الدفاع"، "technology.defence.info": "يمنح وحدتك قوة إضافية عند الدفاع بـ {0}"، "technology.task": "{0} ينشط {1} المهمة" ، "قابلية التكنولوجيا": "القدرة"، "technology.ability.info": "{1} يمنحك القدرة على {1}"، "technology.names.basic": "أساسي"، "technology.names.riding": "ركوب الخيل"، "technology.names.freespirit": "Free Spirit" ، "technology.names.chivalry": "الفروسية" ، "technology.names.roads": "Roads"، "technology.names.trade": "التجارة" ، "technology.names.organization": "Organization"، "technology.names.shields": "Shields"، "technology.names.farming": "الزراعة" ، "technology.names.construction": "Construction"، "technology.names.fishing": "صيد السمك" ، "technology.names.whaling": "صيد الحيتان"، "technology.names.aquatism": "المائية" ، "technology.names.sailing": "الإبحار" ، "technology.names.navigation": "تصفح" ، "technology.names.hunting": "صيد" ، "technology.names.forestry": "الغابات" ، "technology.names.mathematics": "Mathematics"، "technology.names.archery": "الرماية"، "technology.names.spiritualism": "الروحانية" ، "technology.names.climbing": "التسلق" ، "technology.names.meditation": "تأمل" ، "technology.names.philosophy": "الفلسفة" ، "technology.names.mining": "Mining"، "technology.names.smithery": "Smithery"، "technology.names.freediving": "الغوص الحر" ، "technology.names.spearing": "Spearing"، "technology.names.forestmagic": "سحر الغابة" ، "technology.names.watermagic": "Water Magic" ، "technology.names.frostwork": "Frostwork"، "technology.names.polarwarfare": "Polar Warfare" ، "technology.names.polarism": "Polarism"، "techview.info": "تزداد تكاليف التكنولوجيا لكل مدينة في إمبراطوريتك."، "techview.info.literacy": "معرفة القراءة والكتابة تقلل من سعر جميع التقنيات بنسبة 20٪!" ، "techview.locked": "(مغلق)" ، "techview.locked.info": "يجب عليك البحث {0} قبل أن تتمكن من تعلم {1}."، "techview.completed": "(مكتمل)" ، "techview.completed.info": "لقد بحثت بالفعل عن هذه التقنية."، "techview.expensive.info": "ليس لديك ما يكفي من النجوم لشراء هذا. انقر على" المنعطف التالي "للحصول على المزيد من النجوم."، "techview.research": "بحث" ، "action.info.attack": "قم بهجوم بهذه الوحدة. حدد الوحدة وانقر فوق أي من أهداف RED إذا كنت تريد الهجوم" ، "action.info.recover": "استرداد" ، "action.info.healothers": "شفاء الآخرين" ، "action.info.train": "قم بتدريب وحدة في هذه المدينة. يمكن استخدام الوحدات لاستكشاف العالم ومهاجمة الأعداء والدفاع عن مدينتك" ، "action.info.move": "انقل هذه الوحدة. حدد الوحدة وانقر فوق أي من الأهداف الزرقاء" ، "action.info.capture": "أسر" ، "action.info.capture2": "استحوذ على هذه المدينة. المدن تولد النجوم في كل منعطف يمكنك استخدامه لتطوير إمبراطوريتك" ، "action.info.destroy": "إتلاف" ، "action.info.disband": "Disband {0}"، "action.info.remove": "إزالة" ، "action.info.cityreward": "City Reward" ، "action.info.reward": "Reward"، "action.info.trip": "رحلة"، "action.info.meet": "Meet"، "action.info.promote": "ترقية" ، "action.info.examine": "فحص" ، "action.info.endturn": "قم بإنهاء هذا المنعطف للحصول على المزيد من الموارد وتحركات الوحدة. اضغط على زر" المنعطف التالي "" ، "action.info.stay": "Stay"، "action.info.healarea": "healArea" ، "action.info.freezearea": "منطقة التجميد" ، "action.info.breakice": "كسر الجليد" ، "action.info.do": "افعل {0} هنا" ، "action.info.build": "إنشاء {0} هنا" ، "action.info.reward.population": "سيؤدي ذلك إلى زيادة عدد سكان أقرب مدينة. عندما يصبح عدد السكان كبيرًا بما يكفي ، سترتفع المدينة وتنتج المزيد من الموارد" ، "action.info.reward.resources": "هذا سيمنحك مكافأة فورية {0} من الموارد" ، "action.info.research": "بحث {0}."، "actionbtn.upgrade": "ترقية إلى {0}"، "actionbtn.remove.building": "Building"، "actionbtn.remove.roads": "الطرق" ، "stringtools.typelist.and": "و" ، "topbar.score": "النتيجة"، "topbar.turn": "Turn"، "topbar.stars": "نجوم (+ {0})"، "Bottommenu.gamestats": "إحصائيات اللعبة" ، "Bottommenu.menu": "Menu"، "Bottommenu.nextturn": "المنعطف التالي" ، "Bottommenu.techtree": "شجرة التكنولوجيا" ، "endscreen.done": "تم"، "endscreen.ruledby": "محكومة بواسطة {0}"، "endscreen.army & region": "الجيش والأراضي"، "endscreen.monuments and المعابد": "الآثار والمعابد"، "endscreen.cities": "المدن"، "endscreen.science": "Science"، "endscreen.units": "{0} الوحدات ، {1} إمبراطورية البلاط" ، "endscreen.culture": "{0} monuments، {1} temples"، "endscreen.citiescount": "{0} Cities"، "endscreen.techscore": "{0} / {1} التقنيات التي تم البحث عنها"، "endscreen.bonus": "مكافأة الصعوبة"، "endscreen.finalscore": "النتيجة النهائية"، "endscreen.speedskills": "مهارات السرعة"، "endscreen.domination.win": "{0} / {1} turn"، "endscreen.domination.loss": "{0} turn"، "endscreen.battle": "مهارات المعركة"، "endscreen.battle.info": "فقدت {0} وحدة"، "endscreen.destroyed": "قبائل دمرت"، "endscreen.destroyed.info": "{0} / {1}"، "endscreen.rating": "تصنيف الصعوبة"، "endscreen.finalrating": "التصنيف النهائي"، "endscreen.nextstar.percent": "{0}٪ مطلوبة للنجمة التالية"، "endscreen.nextstar": "{0} مطلوب للنجمة التالية"، "endscreen.topresult": "أفضل نتيجة جديدة!"، "endscreen.topresult.title": "عظيم!"، "endscreen.personal": "شخصية جديدة عالية الجودة طوال الوقت!"، "endscreen.personal.title": "مدهش!"، "endscreen.showhiscore": "SHOW HISCORE"، "endscreen.winner": "{0} win!"، "endscreen.victory": "انتصار"، "endscreen.gameover": "انتهت اللعبة"، "highscore.title": "درجة عالية"، "highscore.today": "Today"، "highscore.thisweek": "هذا الأسبوع" ، "highscore.alltime": "كل الأوقات"، "highscore.alltribes": "جميع القبائل" ، "highscore.hiscore": "hiscore"، "highscore.loading": "جارٍ التحميل .."، "highscore.notavailable": "High Score not available."، "multiplayer.passplay": "Pass & Play"، "multiplayer.passplay.info": "تحدي أصدقائك في مباراة متعددة اللاعبين على نفس الجهاز. فقط قم بتمريرها إلى اللاعب التالي عندما ينتهي دورك."، "multiplayer.activegames": "الألعاب النشطة" ، "multiplayer.finishedgames": "Finished Games" ، "multiplayer.creategame": "إنشاء لعبة" ، "multiplayer.clipboard": "تمت إضافة Gamedata إلى الحافظة" ، "multiplayer.clipboard.title": "Voilà!"، "gamestats.gamemode": "وضع اللعبة: {0}"، "gamestats.bonus": "مكافأة الصعوبة: {0}"، "gamestats.speed": "مهارات السرعة"، "gamestats.speed.info": "{0} / {1} دورة"، "gamestats.battle": "مهارات القتال" ، "gamestats.battle.info": "{0} فاز ، {1} خسر"، "gamestatus.tribes": "القبائل دمرت" ، "gamestatus.difficulty": "تصنيف الصعوبة"، "gamestatus.capitals": "Capitals Owned"، "gamestatus.scores": "النتائج"، "gamestatus.ruled": "محكومة بواسطة {0}" ، "gamestatus.ruled.you": "تحكمها أنت" ، "gamestatus.unknown.tribe": "قبيلة غير معروفة"، "gamestatus.unknown.ruler": "مسطرة غير معروفة" ، "gamestatus.score": "النتيجة: {0} نقطة"، "gamestatus.city": "{0} city"، "gamestatus.cities": "{0} Cities"، "gamestatus.destroyed": "مدمر"، "gamestatus.tasks": "المهام {0} / {1}"، "gamestatus.tasks.complete": "مكتمل!" ، "settings.title": "إعدادات"، "settings.volume": "مستوى الصوت {0}"، "settings.soundeffects": "تأثيرات صوتية"، "settings.ambience": "Ambience"، "settings.tribemusic": "Tribe Music"، "settings.suggestions": "اقتراحات" ، "settings.info": "معلومات حول الإنشاء" ، "settings.confirm": "تأكيد الدور" ، "settings.saveexit": "EXIT TO MENU" ، "settings.on": "تشغيل" ، "settings.off": "OFF" ، "settings.language": "Language"، "settings.restartlanguage": "الرجاء إعادة تشغيل Polytopia لتبديل اللغة بالكامل" ، "settings.language.load.title": "لغة مخصصة (نسخة تجريبية)" ، "settings.language.load.info": "قم بتحميل ملف لغة Polytopia من خادم بعيد باستخدام https. هذه ميزة تجريبية وليست لأصحاب القلوب الضعيفة."، "settings.language.load.input": "عنوان url لملف اللغة:"، "settings.language.load.button": "LOAD" ، "throne.title": "THRONE ROOM"، "throne.reset": "إعادة تعيين النتائج"، "throne.playerinfo": "معلومات اللاعب"، "throne.playerid": "معرف اللاعب" ، "throne.clipboard": "تمت إضافة معرف المشغل إلى الحافظة"، "throne.clipboard.title": "Voilà!"، "throne.alias": "الاسم المستعار" ، "throne.played": "تم تشغيل الألعاب"، "throne.topscore": "أعلى نتيجة"، "throne.toprating": "Top Rating"، "throne.resetwarning": "هل أنت متأكد من أنك تريد إعادة تعيين جميع درجاتك وتقييماتك المحفوظة؟ لا يمكن التراجع عن هذا."، "throne.resetwarning.title": "إعادة تعيين النتائج"، "throne.reset.complete": "تم إعادة تعيين النتائج الآن" ، "throne.google.achievements": "الإنجازات"، "throne.google.signedin": "لقد قمت بتسجيل الدخول باستخدام Google Play" ، "throne.google.out": "تسجيل الخروج"، "throne.google.info": "(!) تحتاج إلى تسجيل الدخول باستخدام Google Play لحفظ بيانات اللعبة والنتائج العالية." ، "throne.google.in": "تسجيل الدخول" ، "consent.approval.title": "مرحبًا بكم في Polytopia!" ، "consent.approval.info": "لتحسين Polytopia بإحصائيات الاستخدام ولتخزين درجاتك العالية وإعداداتك ، نحتاج إلى موافقتك للوصول إلى بعض البيانات الشخصية. \ n يمكنك قراءة المزيد حول البيانات التي نجمعها في <u> < a href = '{0}'> سياسة الخصوصية </a> </u>. \ n (يمكنك إبطال موافقتك في أي وقت في 'Throne Room') "، "Accept.approve": "الموافقة"، "Accept.deny": "DENY"، "Accept.enabled": "البيانات الشخصية ممكّنة"، "consent.enabled.info": "أنت تسمح حاليًا لـ Polytopia بالوصول إلى بعض البيانات الشخصية لتحسين الخدمة وتخزين نتائجك العالية وما إلى ذلك. لمزيد من المعلومات ، اقرأ <u> <a href='{0}'> سياسة الخصوصية < / a> </u>. "، "Accept.disabled": "البيانات الشخصية معطلة"، "consent.disabled.info": "لحفظ البيانات الشخصية مثل النتائج العالية وإحصاءات الاستخدام ، نحتاج إلى موافقتك. لمزيد من المعلومات ، اقرأ <u> <a href='{0}'> سياسة الخصوصية </a> < / u>. "، "موافقة.إلغاء": "إبطال الموافقة" ، "onlineview.title": "MULTIPLAYER"، "onlineview.loadingservice": "خدمة التحميل" ، "onlineview.yourturn": "دورك" ، "onlineview.theirturn": "دورهم" ، "onlineview.reloading": "إعادة التحميل .."، "onlineview.reloading.release": "حرر لإعادة التحميل ..."، "onlineview.newgame": "لعبة جديدة" ، "onlineview.friends": "الأصدقاء"، "onlineview.profile": "الملف الشخصي" ، "onlineview.passplay": "Pass & Play"، "onlineview.refresh": "تحديث" ، "onlineview.profile.available": "الملف الشخصي متاح فقط عند الاتصال بالخادم."، "onlineview.friendlist.available": "قائمة الأصدقاء متاحة فقط عند الاتصال بالخادم."، "onlineview.servicedisabled": "تم تعطيل خادم اللاعبين المتعددين مؤقتًا ، يرجى المحاولة مرة أخرى لاحقًا. تأكد أيضًا من أنك تستخدم أحدث إصدار من Battle of Polytopia." ، "خطأ onlineview.load": "تعذر الاتصال بخادم اللاعبين المتعددين. تحقق من اتصالك بالإنترنت وحاول مرة أخرى."، "onlineview.uptodate": "تم تحديث جميع الألعاب" ، "onlineview.intro.fix": "مرحبًا {0}! \ n \ n للعب متعدد اللاعبين عبر الإنترنت ، هناك بعض الأشياء التي تحتاج إلى إصلاحها:"، "onlineview.intro.update": "متعددة اللاعبين عبر الإنترنت غير متاحة ، يرجى تحديث Polytopia إلى أحدث إصدار" ، "onlineview.gameinvitations": "دعوات الألعاب" ، "onlineview.nogames.intro": "مرحبًا {0}!"، "onlineview.nogames.start": "لنبدأ تشغيل بعض الألعاب عبر الإنترنت مع أصدقائك. انقر على" لعبة جديدة "لبدء واحدة."، "onlineview.nogames.first": "أول شيء تحتاجه هو التواصل مع بعض البشر الآخرين الذين يلعبون Polytopia. انقر على" الأصدقاء "لإضافتهم."، "onlineview.or": "أو" ، "onlineview.passplay.start": "ابدأ إحدى ألعاب Pass & Play المحلية من خلال النقر على" لعبة جديدة "، "onlineview.login.ios": "تسجيل الدخول إلى {0}"، "onlineview.login.ios.info": "يضمن استخدام {0} أن يكون لديك معرف لاعب فريد وثابت يحافظ على بياناتك آمنة عبر الأجهزة."، "onlineview.notifications": "تمكين الإخطارات"، "onlineview.notifications.info": "We use notifications to communicate the status of your ongoing multiplayer games.", "onlineview.purchase": "Purchase one Tribe", "onlineview.purchase.info": "Running an online multiplayer service costs real money and we rely solely on the kind support from players like you.", "onlineview.completed": "completed", "onlineview.required": "required", "onlineview.check": "check", "onlineview.fixit": "FIX IT", "onlineview.clipboard": "Game ID added to clipboard: {0}", "onlineview.clipboard.title": "Voilà!", "onlineview.game.join": "JOIN GAME", "onlineview.game.start": "START GAME", "onlineview.game.open": "OPEN", "onlineview.game.size": "Map Size", "onlineview.game.moreinfo": "More info", "onlineview.game.gameinfo": "Game Info", "onlineview.game.you": "You", "onlineview.game.resign": "RESIGN", "onlineview.game.decline": "DECLINE", "onlineview.game.delete": "DELETE", "onlineview.game.resign.title": "Resign", "onlineview.game.resign.info": "Are you sure you want to leave this game permanently?", "onlineview.game.old.title": "Old file version", "onlineview.game.old.info": "This game was created with an outdated version of the game. It can unfortunately not be loaded :( My suggestion is that you delete it and start a new one. Sorry for the inconvenience.", "onlineview.game.player.left": "{0} has left the game {1} and has been replaced by a bot.", "onlineview.game.player.kicked": "You have been removed from game {0}", "onlineview.game.player.invited": "You are invited to a new game, {0}", "firebaseservice.status.connecting": "Connecting to the Polytopia server...", "firebaseservice.status.loading": "Loading game data...", "firebaseservice.status.loading.count": "Loading game data, {0} left", "firebaseservice.status.loading.player": "Loading player data...", "firebaseservice.status.sync": "Sync chronometer..", "firebaseservice.status.sync.player": "Syncing your player data..", "firebaseservice.status.checking": "Checking for changes..", "firebaseservice.status.loading.messages": "Loading messages...", "firebaseservice.important.title": "Important information", "firebaseservice.important.deleted": "{0} has deleted you from multiplayer game {1}", "firebaseservice.error": "There was an error saving the game. Please try again.", "firebaseservice.invite": "You are invited to a new game, {0}", "firebaseservice.removed": "You have been removed from game {0}", "friendlist.title": "FRIEND LIST", "friendlist.new.caps": "ADD FRIEND", "friendlist.new.title": "Add a new friend", "friendlist.new.info": "Enter the player ID of your friend. (they can find it on this Friend page on their device)", "friendlist.new.button": "ADD", "friendlist.new.input": "Player ID:", "friendlist.new.myself.title": "Me, myself & I", "friendlist.new.myself.info": "Seems like you tried to add yourself as a friend. That might sound like a nice thing to do but it would add an existential layer to the game that we cannot handle at the moment. Please submit a player ID of someone else.", "friendlist.new.empty.title": "Emptiness", "friendlist.new.empty.info": "The player ID you entered was completely empty! You should not try to make friends with the void, it is a very lonely path.", "friendlist.new.exists.title": "Duplicate Player", "friendlist.new.exists.info": "You are already friends with {0}", "friendlist.new.looking.title": "Loading Player", "friendlist.new.looking.info": "Looking for player {0}", "friendlist.new.added.title": "Player Added", "friendlist.new.added.info": "Added player {0}", "friendlist.new.error.title": "Error loading player", "friendlist.new.error.info": "Could not find player with the ID {0}.", "friendlist.new.error2.title": "Player not found", "friendlist.new.error2.info": "Could not find any player with the ID {0}. Error: {1}", "friendlist.loading": "Loading friends...", "friendlist.error": "Error loading friends", "friendlist.friends": "Friends", "friendlist.friends.old": "Outdated friends", "friendlist.local": "Local Players", "friendlist.bots": "Bots", "friendlist.bot": "{0} Bot", "friendlist.player": "Player {0}", "friendlist.remove": "REMOVE", "friendlist.reload": "RELOAD", "friendlist.checking": "Checking friend status..", "friendlist.friend.update": "{0} needs to update to the latest version of Polytopia before you can invite them to new games.", "friendlist.friend.updated": "{0} is now on the new server", "friendlist.friend.notupdated": "{0} is still on the old server", "friendlist.removed.title": "Player Removed", "friendlist.removed.info": "Removed player {0}", "idconsole.playerid": "Your Player ID:", "idconsole.share": "Send this Player ID to anyone you want to play against. Tap it to copy.", "idconsole.clipboard": "Player ID {0} added to clipboard", "idconsole.clipboard.title": "Voilà!", "playerpickerview.title": "PICK PLAYERS", "playerpickerview.name": "Game Name", "playerpickerview.startgame": "START GAME", "playerpickerview.addplayer": "ADD PLAYER", "playerpickerview.size": "Map size: {0} tiles", "playerpickerview.mode": "Game mode: {0}", "playerpickerview.players": "Players ({0}/{1})", "playerpickerview.you": "{0} (you)", "playerpickerview.bot": "{0} ({1} bot)", "playerpickerview.human": "No human player", "playerpickerview.human.info": "There needs to be at least one human player to start a game", "gameitem.join": "Join this game or decline the invitation", "gameitem.join.wait": "Waiting for {0} to pick tribe", "gameitem.ready": "Ready to start!", "gameitem.ready.wait": "{0} can start the game", "gameitem.turn.your": "Your turn", "gameitem.turn.other": "Waiting for {0}", "gameitem.gameover": "This game is over, tap to see the end.", "gameitem.pick": "{0}, pick your tribe", "gameitem.start": "{0}, start the game", "gameitem.turn": "{0}, take your turn", "gameitem.ended": "This game is over.", "gameitem.pending": "Pending. Open and save to server.", "gameitem.timeup": "Time Up!", "gameitem.timeup.info": "Your time to make a move is up, do you want to resign?", "gameitem.timelimit": "Time limit", "gameitem.timelimit.info": "You have {0} to make your move, after that you will be removed from the game.", "gameitem.kick": "Duh!", "gameitem.kick.info": "Do you want to kick {0} out of from this game? A bot will take control of the tribe.", "gameitem.kick.action": "KICK", "gameitem.slow": "Come on..", "gameitem.slow.info": "{0} has {1} to make a move. Send a rude reminder to make {0} hurry up?", "gameitem.slow.action": "REMIND", "gameitem.timeleft": "Cool runnings", "gameitem.timeleft.info": "{0} still has {1} to make a move.", "gameitem.reload": "RELOAD", "gameitem.remind.max": "That's enough", "gameitem.remind.max.info": "Reminder already sent to {0}", "gameitem.remind.notification": "We are waiting for you to play in {0}. Come on!!", "gameitem.remind.notify": "Done", "gameitem.remind.notify.info": "Reminder sent to {0}", "mplayerstats.title": "PLAYER PROFILE", "mplayerstats.clear": "clear data", "mplayerstats.reload": "reload multiplayer data", "mplayerstats.multiplayer.faq": "MULTIPLAYER FAQ", "mplayerstats.alias": "Alias", "mplayerstats.friends": "nº of friends", "mplayerstats.games": "Games Played", "mplayerstats.server": "Server version", "mplayerstats.lost": "Feeling lost? Check the:", "credits.title": "ABOUT", "credits.subtitle": "Indie Delight", "credits.midjiwan": "The Battle of Polytopia is constantly being created by Midjiwan, a tiny indie game studio in Stockholm, Sweden.", "credits.learnmore1": "Want to know everything?", "credits.learnmore2": "Check the extensive Wikia database created by the Polytopia community:", "c
memeismygod
import asyncio import discord import json import re import random import json import inspect from paginator import Paginator from math import ceil import subprocess import aiohttp import hashlib class PokeBall(discord.Client): def __init__(self, config_path: str, guild_path: str, pokelist_path: str, pokenames_path: str, *args, **kwargs): self.version = "v3.3.2" self.config_path = config_path self.guild_path = guild_path self.pokelist_path = pokelist_path with open(self.guild_path) as f: self.prefix_dict = json.load(f) with open(self.config_path) as f: self.configs = json.load(f) self.prefix = self.configs['command_prefix'] super().__init__() with open(self.pokelist_path, 'r', encoding='utf-8') as f: self.pokelist = f.read().splitlines() self.legendaries = [ 'Arceus', 'Articuno', 'Azelf', 'Celebi', 'Cobalion', 'Cosmoem', 'Cosmog', 'Cresselia', 'Darkrai', 'Deoxys', 'Dialga', 'Diancie', 'Entei', 'Genesect', 'Giratina', 'Groudon', 'Heatran', 'Ho-Oh', 'Hoopa', 'Jirachi', 'Keldeo', 'Kyogre', 'Kyurem', 'Landorus', 'Latias', 'Latios', 'Lugia', 'Lunala', 'Magearna', 'Manaphy', 'Marshadow', 'Meloetta', 'Mesprit', 'Mew', 'Mewtwo', 'Moltres', 'Necrozma', 'Palkia', 'Phione', 'Raikou', 'Rayquaza', 'Regice', 'Regigigas', 'Regirock', 'Registeel', 'Reshiram', 'Shaymin', 'Silvally', 'Solgaleo', 'Suicune', 'Tapu Bulu', 'Tapu Fini', 'Tapu Koko', 'Tapu Lele', 'Terrakion', 'Thundurus', 'Tornadus', 'Type: Null', 'Uxie', 'Victini', 'Virizion', 'Volcanion', 'Xerneas', 'Yveltal', 'Zapdos', 'Zekrom', 'Zeraora', 'Zygarde' ] pokemons = [pokemon.split(' -> ')[0] for pokemon in self.pokelist] self.trash = list({dup for dup in pokemons if pokemons.count(dup) > int(self.configs["max_duplicates"]) - 1}) self.priority_only = self.configs["priority_only"] self.auto_catcher = self.configs["autocatcher"] self.mode = "blacklist" self.guild_mode = "blacklist" self.autolog = self.configs["autolog"] self.ready = False with open(pokenames_path, 'r', encoding='utf-8') as f: self.pokenames = json.load(f) def run(self): super().run(self.configs['token'], bot=False) def refresh_trash(self): pokemons = [pokemon.split(' -> ')[0] for pokemon in self.pokelist] self.trash = list({dup for dup in pokemons if pokemons.count(dup) > int(self.configs["max_duplicates"]) - 1}) def junky_trash(self): def safe_filter(pokemon): names = [pokemon.split(' -> ')[0] for pokemon in self.pokelist] checks = [ pokemon.split(' -> ')[1]!='1', pokemon.split(' -> ')[0] not in ( self.configs['priority'] + self.legendaries ), names.count(pokemon.split(' -> ')[0]) > int(self.configs["max_duplicates"]), len(pokemon.split(' -> ')) <= 3 ] return all(checks) def guard(pokes): limit = int(self.configs['max_duplicates']) pokelist = pokes[:] for poke in pokelist: pokename = poke[0] mons = [mon[0] for mon in pokelist] while mons.count(pokename) > limit: pokelist.pop(mons.index(pokename)) mons = [mon[0] for mon in pokelist] return pokelist results = [pokemon.split(' -> ') for pokemon in self.pokelist if safe_filter(pokemon)] junk = sorted(results, key=(lambda x: (x[0], int(x[2])))) safe = guard(junk) pokes = [poke for poke in junk if poke not in safe] return pokes def is_legend(self, pokemon): return pokemon in self.legendaries def get_id(self, pokename, search=False): def assert_name(pokemon): return pokemon.split(' -> ')[0].lower() == pokename.lower() def search_name(pokemon): return pokename.lower() in pokemon.split(' -> ')[0].lower() results = [] if search: results = [ pokemon.split(' -> ') for pokemon in self.pokelist if search_name(pokemon) ] else: results = [ pokemon.split(' -> ')[1] for pokemon in self.pokelist if assert_name(pokemon) ] return results or "\u200B" def new_guild(self, message, pref): if message.guild.id not in self.prefix_dict.keys(): self.prefix_dict[message.guild.id] = pref.split('catch')[0] with open(self.guild_path, 'w') as f: f.write(json.dumps(self.prefix_dict)) async def match(self, url): async with await self.sess.get(url) as resp: dat = await resp.content.read() m = hashlib.md5(dat).hexdigest() return self.pokenames[m] async def on_message(self, message): def pokecord_reply(msg): return msg.author.id == 365975655608745985 if not self.ready: return if "guild" not in dir(message): #Skip DMs to avoid AttributeError (alt) return if message.guild is None: #Skip DMs to avoid AttributeError return else: blacklist_checks = [ self.mode == "blacklist", message.channel.id in self.configs["blacklists"] ] whitelist_checks = [ self.mode == "whitelist", message.channel.id not in self.configs["whitelists"] ] blackguild_checks = [ self.guild_mode == "blacklist", message.guild.id in self.configs["blacklist_guilds"] ] whiteguild_checks = [ self.guild_mode == "whitelist", message.guild.id not in self.configs["whitelist_guilds"] ] return_checks = [ all(blacklist_checks), all(whitelist_checks), all(blackguild_checks), all(whiteguild_checks) ] if any(return_checks): return #AutoCatcher pokeball_checks = [ message.author.id == 365975655608745985, message.embeds, self.auto_catcher ] if all(pokeball_checks): def log_formatter(pokemon): params = pokemon.split(' | ') name = params[0].replace('**', '') level = params[1].replace('Level: ', '') number = params[2].replace('Number: ', '') return f"{name} -> {number} -> {level}" emb = message.embeds[0] try: embcheck = emb.title.startswith('A wild') except AttributeError: return if embcheck: name = await self.match(emb.image.url.split('?')[0]) name = name.title() if not name: print(f"Unable to find a name for {name1}.") return duplicate_checks = [ name in self.trash, name not in ( self.configs['priority'] + self.legendaries ), self.configs["restrict_duplicates"] ] proc = random.randint(1, 100) sub_checks = [ name in self.configs['priority'], name in self.legendaries ] def catch_checks(name): if self.priority_only: return any(sub_checks) elif not any(sub_checks): catch_subchecks = [ proc <= self.configs['catch_rate'], name not in self.configs['avoid'] ] return all(catch_subchecks) else: return True catcher = catch_checks(name) if catcher: async with message.channel.typing(): pref = emb.description.split()[5] self.new_guild(message, pref) delay_checks = [ self.configs['delay_on_priority'], name in ( self.configs["priority"] + self.legendaries ) ] if all(delay_checks) or not any(sub_checks): await asyncio.sleep(self.configs['delay']) if all(duplicate_checks): print(f"Skipping the duplicate: {name}") return await message.channel.send(f"{pref} {name}") reply = await self.wait_for('message', check=pokecord_reply) if self.user.mentioned_in(reply): print(f'Caught **{name}** in *{message.guild.name}* in #{message.channel.name}') if self.autolog: await message.channel.send(f"{pref.replace('catch','pokemon')} --name {name}") reply = await self.wait_for('message', check=pokecord_reply) if reply.embeds and reply.channel.id == message.channel.id: raw_list = reply.embeds[0].description.splitlines() refined_list = [ log_formatter(pokeline) for pokeline in raw_list if log_formatter(pokeline) not in self.pokelist ] self.pokelist.append(refined_list[0]) with open(self.pokelist_path, 'w', encoding='utf-8') as f: f.write('\n'.join(self.pokelist)) #SelfBot Commands prefix_checks = [ message.content.startswith(self.prefix), message.author.id == self.user.id ] if all(prefix_checks): def arg_check(arg): str_mentions = [str(mention) for mention in raw_mentions] if not raw_mentions: return True checks = [ raw_mentions, arg != '', arg.replace('<@','').replace('>','') not in str_mentions ] return all(checks) raw_mentions = message.raw_mentions or None detokenized = message.content.split(' ') cmd = detokenized[0] args = [] if len(detokenized) > 1: if raw_mentions: args = [ arg for arg in detokenized[1:] if arg_check(arg) ] else: args = [arg for arg in detokenized[1:] if arg != ''] cmd = cmd.replace(self.prefix,'cmd_').lower() try: method = self.__getattribute__(cmd) except AttributeError: # Not a selfbot command, so execute it as a PokeCord command. cmd = cmd.replace('cmd_', '') args.insert(0, cmd) method = self.cmd_poke_exec kwargs = { 'message':message, 'args': args, 'mentions': [] } if message.mentions: kwargs['mentions'] = message.mentions required = inspect.signature(method) required = set(required.parameters.copy()) for key in list(kwargs): if key not in required: kwargs.pop(key, None) if required == set(kwargs): await method(**kwargs) async def cmd_pokelog(self, message, args=[]): def pokecord_reply(msg): if msg.embeds: checks = [ msg.author.id == 365975655608745985, msg.channel.id == message.channel.id, msg.embeds[0].title.startswith('Your pokémon:') ] return all(checks) else: return False def pokecord_edit(before, msg): if msg.embeds: checks = [ msg.author.id == 365975655608745985, msg.channel.id == message.channel.id, msg.embeds[0].title.startswith('Your pokémon:') ] return all(checks) else: return False def log_formatter(pokemon): params = pokemon.split(' | ') name = params[0].replace('**', '') level = params[1].replace('Level: ', '') number = params[2].replace('Number: ', '') if len(params) == 4: nick = params[3].replace('Nickname: ','') return f"{name} -> {number} -> {level} -> {nick}" return f"{name} -> {number} -> {level}" pref = self.prefix_dict.get(str(message.guild.id), None) if pref: page = 1 pokelist = [] if args: page = int(args[0]) if len(args) > 1 and args[1] == 'continue': with open(self.pokelist_path, 'r', encoding='utf-8') as f: pokelist = f.read().splitlines() await message.channel.send(f"{pref}pokemon {args[0]}") else: await message.channel.send(f"{pref}pokemon") reply = await self.wait_for('message', check=pokecord_reply) pokemons = reply.embeds[0].description.split('\n') pokelist += [log_formatter(pokemon) for pokemon in pokemons] await asyncio.sleep(random.randint(2,3)) while True: delme = await message.channel.send(f"{pref}n") try: before, reply = await self.wait_for('message_edit', check=pokecord_edit, timeout=10.0) except: await message.channel.send(f"{pref}pokemon {page + 1}") try: reply = await self.wait_for('message', check=pokecord_reply, timeout=10.0) except: await message.channel.send(f"Logged up to page {page}.") pokemons = reply.embeds[0].description.split('\n') try: await delme.delete() except: pass page += 1 pokelist += [log_formatter(pokemon) for pokemon in pokemons] with open(self.pokelist_path, 'w', encoding='utf-8') as f: f.write('\n'.join(pokelist)) self.pokelist = pokelist if len(pokemons) < 20: break else: await asyncio.sleep(random.randint(5,7)) self.pokelist = pokelist self.refresh_trash() print('Logged all the pokemon successfully.\n') await self.cmd_total(message=message) else: print('No prefix found for this guild.') async def cmd_trade(self, message, mentions, args=[]): def safe_filter(pokemon): checks = [ pokemon.split(' -> ')[1]!='1', pokemon.split(' -> ')[0] not in self.configs['priority'] ] return all(checks) def user_reply(msg): checks = [ msg.author.id == user.id, word in msg.content ] return all(checks) def pokecord_reply(msg): return msg.author.id == 365975655608745985 and msg.channel.id == message.channel.id def pokecord_embed(msg): checks = [ msg.author.id == 365975655608745985, msg.channel.id == message.channel.id, msg.embeds ] return all(checks) def id_extracter(pokemon): params = pokemon.split(' | ') name = params[0].replace('**', '') level = params[1].replace('Level: ', '') number = params[2].replace('Number: ', '') return int(number) user = mentions[0] pref = self.prefix_dict.get(str(message.guild.id), None) if pref: with open(self.pokelist_path,'r', encoding='utf-8') as f: pokelist = f.read().splitlines() if args: if "fav" in args: await message.channel.send(f"{pref}fav") try: reply = await self.wait_for('message', check=pokecord_reply, timeout=2.0) except: await message.channel.send(f"{pref}ping") await message.channel.send(f"{pref}fav") reply = await self.wait_for('message', check=pokecord_reply) if reply.embeds and reply.embeds[0].title == "Your pokémon:": pokemons = reply.embeds[0].description.split('\n') numbers = [id_extracter(pokeline) for pokeline in pokemons] else: numlist = [] for arg in args: if all(char.isalpha() for char in arg): numlist += self.get_id(args[0].title()) else: numlist.append(arg) numbers = numlist else: numbers = [pokemon.split(' -> ')[1] for pokemon in self.pokelist if safe_filter(pokemon)] numbers = sorted(numbers,reverse=True) numbatches = [numbers[i:i+25] for i in range(0, len(numbers), 25)] for numbers in numbatches: await message.channel.send(f"{pref}trade {user.mention}") word = f"{pref}accept" reply = await self.wait_for('message', check=user_reply) confirmation = await self.wait_for('message', check=pokecord_embed) for number in numbers: await message.channel.send(f"{pref}p add {number}") await asyncio.sleep(2.0) await message.channel.send(f"{pref}confirm") confirmation = await self.wait_for('message', check=pokecord_reply) if confirmation.content == "Trade confirmed.": await asyncio.sleep(3.0) else: continue print('Successfully traded away all pokemon.') await self.cmd_pokelog(message) async def cmd_poke_exec(self, message, args=[], mentions=None): pref = self.prefix_dict.get(str(message.guild.id), None) if pref and args: command = args.pop(0) pokeargs = ' '.join(args) pokementions = ' '+' '.join([mention.mention for mention in mentions]) or '' pokecmd = f"{pref}{command}{pokementions}{pokeargs}" await message.channel.send(pokecmd) async def cmd_echo(self, message, args=[], mentions=None): if args: await message.channel.send(f"{' '.join(args)} {' '.join([mention.mention for mention in mentions])}") async def cmd_id(self, message, args=[]): pref = self.prefix_dict.get(str(message.guild.id), None) if pref and args: if len(args) > 1 and args[0] == 'search': pokename = args[1] results = self.get_id(pokename, True) embeds = [] for i in range(0, len(results), 10): embed = discord.Embed(title="Search Results", description="\u200B", color=15728640) if results == "\u200B": continue else: for result in results[i:i+10]: embed.add_field(name=result[0], value=f"**ID**: {result[1]}\n**LEVEL**: {result[2]}", inline=False) embeds.append(embed) try: base = await message.channel.send(content=None, embed=embeds[0]) pager = Paginator(message, base, embeds, self) await pager.run() except: await message.channel.send(":cold_sweat: | No results found.") else: pokename = args[0] results = self.get_id(pokename, True) embed = discord.Embed(title=pokename.title(), description="\u200B", color=15728640) if results == "\u200B": await message.channel.send(":cold_sweat: | No results found.") return else: for result in results: embed.add_field(name="**ID**", value=f"{result[1]}", inline=False) embed.add_field(name="**LEVEL**", value=f"{result[2]}", inline=False) embed.add_field(name="-----", value="\u200B", inline=False) await message.channel.send(content=None, embed=embed) async def cmd_duplicates(self, message, args=[]): pokemons = [pokemon.split(' -> ')[0] for pokemon in self.pokelist] limit = 2 if args: limit = int(args[0]) dups = {dup for dup in pokemons if pokemons.count(dup) >= limit} if len(dups) == 0: await message.channel.send("There is no pokemon with so many duplicates. Try a smaller number.") return dups = list(dups) dups = sorted(dups) embeds = [] for i in range(0, len(dups), 10): embed = discord.Embed(title="Duplicates", description="\u200B", color=15728640) for dup in dups[i:i+10]: results = self.get_id(dup, True) data = [f"**ID**: {result[1]}\t**LEVEL**: {result[2]}" for result in results] data.append('-------------------------------------------------') embed.add_field(name=f"**{dup}**", value='\n'.join(data), inline=False) embed.set_footer(text=f"{(i//10)+1}/{ceil(len(dups)/10)}") embeds.append(embed) base = await message.channel.send(content=None, embed=embeds[0]) pager = Paginator(message, base, embeds, self) await pager.run() async def cmd_legendary(self, message): embeds = [] for i in range(0, len(self.legendaries), 5): embed = discord.Embed(title="Legendaries", description="\u200B", color=15728640) for legend in self.legendaries[i:i+5]: embed.add_field(name=legend, value='\n'.join(self.get_id(legend)), inline=False) embeds.append(embed) base = await message.channel.send(content=None, embed=embeds[0]) pager = Paginator(message, base, embeds, self) await pager.run() async def cmd_total(self, message): await message.channel.send(f"Total number of pokemon:\n{len(self.pokelist)}") async def cmd_mass_release(self, message, args=[]): def pokecord_reply(msg): return msg.author.id == 365975655608745985 and msg.channel.id == message.channel.id def pokecord_embed(msg): checks = [ msg.author.id == 365975655608745985, msg.channel.id == message.channel.id, msg.embeds ] return all(checks) pref = self.prefix_dict.get(str(message.guild.id), None) if pref and args: if "dupes" in (arg.lower() for arg in args): junk = self.junky_trash() numbers = [mon[1] for mon in junk] else: numbers = args numlist = list(set(sorted(numbers, key=lambda x: int(x), reverse=True))) for numbers in numlist: num_str = ' '.join(numbers) await message.channel.send(f"{pref}release {num_str}") desc = await self.wait_for('message', check=pokecord_embed) desc = desc.embeds[0] criticals = ( self.configs["priority"] + self.legendaries ) desc = desc.to_dict()["fields"][0]["value"] for pokemon in criticals: if pokemon in desc: print(f"WOAH! Almost deleted {pokemon}!") return await asyncio.sleep(1.0) await message.channel.send(f"{pref}confirm") await self.wait_for('message', check=pokecord_reply) await self.cmd_pokelog(message) print("Successfully Released all the specified pokemons.") async def cmd_priority_only(self, message, args=[]): if args: if args[0].lower() == 'off': self.priority_only = False print('Catching all pokemons.\n') elif args[0].lower() == 'on': self.priority_only = True print('Catching only priority and legendary pokemon.\n') else: print(args) async def cmd_autocatcher(self, message, args=[]): if args: if args[0].lower() == 'off': self.auto_catcher = False print('Switching to Commands Only mode.\n') elif args[0].lower() == 'on': self.auto_catcher = True print('Activated autocatcher.\n') else: print(args) async def cmd_autolog(self, message, args=[]): if args: if args[0].lower() == 'off': self.autolog = False print('Disabled Autologger.\n') elif args[0].lower() == 'on': self.autolog = True print('Enabled Autologger.\n') else: print(args) async def cmd_toggle_mode(self, message, args=[]): if args and args[0].lower() in ["blacklist", "whitelist"]: self.mode = args[0].lower() print(f"Switched to {args[0].title()} mode.") async def cmd_toggle_guildmode(self, message, args=[]): if args and args[0].lower() in ["blacklist", "whitelist"]: self.guild_mode = args[0].lower() print(f"Switched to {args[0].title()}ed guilds mode.") async def cmd_gift(self, message, mentions, args=[]): def user_reply(msg): checks = [ msg.author.id == user.id, word in msg.content ] return all(checks) def pokecord_reply(msg): return msg.author.id == 365975655608745985 and msg.channel.id == message.channel.id def pokecord_embed(msg): checks = [ msg.author.id == 365975655608745985, msg.channel.id == message.channel.id, msg.embeds ] return all(checks) user = mentions[0] pref = self.prefix_dict.get(str(message.guild.id), None) if pref and args: money = args[0] await message.channel.send(f"{pref}trade {user.mention}") word = f"{pref}accept" reply = await self.wait_for('message', check=user_reply) confirmation = await self.wait_for('message', check=pokecord_embed) await message.channel.send(f"{pref}c add {money}") await asyncio.sleep(2.0) await message.channel.send(f"{pref}confirm") confirmation = await self.wait_for('message', check=pokecord_reply) if confirmation.content == "Trade confirmed.": print(f'Successfully gifted {money}c to {user}.') async def on_ready(self): async def updater(): def bordered(text): # Kudos to xKynn for this. lines = text.splitlines() width = max(len(s) for s in lines) + 2 res = ['┌' + '─' * width + '┐'] for s in lines: res.append('│ ' + (s + ' ' * width)[:width - 1] + '│') res.append('└' + '─' * width + '┘') return '\n'.join(res) async def file_modifier(filename): async with aiohttp.ClientSession(headers=api_headers, loop=self.loop) as sess: async with sess.get(f"{api_base_url}/{filename}") as resp: if ".json" in filename: code = await resp.read() code = code.decode() else: code = await resp.text() with open(filename, 'w', encoding='utf-8') as f: f.write(code) def config_patcher(base_configs): with open('config.json', 'r', encoding='utf-8') as f: configs = json.load(f) if list(configs.keys()) != list(base_configs.keys()): keys = [key for key in list(base_configs.keys()) if key not in list(configs.keys())] for key in keys: configs[key] = base_configs[key] with open('config.json', 'w', encoding='utf-8') as f: f.write(json.dumps(configs, indent=3)) api_base_url = "https://api.github.com/repos/Hyperclaw79/PokeBall-SelfBot/contents" if self.configs["update_checker"]: # For those with error connecting to api.github.com api_headers = { "Accept": "application/vnd.github.v3.raw+json", "User-Agent": f"Pokeball-Selfbot_{self.user}" } async with aiohttp.ClientSession(headers=api_headers, loop=self.loop) as sess: async with sess.get(f"{api_base_url}/_version.json") as resp: ver_data = await resp.read() ver_data = json.loads(ver_data) vnum = int(ver_data["version"].split('v')[1].replace('.', '')) lnum = int(self.version.split('v')[1].replace('.', '')) if vnum > lnum: vtext = 'There is a new version available.\nDownload it for new updates and bug fixes.\n' vtext += f'Your version: {self.version}\nNew Version: {ver_data["version"]}\n' print(bordered(vtext)) if self.configs["auto_update"]: print("Automatic updates are enabled.") await asyncio.sleep(2.0) print(f'Automatically updating to {ver_data["version"]}....') mod_files = [filename for filename in ver_data["modified_files"] if filename not in __file__ and filename != 'config.json'] for _file in mod_files: await file_modifier(_file) await asyncio.sleep(1.0) if "config.json" in ver_data["modified_files"]: async with aiohttp.ClientSession(headers=api_headers, loop=self.loop) as sess: async with sess.get(f"{api_base_url}/config.json") as resp: configs_data = await resp.read() base_configs = json.loads(configs_data) config_patcher(base_configs) await asyncio.sleep(1.0) if "pokeball.py" in ver_data["modified_files"]: await file_modifier("pokeball.py") subprocess.run("run.bat") # Change this to run.sh if you're on a mac/linux self.sess = aiohttp.ClientSession(loop=self.loop) await updater() priorities = self.configs['priority'] prio_list = '\n'.join([ ', '.join(priorities[i:i+5]) for i in range(0, len(priorities), 5) ]) try: blackies = '\n'.join([ ', '.join([str(channel) for channel in self.configs['blacklists'][i:i+5]]) for i in range(0, len(self.configs['blacklists']), 5) ]) except: blackies = "None" try: whities = '\n'.join([ ', '.join([str(channel) for channel in self.configs['whitelists'][i:i+5]]) for i in range(0, len(self.configs['whitelists']), 5) ]) except: whities = "None" try: blackgs = '\n\t'.join([ ', '.join([str(channel) for channel in self.configs['blacklist_guilds'][i:i+5]]) for i in range(0, len(self.configs['blacklist_guilds']), 5) ]) except: blackgs = "None" try: whitigs = '\n\t'.join([ ', '.join([str(channel) for channel in self.configs['whitelist_guilds'][i:i+5]]) for i in range(0, len(self.configs['whitelist_guilds']), 5) ]) except: whitigs = "None" print( f"\n---PokeBall SelfBot {self.version}----\n\n" f"Bot name: {self.user}\n\n" f"Command Prefix: {self.configs['command_prefix']}\n\n" f"Priority:\n~~~~~~~~~\n{prio_list}\n\n" f"Catch Rate: {self.configs['catch_rate']}%\n\n" f"Catch Delay: {self.configs['delay']} seconds\n\n" f"Delay On Priority: {'On' if self.configs['delay_on_priority'] == True else 'Off'}\n\n" f"Restrict Catching of Duplicates: {'On' if self.configs['delay_on_priority'] == True else 'Off'}\n\n" f"Maximum Number of Duplicates: {self.configs['max_duplicates']}\n\n" f"Blacklisted Channels:\n~~~~~~~~~~~~~~~~~~~~\n{blackies}\n\n" f"Whitelisted Channels:\n~~~~~~~~~~~~~~~~~~~~\n{whities}\n\n" f"Blacklisted Guilds:\n~~~~~~~~~~~~~~~~~~~~\n{blackgs}\n\n" f"Whitelisted Guilds:\n~~~~~~~~~~~~~~~~~~~~\n{whitigs}\n\n" f"Autocatcher: {'On' if self.configs['autocatcher'] == True else 'Off'}\n\n" f"Priority Only: {'On' if self.configs['priority_only'] == True else 'Off'}\n\n" ) self.ready = True
GOF2BountyBot
An ambitious discord bot written in python, recreating some of the features of Galaxy on Fire 2. Currently, the standout features are the bounty hunting system, and the items/loadout/trading/dueling system.
bulyk
No description available
T-Ginger-J
OTU Capstone 2024 - Design and Development of a Bot-Trader for Trading Calendar Spread on the Market Index
mninc
This is a steam trade bot that trades TF2 items, automatically! Easy to setup, for non-developers!
Aemilivs
No description available
Misl3d
Pokemon Go Trade Bot Between 2 Device using ZXTouch
pydevtop
P2PTradeBot - follows competitors' prices and changes prices in your ads making them more beneficial for the user (follow a competitor's price)
konstantin-v03
Multi-modular bot 1. Interlayer between Trading View webhook alerts and Binance API 2. Several profitable strategies for trading crypto-exchange 3. Address change balance alerts on such blockchains as: Polkadot, Interlay, Chia, MINA, ETH/ERC20 tokens
franciszekruszkowski
A project consisting of an algorithmic trading bot using LSTM model's forecasts of 16 different stock markets. 12/16 postivie return on investment after training the neural network on a 3-year long training set and trading on 2-year long test set from 2012-2018 for all 16 stocks.
ivaluemyprivacy
This is a steam trade bot that trades TF2 items, automatically! Easy to setup, for non-developers!
kartikeyarai7
A trading bot that uses 20 MA & Bollinger bands to trade BTC/BUSD in Binance futures with 1:2 R:R ratio. Longs at support and shorts at resistance. The trade is confirmed by the direction of the moving average first
willarliss
Continuous stock trading environment for reinforcement learning.
desod-grouseliteiqs
No description available
Fabioepb
a small telegram bot that notifies you (Or a group chat) when an account makes a sale on the Path of Exile 2 Trading system
FuturesTrader
DeFi 1) arbitrage trading bot with flash loan support across Avalanche and Arbitrum networks. 2) tradingview webhook trading bot
StacoNiK
Contains a list of marketplaces and trade bots for Counter-Strike 2 items.
No description available