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

@ -1,7 +1,6 @@
const Random = require('random');
const { findMessage } = require('@dsabot/findMessage');
const { isEmpty } = require('@dsabot/isEmpty');
const { Random } = require('@dsabot/Random');
const { db } = require('../globals');
const { Werte } = require('../globals');
const { Weapons } = require('../globals');
@ -21,8 +20,6 @@ module.exports = {
return message.reply(findMessage('NOENTRY'));
}
Random.use(message.author.tag);
const Player = docs[0].character;
const Weapon = Weapons.find(w => w.id === args[0].toLowerCase());
if (!Weapon) {