PennyDreadfulMTG / perf-reports

2 stars 2 forks source link

Bot error on_message #57753

Open vorpal-buildbot opened 3 years ago

vorpal-buildbot commented 3 years ago

(<Message id=869036009407520778 channel= type=<MessageType.default: 0> author=<Member id=322350752389398529 name='Memewalker' discriminator='2882' bot=False nick='Horny Shitposter of the Night' guild=> flags=>,) {} ['[Tarrasque]']

Reported on discordbot by discord user

TooFewItemsException Expected `1` and got `0` with `{'"Tarrasque"'}`. missing=`{'"Tarrasque"'}` Stack Trace: ``` Python traceback File "run.py", line 181, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 40, in discordbot bot.init() File "/penny/mtgbot/discordbot/bot.py", line 353, in init client.run(configuration.get_str('token')) File "/home/discord/.local/lib/python3.8/site-packages/discord/client.py", line 698, in run loop.run_forever() File "/usr/lib64/python3.8/asyncio/base_events.py", line 570, in run_forever self._run_once() File "/usr/lib64/python3.8/asyncio/base_events.py", line 1859, in _run_once handle._run() File "/usr/lib64/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/home/discord/.local/lib/python3.8/site-packages/discord/client.py", line 333, in _run_event await coro(*args, **kwargs) File "/penny/mtgbot/discordbot/bot.py", line 91, in on_message await command.respond_to_card_names(message, self) File "/penny/mtgbot/discordbot/command.py", line 45, in respond_to_card_names cards.extend(cards_from_names_with_mode([r.get_best_match()], mode, preferred_printing)) File "/penny/mtgbot/discordbot/command.py", line 59, in cards_from_names_with_mode return [copy_with_mode(oracle.load_card(c), mode, preferred_printing) for c in cards if c is not None] File "/penny/mtgbot/discordbot/command.py", line 59, in return [copy_with_mode(oracle.load_card(c), mode, preferred_printing) for c in cards if c is not None] File "/penny/mtgbot/magic/oracle.py", line 41, in load_card return CARDS_BY_NAME.get(name, load_cards([name])[0]) File "/penny/mtgbot/magic/oracle.py", line 60, in load_cards raise TooFewItemsException('Expected `{namelen}` and got `{rslen}` with `{names}`. missing=`{missing}`'.format(namelen=len(setnames), rslen=len(rs), names=setnames, missing=missing)) ```

Exception_hash: a0ac9b316c183922a1c2165cec3ec78e5ba68533

vorpal-buildbot commented 3 years ago

Bot error on_message

(<Message id=869036427269267486 channel= type=<MessageType.default: 0> author=<Member id=322350752389398529 name='Memewalker' discriminator='2882' bot=False nick='Horny Shitposter of the Night' guild=> flags=>,) {} ['[Tarrasque]']

Reported on discordbot by discord user

TooFewItemsException Expected `1` and got `0` with `{'"Tarrasque"'}`. missing=`{'"Tarrasque"'}` Stack Trace: ``` Python traceback File "run.py", line 181, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 40, in discordbot bot.init() File "/penny/mtgbot/discordbot/bot.py", line 353, in init client.run(configuration.get_str('token')) File "/home/discord/.local/lib/python3.8/site-packages/discord/client.py", line 698, in run loop.run_forever() File "/usr/lib64/python3.8/asyncio/base_events.py", line 570, in run_forever self._run_once() File "/usr/lib64/python3.8/asyncio/base_events.py", line 1859, in _run_once handle._run() File "/usr/lib64/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/home/discord/.local/lib/python3.8/site-packages/discord/client.py", line 333, in _run_event await coro(*args, **kwargs) File "/penny/mtgbot/discordbot/bot.py", line 91, in on_message await command.respond_to_card_names(message, self) File "/penny/mtgbot/discordbot/command.py", line 45, in respond_to_card_names cards.extend(cards_from_names_with_mode([r.get_best_match()], mode, preferred_printing)) File "/penny/mtgbot/discordbot/command.py", line 59, in cards_from_names_with_mode return [copy_with_mode(oracle.load_card(c), mode, preferred_printing) for c in cards if c is not None] File "/penny/mtgbot/discordbot/command.py", line 59, in return [copy_with_mode(oracle.load_card(c), mode, preferred_printing) for c in cards if c is not None] File "/penny/mtgbot/magic/oracle.py", line 41, in load_card return CARDS_BY_NAME.get(name, load_cards([name])[0]) File "/penny/mtgbot/magic/oracle.py", line 60, in load_cards raise TooFewItemsException('Expected `{namelen}` and got `{rslen}` with `{names}`. missing=`{missing}`'.format(namelen=len(setnames), rslen=len(rs), names=setnames, missing=missing)) ```

Exception_hash: a0ac9b316c183922a1c2165cec3ec78e5ba68533

Labels: discordbot; TooFewItemsException

vorpal-buildbot commented 3 years ago

Bot error on_message

(<Message id=869218029282676826 channel= type=<MessageType.default: 0> author=<Member id=448221176590762004 name='ramenren413' discriminator='5061' bot=False nick='Giant Fucking Mess (Nott)' guild=> flags=>,) {} ['[Tarrasque]']

Reported on discordbot by discord user

TooFewItemsException Expected `1` and got `0` with `{'"Tarrasque"'}`. missing=`{'"Tarrasque"'}` Stack Trace: ``` Python traceback File "run.py", line 181, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 40, in discordbot bot.init() File "/penny/mtgbot/discordbot/bot.py", line 353, in init client.run(configuration.get_str('token')) File "/home/discord/.local/lib/python3.8/site-packages/discord/client.py", line 698, in run loop.run_forever() File "/usr/lib64/python3.8/asyncio/base_events.py", line 570, in run_forever self._run_once() File "/usr/lib64/python3.8/asyncio/base_events.py", line 1859, in _run_once handle._run() File "/usr/lib64/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/home/discord/.local/lib/python3.8/site-packages/discord/client.py", line 333, in _run_event await coro(*args, **kwargs) File "/penny/mtgbot/discordbot/bot.py", line 91, in on_message await command.respond_to_card_names(message, self) File "/penny/mtgbot/discordbot/command.py", line 45, in respond_to_card_names cards.extend(cards_from_names_with_mode([r.get_best_match()], mode, preferred_printing)) File "/penny/mtgbot/discordbot/command.py", line 59, in cards_from_names_with_mode return [copy_with_mode(oracle.load_card(c), mode, preferred_printing) for c in cards if c is not None] File "/penny/mtgbot/discordbot/command.py", line 59, in return [copy_with_mode(oracle.load_card(c), mode, preferred_printing) for c in cards if c is not None] File "/penny/mtgbot/magic/oracle.py", line 41, in load_card return CARDS_BY_NAME.get(name, load_cards([name])[0]) File "/penny/mtgbot/magic/oracle.py", line 60, in load_cards raise TooFewItemsException('Expected `{namelen}` and got `{rslen}` with `{names}`. missing=`{missing}`'.format(namelen=len(setnames), rslen=len(rs), names=setnames, missing=missing)) ```

Exception_hash: a0ac9b316c183922a1c2165cec3ec78e5ba68533

Labels: discordbot; TooFewItemsException