added 𝜋 char support
This commit is contained in:
parent
6b2aae8dfb
commit
6a305d1479
4
mod.ts
4
mod.ts
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import config from "./config.ts";
|
||||
import { DEBUG, LOCALMODE } from "./flags.ts";
|
||||
import { DEBUG, DEVMODE, LOCALMODE } from "./flags.ts";
|
||||
import {
|
||||
// Discordeno deps
|
||||
startBot, editBotStatus, editBotNickname,
|
||||
|
@ -94,7 +94,7 @@ startBot({
|
|||
log(LT.ERROR, `Failed to send message: ${JSON.stringify(e)}`);
|
||||
});
|
||||
},
|
||||
debug: dmsg => log(LT.LOG, `Debug Message | ${JSON.stringify(dmsg)}`),
|
||||
debug: DEVMODE ? dmsg => log(LT.LOG, `Debug Message | ${JSON.stringify(dmsg)}`) : () => {},
|
||||
messageCreate: (message: DiscordenoMessage) => {
|
||||
// Ignore all other bots
|
||||
if (message.isBot) return;
|
||||
|
|
|
@ -820,7 +820,7 @@ const parseRoll = (fullCmd: string, localPrefix: string, localPostfix: string, m
|
|||
containsCrit: false,
|
||||
containsFail: false
|
||||
};
|
||||
} else if (mathConf[i].toString().toLowerCase() === "pi") {
|
||||
} else if (mathConf[i].toString().toLowerCase() === "pi" || mathConf[i].toString().toLowerCase() == "𝜋") {
|
||||
// If the operand is the constant pi, create a SolvedStep for it
|
||||
mathConf[i] = {
|
||||
total: Math.PI,
|
||||
|
|
Loading…
Reference in New Issue