Compare commits

..

No commits in common. "cf3906be94d9c7ca5115d9f83ee82ae2285db7d5" and "c239aadfaf53062696e1a18613849f27e7ab6e2c" have entirely different histories.

2 changed files with 3 additions and 5 deletions

1
bot.py
View File

@ -78,7 +78,6 @@ class BotClient(discord.Client):
calc = await self._calculate(args) calc = await self._calculate(args)
await message.reply(content=calc.strip()) await message.reply(content=calc.strip())
except Exception as e: except Exception as e:
_log.exception("running calculation")
await message.reply( await message.reply(
content="```\n" + str(e) + "\n```", delete_after=30 content="```\n" + str(e) + "\n```", delete_after=30
) )

View File

@ -121,7 +121,9 @@ function* iterate(arr) {
function unwrapToken(type, token) { function unwrapToken(type, token) {
assert( assert(
token.tokenType.name == type, token.tokenType.name == type,
`expected token ${type}, got ${token.tokenType.name}`, "expected token %s, got %s",
type,
token.tokenType.name
); );
return token.image; return token.image;
} }
@ -216,9 +218,6 @@ function parseAndCalculate(line) {
case "Item": case "Item":
opts().item = unwrapToken("Item", item); opts().item = unwrapToken("Item", item);
break; break;
case "Ability":
opts().ability = unwrapToken("Ability", item);
break;
case "Pokemon": case "Pokemon":
{ {
let name = unwrapToken("Pokemon", item); let name = unwrapToken("Pokemon", item);