Untitled
unknown
plain_text
a year ago
14 kB
5
Indexable
Never
import re, os, asyncio, random, string, requests, discord, aiohttp, json from discord.ext import commands, tasks version = 'v4' bot_prefix = '%' user_token = 'token here' #Put Your Token Here inside 'demi37 ' user_id = 541961223525236736 #put ur id from aiohttp import ClientSession sh_interval = False num_pokemon = 0 poketwo = 716390085896962058 client = commands.Bot(command_prefix=bot_prefix) stopped = False captcha_done = True # Define the check function def user_only(user_id): def predicate(ctx): return ctx.author.id == user_id return commands.check(predicate) #-------------------------------------------------------------------- pokemon_list = """ Bulbasaur Ivysaur Venusaur Charmander Charmeleon Charizard Squirtle Wartortle Blastoise Caterpie Metapod Butterfree Weedle Kakuna Beedrill Pidgey Pidgeotto Pidgeot Rattata Raticate Spearow Fearow Ekans Arbok Pikachu Raichu Sandshrew Sandslash Nidoranâ™‚ï¸ Nidoranâ™€ï¸ Nidorina Nidoqueen Nidorino Nidoking Clefairy Clefable Vulpix Ninetales Jigglypuff Wigglytuff Zubat Golbat Oddish Gloom Vileplume Paras Parasect Venonat Venomoth Diglett Dugtrio Meowth Persian Psyduck Golduck Mankey Primeape Growlithe Arcanine Poliwag Poliwhirl Poliwrath Abra Kadabra Alakazam Machop Machoke Machamp Bellsprout Weepinbell Victreebel Tentacool Tentacruel Geodude Graveler Golem Ponyta Rapidash Slowpoke Slowbro Magnemite Magneton Farfetch'd Doduo Dodrio Seel Dewgong Grimer Muk Shellder Cloyster Gastly Haunter Gengar Onix Drowzee Hypno Krabby Kingler Voltorb Electrode Exeggcute Exeggutor Cubone Marowak Hitmonlee Hitmonchan Lickitung Koffing Weezing Rhyhorn Rhydon Chansey Tangela Kangaskhan Horsea Seadra Goldeen Seaking Staryu Starmie Mr. Mime Scyther Jynx Electabuzz Magmar Pinsir Tauros Magikarp Gyarados Lapras Ditto Eevee Vaporeon Jolteon Flareon Porygon Omanyte Omastar Kabuto Kabutops Aerodactyl Snorlax Articuno Zapdos Moltres Dratini Dragonair Dragonite Mewtwo Shadow Mewtwo Mew Chikorita Bayleef Meganium Cyndaquil Quilava Typhlosion Totodile Croconaw Feraligatr Sentret Furret Hoothoot Noctowl Ledyba Ledian Spinarak Ariados Crobat Chinchou Lanturn Pichu Cleffa Igglybuff Togepi Togetic Natu Xatu Mareep Flaaffy Ampharos Bellossom Marill Azumarill Sudowoodo Politoed Hoppip Skiploom Jumpluff Aipom Sunkern Sunflora Yanma Wooper Quagsire Espeon Umbreon Murkrow Slowking Misdreavus Unown Wobbuffet Girafarig Pineco Forretress Dunsparce Gligar Steelix Snubbull Granbull Qwilfish Scizor Shuckle Heracross Sneasel Teddiursa Ursaring Slugma Magcargo Swinub Piloswine Corsola Remoraid Octillery Delibird Mantine Skarmory Houndour Houndoom Kingdra Phanpy Donphan Porygon2 Stantler Smeargle Tyrogue Hitmontop Smoochum Elekid Magby Miltank Blissey Raikou Entei Suicune Larvitar Pupitar Tyranitar Lugia Ho-Oh Treecko Grovyle Sceptile Torchic Combusken Blaziken Mudkip Marshtomp Swampert Poochyena Mightyena Zigzagoon Linoone Wurmple Silcoon Beautifly Cascoon Dustox Lotad Lombre Ludicolo Seedot Nuzleaf Shiftry Taillow Swellow Wingull Pelipper Ralts Kirlia Gardevoir Surskit Masquerain Shroomish Breloom Slakoth Vigoroth Slaking Nincada Ninjask Shedinja Whismur Loudred Exploud Makuhita Hariyama Azurill Nosepass Skitty Delcatty Sableye Mawile Aron Lairon Aggron Meditite Medicham Electrike Manectric Plusle Minun Volbeat Illumise Roselia Gulpin Swalot Carvanha Sharpedo Wailmer Wailord Numel Camerupt Torkoal Spoink Grumpig Spinda Trapinch Vibrava Flygon Cacnea Cacturne Swablu Altaria Zangoose Seviper Lunatone Solrock Barboach Whiscash Corphish Crawdaunt Baltoy Claydol Lileep Cradily Anorith Armaldo Feebas Milotic Castform Sunny Castform Rainy Castform Snowy Castform Kecleon Shuppet Banette Duskull Dusclops Tropius Chimecho Absol Wynaut Snorunt Glalie Spheal Sealeo Walrein Clamperl Huntail Gorebyss Relicanth Luvdisc Bagon Shelgon Salamence Beldum Metang Metagross Regirock Regice Registeel Latias Latios Kyogre Groudon Rayquaza Turtwig Grotle Torterra Chimchar Monferno Infernape Piplup Prinplup Empoleon Starly Staravia Staraptor Bidoof Bibarel Kricketot Kricketune Shinx Luxio Luxray Budew Roserade Cranidos Rampardos Shieldon Bastiodon Burmy Wormadam Sandy Wormadam Trash Wormadam Mothim Combee Vespiquen Pachirisu Buizel Floatzel Cherubi Cherrim Shellos Gastrodon Ambipom Drifloon Drifblim Buneary Lopunny Mismagius Honchkrow Glameow Purugly Chingling Stunky Skuntank Bronzor Bronzong Bonsly Mime Jr. Happiny Chatot Spiritomb Gible Gabite Garchomp Munchlax Riolu Lucario Hippopotas Hippowdon Skorupi Drapion Croagunk Toxicroak Carnivine Finneon Lumineon Mantyke Snover Abomasnow Weavile Magnezone Lickilicky Rhyperior Tangrowth Electivire Magmortar Togekiss Yanmega Leafeon Glaceon Gliscor Mamoswine Porygon-Z Gallade Probopass Dusknoir Froslass Rotom Uxie Mesprit Azelf Dialga Palkia Heatran Regigigas Giratina Cresselia Darkrai Arceus Magearna Celebi Jirachi Deoxys Attack Deoxys Defense Deoxys Speed Deoxys Phione Manaphy Shaymin Victini Snivy Servine Serperior Tepig Pignite Emboar Oshawott Dewott Samurott Patrat Watchog Lillipup Herdier Stoutland Purrloin Liepard Pansage Simisage Pansear Simisear Panpour Simipour Munna Musharna Pidove Tranquill Unfezant Blitzle Zebstrika Roggenrola Boldore Gigalith Woobat Swoobat Drilbur Excadrill Audino Timburr Gurdurr Conkeldurr Tympole Palpitoad Seismitoad Throh Sawk Sewaddle Swadloon Leavanny Venipede Whirlipede Scolipede Cottonee Whimsicott Petilil Lilligant Basculin Blue-Striped Basculin Red-Striped Basculin Sandile Krokorok Krookodile Darumaka Darmanitan Maractus Dwebble Crustle Scraggy Scrafty Sigilyph Yamask Cofagrigus Tirtouga Carracosta Archen Archeops Trubbish Garbodor Zorua Zoroark Minccino Cinccino Gothita Gothorita Gothitelle Solosis Duosion Reuniclus Ducklett Swanna Vanillite Vanillish Vanilluxe Deerling Sawsbuck Emolga Karrablast Escavalier Foongus Amoonguss Frillish Jellicent Alomomola Joltik Galvantula Ferroseed Ferrothorn Klink Klang Klinklang Tynamo Eelektrik Eelektross Elgyem Beheeyem Litwick Lampent Chandelure Axew Fraxure Haxorus Cubchoo Beartic Cryogonal Shelmet Accelgor Stunfisk Mienfoo Mienshao Druddigon Golett Golurk Pawniard Bisharp Bouffalant Rufflet Braviary Vullaby Mandibuzz Heatmor Durant Deino Zweilous Hydreigon Larvesta Volcarona Cobalion Terrakion Virizion Tornadus Thundurus Reshiram Zekrom Landorus Kyurem Keldeo Meloetta Genesect Chespin Quilladin Chesnaught Fennekin Braixen Delphox Froakie Frogadier Greninja Bunnelby Diggersby Fletchling Fletchinder Talonflame Scatterbug Spewpa Vivillon Litleo Pyroar Flabébé Floette Florges Skiddo Gogoat Pancham Pangoro Furfrou Espurr Meowstic Honedge Doublade Aegislash Spritzee Aromatisse Swirlix Slurpuff Inkay Malamar Binacle Barbaracle Skrelp Dragalge Clauncher Clawitzer Helioptile Heliolisk Tyrunt Tyrantrum Amaura Aurorus Sylveon Hawlucha Dedenne Carbink Goomy Sliggoo Goodra Klefki Phantump Trevenant Pumpkaboo Gourgeist Bergmite Avalugg Noibat Noivern Xerneas Yveltal Zygarde 10% Zygarde 50% Zygarde Complete Zygarde Diancie Hoopa Volcanion Rowlet Dartrix Decidueye Litten Torracat Incineroar Popplio Brionne Primarina Pikipek Trumbeak Toucannon Yungoos Gumshoos Grubbin Charjabug Vikavolt Crabrawler Crabominable Oricorio Pom-pom Oricorio Pa'u Oricorio Sensu Oricorio Cutiefly Ribombee Rockruff Lycanroc Wishiwashi Mareanie Toxapex Mudbray Mudsdale Dewpider Araquanid Fomantis Lurantis Morelull Shiinotic Salandit Salazzle Stufful Bewear Bounsweet Steenee Tsareena Comfey Oranguru Passimian Wimpod Golisopod Sandygast Palossand Pyukumuku Type: Null Silvally Minior Komala Turtonator Togedemaru Mimikyu Bruxish Drampa Dhelmise Jangmo-o Hakamo-o Kommo-o Tapu Koko Tapu Lele Tapu Bulu Tapu Fini Cosmog Cosmoem Solgaleo Lunala Nihilego Buzzwole Pheromosa Xurkitree Celesteela Kartana Guzzlord Necrozma Marshadow Poipole Naganadel Stakataka Blacephalon Zeraora Meltan Melmetal Grookey Thwackey Rillaboom Scorbunny Raboot Cinderace Sobble Drizzile Inteleon Skwovet Greedent Rookidee Corvisquire Corviknight Blipbug Dottler Orbeetle Nickit Thievul Gossifleur Eldegoss Wooloo Dubwool Chewtle Drednaw Yamper Boltund Rolycoly Carkol Coalossal Applin Flapple Appletun Silicobra Sandaconda Cramorant Arrokuda Barraskewda Toxel Toxtricity Sizzlipede Centiskorch Clobbopus Grapploct Sinistea Polteageist Hatenna Hattrem Hatterene Impidimp Morgrem Grimmsnarl Obstagoon Perrserker Cursola Sirfetch’d Mr. Rime Runerigus Milcery Alcremie Falinks Pincurchin Snom Frosmoth Stonjourner Eiscue Indeedee Morpeko Cufant Copperajah Dracozolt Arctozolt Dracovish Arctovish Duraludon Dreepy Drakloak Dragapult Zacian Zamazenta Eternatus Kubfu Urshifu Zarude Regieleki Regidrago Glastrier Spectrier Calyrex Alolan Rattata Alolan Raticate Alolan Raichu Alolan Sandshrew Alolan Sandslash Alolan Vulpix Alolan Ninetales Alolan Diglett Alolan Dugtrio Alolan Meowth Alolan Persian Alolan Geodude Alolan Graveler Alolan Golem Alolan Grimer Alolan Muk Alolan Exeggutor Alolan Marowak Anniversary Wooloo Sirfetch'd Galarian Zigzagoon Galarian Linoone Galarian Meowth Galarian Farfetch'd Galarian Stunfisk Galarian Corsola Galarian Weezing Galarian Yamask Galarian Ponyta Galarian Rapidash Galarian Mr. Mime Galarian Darumaka Galarian Darmanitan Galarian Moltres Galarian Articuno Galarian Zapdos Galarian Slowpoke Snowflake Bronzor Choco Sinistea Crystal Larvesta Snowy Amaura Spikey Cyndaquil Elsa Galarian Ponyta Snowman Pikachu Winter Sawsbuck Snowy Slowpoke Primal Glastrier Sprouting Oddish Bouquet Shaymin Cherry Blossom Cottonee Spring Fever Cubchoo Eternal Flower Floette Wyrdeer Kleavor Ursaluna Basculegion Sneasler Overqwil Enamorus Hisuian Growlithe Hisuian Arcanine Hisuian Voltorb Hisuian Electrode Hisuian Typhlosion Hisuian Qwilfish Hisuian Sneasel Hisuian Samurott Hisuian Lilligant Hisuian Zorua Hisuian Zoroark Hisuian Braviary Hisuian Sliggoo Hisuian Goodra Hisuian Avalugg Hisuian Decidueye Origin Palkia Origin Dialga Therian EnamorusEnamorus Sharkfin Totodile Floatie Piplup Ukulele Pichu Grilling Snorlax Martini Dratini Surf Pikachu Autumn Chikorita Autumn Rapidash Autumn Snivy Autumn Pansage Autumn Skiddo Bug Catcher Weedle Flower Paras Hatching Beautifly Bird Nest Nuzleaf Spring Blooming Diancie Flower Pheromosa Eggneton Egg Hunter Kangaskhan Egg Basket Buneary Egg Searching Steenee Sprigatito Floragato Meowscarada Fuecoco Crocalor Skeledirge Quaxly Quaxwell Quaquaval Lechonk Oinkologne Tarountula Spidops Nymble Lokix Pawmi Pawmo Pawmot Tandemaus Maushold Fidough Dachsbun Smoliv Dolliv Arboliva Squawkabilly Nacli Naclstack Garganacl Charcadet Armarouge Ceruledge Tadbulb Bellibolt Wattrel Kilowattrel Maschiff Mabosstiff Shroodle Grafaiai Bramblin Brambleghast Toedscool Toedscruel Klawf Capsakid Scovillain Rellor Rabsca Flittle Espathra Tinkatink Tinkatuff Tinkaton Wiglett Wugtrio Bombirdier Finizen Palafin Varoom Revavroom Cyclizar Orthworm Glimmet Glimmora Greavard Houndstone Flamigo Cetoddle Cetitan Veluza Dondozo Tatsugiri Annihilape Clodsire Farigiraf Dudunsparce Kingambit Great Tusk Scream Tail Brute Bonnet Flutter Mane Slither Wing Sandy Shocks Iron Treads Iron Bundle Iron Hands Iron Jugulis Iron Moth Iron Thorns Frigibax Arctibax Baxcalibur Gimmighoul Gholdengo Wo-Chien Chien-Pao Ting-Lu Chi-Yu Roaring Moon Iron Valiant Koraidon Miraidon Walking Wake Iron Leaves Skater Wooper Anniversary Lapras Cupcake Alcremie """ #-------------------------------------------------------------------- # Add the check to all commands @client.check(user_only(user_id)) async def restrict_commands(ctx): return True def solve(message): if not stopped: hint = [] for i in range(15, len(message) - 1): if message[i] != '\\': hint.append(message[i]) hint_string = '' for i in hint: hint_string += i hint_replaced = hint_string.replace('_', '.') solution = re.findall('^' + hint_replaced + '$', pokemon_list, re.MULTILINE) return solution @client.event async def on_ready(): await client.change_presence(status=discord.Status.dnd) print(f'Logged into account: {client.user.name}') @client.event async def on_message(message): global stopped global captcha_done if message.content.startswith("Whoa there"): return await message.channel.send("@everyone Captcha Solve!! ") if message.author.id == poketwo: if not stopped: if message.embeds: embed_title = message.embeds[0].title if 'wild pokémon has appeared!' in embed_title: channel = message.channel await channel.send('<@716390085896962058> h') else: content = message.content if 'The pokémon is ' in content: if not len(solve(content)): print('Pokemon not found.') else: for i in solve(content): await message.channel.send(f'<@716390085896962058> c {i}') if not message.author.bot: await client.process_commands(message) @client.command() async def stop(ctx): if captcha_done: global stopped await ctx.send( "```→ The Bot was stopped. Use '%start' to run it again.```" ) stopped = True else: await ctx.send( "You can't stop the bot while there's a pending captcha! Use `%captcha_done` instead." ) @client.command() async def start(ctx): if captcha_done: global stopped await ctx.send( "```→ The bot was started. Use '%stop' to stop it again.```" ) stopped = False else: await ctx.send( "You can't start the bot while there's a pending captcha! Use `%captcha_done` instead." ) @client.command() async def captcha_done(ctx): global captcha_done global stopped if captcha_done == True: await ctx.send("```There aren't any pending captcha!```") else: await ctx.send( "```Captcha confirmed! bot has been reactivated!```") stopped = False captcha_done = True @client.command() async def say(ctx,*,args): await ctx.send(args) print() print( f'Pokétwo Hinter {version}\nA Pokétwo Hinter Made by Team Code ' ) client.run(f"{user_token}")