ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth scripts => Topic started by: unisharp on August 21, 2020, 10:45:12 AM

Title: [py] Discord Vendor Search
Post by: unisharp on August 21, 2020, 10:45:12 AM
Hi

Pretty simple idea, throw a command in Discord to initiate an in-game Vendor Search and output the results to Discord.  You could easily build a vendor search sniping bot from this code.

https://github.com/unisharpUO/VendorSearcher

Becareful with search results, I haven't added anything to limit this.  If you want to limit search results edit main.py line 42

Code: [Select]
for _result in _results:to
Code: [Select]
for _result in _results[:10]:for first 10 results



SCREENSHOT:
(https://i.imgur.com/kvIxJQf.png)



SETUP:
1. https://discordpy.readthedocs.io/en/latest/discord.html
2. take your token, create a .env file in the same location as vendorsearcher, add "DISCORD_TOKEN=" with your token, without the quotes to the .env file



REQUIRED PACKAGES:
1. discord.py - https://pypi.org/project/discord.py/
2. dotenv - https://pypi.org/project/python-dotenv/
Title: Re: [py] Discord Vendor Search
Post by: Tidus on August 21, 2020, 12:32:12 PM
I love this idea
Title: Re: [py] Discord Vendor Search
Post by: zchosen on October 14, 2020, 01:56:09 AM
nice one, im on it :)
Title: Re: [py] Discord Vendor Search
Post by: Crisis on October 14, 2020, 02:58:59 AM
nice one, im on it :)

You may want to look at this post to see why you cannot download these. http://www.scriptuo.com/index.php?topic=1750.0