rjt-rockx / mee6-levels-api Goto Github PK
View Code? Open in Web Editor NEWAn API wrapper for Mee6 levels
License: MIT License
An API wrapper for Mee6 levels
License: MIT License
Source code can be found here:
https://github.com/Specky-Projects/SpeckyBot/blob/master/commands/misc/mee6.js
Hope you take some minutes to bump got to the new version. Thank you very much for your awesome work. It'd have saved my personal discord bot
I am wondering if I can get the levels of user from mee6 because I am planning to automate the rewards in one server I own
Hey, i'm using the api in my discord bot to get the levels from mee6 and set rolls.
the bot is working fine so far to set rolls aso.
as soon as i import the api the bot will not start anymore giving the following error:
`internal/util.js:214
throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'function');
^
TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function
at Object.promisify (internal/util.js:214:11)
at Object. (/home/nicobot/node_modules/got/dist/source/get-response.js:8:25)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/home/nicobot/node_modules/got/dist/source/request-as-event-emitter.js:13:24)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/home/nicobot/node_modules/got/dist/source/as-promise.js:9:36)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
`
Is there anything i am missing?
How do i get the xp of a specified user using mee6-levels-api?
The API will no longer work, my guess is that they made it private access.
/home/dubfib/Programming/idk/node_modules/got/dist/source/as-promise.js:118
const error = new errors_1.HTTPError(response, options);
^
HTTPError: Response code 401 (Unauthorized)
at EventEmitter.<anonymous> (/home/dubfib/Programming/idk/node_modules/got/dist/source/as-promise.js:118:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
const mee6 = require("mee6-levels-api");
module.exports = async function MessageCommand(client, message, args) {
mee6.getUserXp(message.guild.id, message.author.id).then(user => {
const tag = user.tag;
const level = user.level;
const rank = user.rank;
message.reply(`You are ${tag}, your level is ${level} and your rank is ${rank}`);
});
};
I also tried visiting it with my browser, it didn't work at all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.