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

0 Members and 1 Guest are viewing this topic.

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 199
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +143
  • Referrals: 0
    • View Profile
[py] Discord Vendor Search
« on: August 21, 2020, 10:45:12 AM »
+1
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 and put it at the top of main.py where TOKEN='HERE'



REQUIRED PACKAGES:
discord.py - https://pypi.org/project/discord.py/
« Last Edit: August 19, 2024, 10:00:43 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: +367
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: [py] Discord Vendor Search
« Reply #1 on: August 21, 2020, 12:32:12 PM »
0
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: +4
  • Referrals: 0
    • View Profile
Re: [py] Discord Vendor Search
« Reply #2 on: October 14, 2020, 01:56:09 AM »
+1
nice one, im on it :)

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 3091
  • Activity:
    1.6%
  • Reputation Power: 42
  • 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: +566
  • Referrals: 2
    • View Profile
Re: [py] Discord Vendor Search
« Reply #3 on: October 14, 2020, 02:58:59 AM »
+1
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

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 199
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +143
  • Referrals: 0
    • View Profile
Re: [py] Discord Vendor Search
« Reply #4 on: August 19, 2024, 09:59:17 AM »
0
Updated for new discord.py package
Updated for Stealth py_stealth changes
Added check for "refine search" - displays no items found or search timed out

Tags: