Remove dependency Random, node-fetch (#48)

* removed dependency to Random

* removed dependency to node-fetch

* remove node-fetch, add got

* unstringify json
This commit is contained in:
2021-05-07 22:51:03 +02:00
committed by GitHub
parent ba63be64dd
commit 8b3d9b4c78
9 changed files with 4274 additions and 158 deletions

View File

@ -27,13 +27,13 @@ module.exports = {
const { Passed, CriticalHit, Fumbles, PointsRemaining } = CompareResults(
dice,
[args[0], args[1], args[2]],
[parseInt(args[0], 10), parseInt(args[1], 10), parseInt(args[2], 10)],
Bonus,
Erschwernis
);
const Reply = new Discord.MessageEmbed();
Reply.setTitle(`${findMessage('ROLL')} ${dice.join(', ')}.`);
Reply.setTitle(`${findMessage('ROLL')} \` ${dice.join(' ` ` ')} \``);
if (Fumbles >= 2) {
Reply.setColor('#900c3f');
Reply.addFields({