Compare commits
No commits in common. "cf3906be94d9c7ca5115d9f83ee82ae2285db7d5" and "c239aadfaf53062696e1a18613849f27e7ab6e2c" have entirely different histories.
cf3906be94
...
c239aadfaf
1
bot.py
1
bot.py
@ -78,7 +78,6 @@ class BotClient(discord.Client):
|
||||
calc = await self._calculate(args)
|
||||
await message.reply(content=calc.strip())
|
||||
except Exception as e:
|
||||
_log.exception("running calculation")
|
||||
await message.reply(
|
||||
content="```\n" + str(e) + "\n```", delete_after=30
|
||||
)
|
||||
|
7
calc.js
7
calc.js
@ -121,7 +121,9 @@ function* iterate(arr) {
|
||||
function unwrapToken(type, token) {
|
||||
assert(
|
||||
token.tokenType.name == type,
|
||||
`expected token ${type}, got ${token.tokenType.name}`,
|
||||
"expected token %s, got %s",
|
||||
type,
|
||||
token.tokenType.name
|
||||
);
|
||||
return token.image;
|
||||
}
|
||||
@ -216,9 +218,6 @@ function parseAndCalculate(line) {
|
||||
case "Item":
|
||||
opts().item = unwrapToken("Item", item);
|
||||
break;
|
||||
case "Ability":
|
||||
opts().ability = unwrapToken("Ability", item);
|
||||
break;
|
||||
case "Pokemon":
|
||||
{
|
||||
let name = unwrapToken("Pokemon", item);
|
||||
|
Loading…
Reference in New Issue
Block a user