Author Topic: Lorebot fix  (Read 1303 times)

0 Members and 1 Guest are viewing this topic.

Oligo

  • Immortal
  • Fodder
  • *
  • Posts: 91
  • Favorite Zone: Dunmir
Lorebot fix
« on: February 27, 2019, 11:15:09 PM »
For users of Lorebot on Discord, it now supports negative values, useful for the following type of queries

Code: [Select]
!query affects=SAVING_SPELL by -1
!query affects=SAVING_SPELL by -2
!query affects=SAVING_BREATH by -1
!query affects=HIT by -5

Contributors and pull requests always welcome.
https://github.com/longhorn09/lorebot
« Last Edit: February 27, 2019, 11:18:30 PM by Oligo »

kanu

  • Fodder
  • *
  • Posts: 89
Re: Lorebot fix
« Reply #1 on: February 28, 2019, 08:21:20 AM »
I'm trying these exact queries out right now, and the queries don't seem to be working as intended?

For example, !query affects=SAVING_SPELL by -2 leads to:

5010 items found. Displaying first 50 items


Oligo

  • Immortal
  • Fodder
  • *
  • Posts: 91
  • Favorite Zone: Dunmir
Re: Lorebot fix
« Reply #2 on: February 28, 2019, 11:55:50 AM »
I suspect maybe you are on a clan discord server and your discord server admin forked/cloned my Github repo and is running their own version of my discord bot instead of querying my instance of Lorebot? If this is the case, you should ask your server admin to do a
Code: [Select]
git pull --all and restart their copy of Lorebot.

I see 44 items with SAVING_SPELL by -2.

If you're on my discord server (Oligo's) then it should work like below. Here's an invite valid for 24 hours.

https://discord.gg/fz4uGQ

Code: [Select]
normstorm: !query affects=SAVING_SPELL by -2
[12:53 PM] BOT LoreBot: 44 items found.

Code: [Select]
normstorm: !query affects=SAVING_SPELL by -3
[12:55 PM] BOT LoreBot: 5 items found.
« Last Edit: February 28, 2019, 12:07:28 PM by Oligo »

kanu

  • Fodder
  • *
  • Posts: 89
Re: Lorebot fix
« Reply #3 on: February 28, 2019, 06:30:28 PM »
Hrmm. I was direct messaging the Lorebot, which I thought was the one in the Oligo Discord (I am already a member). I will try the same query there.

Okay the query works in the Oligo's channel. When I DMed it to the same Lorebot in that channel it also worked. However as a result of that DM, I realized that the Lorebot that I've been DMing is NOT the same Lorebot as in the Oligo Discord. So it's all good.

Thank you for this update.

Oligo

  • Immortal
  • Fodder
  • *
  • Posts: 91
  • Favorite Zone: Dunmir
Re: Lorebot fix
« Reply #4 on: February 28, 2019, 07:29:06 PM »
However as a result of that DM, I realized that the Lorebot that I've been DMing is NOT the same Lorebot as in the Oligo Discord.

Don't get catfished by a Lorebot.

But the easy way to tell which Lorebot you're using is to see how many lores your Lorebot has using the
Code: [Select]
!help command. Should have more than 5,300 lores.

Code: [Select]
[11:32 AM] normstorm: !help
[11:32 AM] BOTLoreBot:
** IRC Lore Bot v1.0.0 (Items: 5307) **
« Last Edit: March 01, 2019, 10:33:34 AM by Oligo »