Author Topic: [py] Discord Vendor Search  (Read 4090 times)

0 Members and 1 Guest are viewing this topic.

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
[py] Discord Vendor Search
« on: August 21, 2020, 10:45:12 AM »
0
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:




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/
« Last Edit: September 12, 2020, 06:01:30 AM by unisharp »

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: [py] Discord Vendor Search
« Reply #1 on: August 21, 2020, 12:32:12 PM »
+1
I love this idea
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline zchosen

  • Restricted
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 1
  • zchosen has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: [py] Discord Vendor Search
« Reply #2 on: October 14, 2020, 01:56:09 AM »
0
nice one, im on it :)

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 2998
  • Activity:
    3.4%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +205
  • Referrals: 2
    • View Profile
Re: [py] Discord Vendor Search
« Reply #3 on: October 14, 2020, 02:58:59 AM »
0
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

Tags: