Giter VIP home page Giter VIP logo

poe-info's Introduction

PoE-Info

Path of Exile Discord bot with some simple wiki data and forum commands.

[Add PoE-Info to your server]

Because PoE-Info has reached the maximum number of allowed servers (without verification, see below) I have made a public server you can join if you just want to use the bot personally. By joining this server you will be able to DM the bot to use commands.

It has come to my attention that discord bots can no longer join more than 100 servers unless the owner completes a verification process requiring them to hand over personal information which I do NOT plan on doing. Because of this, if you have this bot in a server which no longer needs it (such as a dead server), I kindly ask that you remove the bot from that server so someone else can add it to theirs. Alternatively, I suggest hosting a local copy of this bot if possible (and sharing it with others if you want to help out more.)

Example Image

Here is a (maybe not exhaustive) list of commands, run -help to see the updated list:

  • help -- List all commands

  • unique alias: -u -- Shows stats for a unique item

  • unique search alias: -us -- Search item explicits for keywords

  • skill alias: -s -- Shows stats for a skill gem

  • currency alias: -c -- Show Chaos rate for a currency item

  • node alias: -n -- Shows description of a notable or keystone

  • node search alias: -ns -- Search node description for keywords

  • next -- Displays the upcoming race

  • announcements -- Toggle notifications for forum announcements

  • patchnotes -- Toggle notifications for patch note posts

  • events -- Toggle notifications for events (races)

  • deals -- Toggle notifications for daily deal

  • deals filter -- Set regexp filter to only show matching deals

  • pcleague -- Sets league used for pricing items (per-channel)

  • lab -- Get daily lab layout from poelab.com

  • pin -- (Automatically) moves pins to a different channel (to overcome discord pin limit)

  • reminder -- Set reminders (set -reminder timezone first)

type -help for more info on any of these

To run your own instance

  1. Run db.py and let it finish (this might take a while)
  2. Put your discord bot token in a file called "token" and run bot.py
  3. Run db.py on a schedule to keep your database up to date, I recommend once every 24 hours.
  4. Run db.py -pc more frequently to keep item prices up to date, I recommend once every 1 hour.

You must install the latest version of discord.py pip install -U git+https://github.com/Rapptz/discord.py

poe-info's People

Contributors

dependabot[bot] avatar neverdecaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ttommyth

poe-info's Issues

Failure to launch on the bot.py

Hey there.

So I am trying to host my own instance for the bot. I ran the db.py which it created a new folder/files.
But when I run the bot.py it closes the cmd quickly.

I get this error.
Traceback (most recent call last):
File "POE-Info\bot.py", line 6, in < module >
import db
File "POE-Info\db.py", line 2, in < module >
import scrape_poe_wiki
File "POE-Info\scrape_poe_wiki.py", line 8, in < module >
import requests, re, datetime, time, json, os
ModuleNotFoundError: No module named 'requests'

Any help will be greatly appreciated. Thank you =)

missing prices on variant items

This is caused by item name not matching poe.ninja's name
for example: Garb of the Ephemeral (Fractured) does not match Garb of the Ephemeral so no price is found. This also causes icons to be missing as these are fetched from poe.ninja.

Simple fix would be a partial match when joining, ex: if t1.name LIKE t2.name||"%" but this may cause issues if one item contains the name of another. One solution that may work is stripping the parenthesis before name matching.

Also, there are cases where prices are wildly different for variants; 1 socket vs 2 socket Tombfist for example. Until these can be handled correctly it may be best to leave these variants unpriced rather than provide incorrect pricing.

Running db.py and bot.py

Hello, i want to ask, im trying to run my own copy of ur bot. But im strugle at how to run db.py and i get this:

root@localhost:/media/PoE-Info-master# python3 db.py
Traceback (most recent call last):
File "db.py", line 2, in
import scrape_poe_wiki
File "/media/PoE-Info-master/scrape_poe_wiki.py", line 14, in
import cloudscraper

Also when im trying to run bot.py

root@localhost:/media/PoE-Info-master# python3 bot.py
Traceback (most recent call last):
File "bot.py", line 6, in
import db
File "/media/PoE-Info-master/db.py", line 2, in
import scrape_poe_wiki
File "/media/PoE-Info-master/scrape_poe_wiki.py", line 14, in
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'

I dont know if command is correct or im missing something. Can u help me out? thanks

Cannot Run db.py

Hello, firstly thanks for a good job and the great Poe bot. I'm trying to self-host the bot but when I try to run the db.py I'm getting this error:

Traceback (most recent call last):
  File "C:/Users/rebra/PycharmProjects/POE-Discord-Bot/db.py", line 231, in <module>
    data = scrape_poe_wiki.get_ninja_prices(league)
  File "C:\Users\rebra\PycharmProjects\POE-Discord-Bot\scrape_poe_wiki.py", line 486, in get_ninja_prices
    elif int(x['gemLevel']) == 1 and int(x['gemQuality']) == 20:
KeyError: 'gemQuality'

Process finished with exit code 1

https://imgur.com/GYhWHR4

Also, can you create Python requirements.txt so this will speed up the process.

Unable to populate db

Did a git clone and installed all deps and this is the output from running db.py

``
deegan@dolos:~/PoE-Info$ ./db.py
2021-10-24 17:38:32.525822

Manually prepared style variants included for these items:

(Make sure they are still correct)

Traceback (most recent call last):
File "./db.py", line 217, in
data = scrape_poe_wiki.get_ninja_rates(league)
File "/home/deegan/PoE-Info/scrape_poe_wiki.py", line 509, in get_ninja_rates
id_map[x['name']] = (x['id'],x['icon'])
KeyError: 'icon'
``

Some items seem to get in there but querying the bot like "-c chaos" just returns "No results" on discord. I tried adding some json.dumps() bits here and there but I never got anything out of it.

forum change(?) broke scraper

The last update to pathofexile.com changed something to break the forum/deals scrapers, which results in your IP getting banned presumably for DOS, once I'm unbanned I'll investigate further.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.