I'm currently studying Mathematics at the University of York.
chriscn / dispixel Goto Github PK
View Code? Open in Web Editor NEWA Discord bot for everything Hypixel!
License: MIT License
A Discord bot for everything Hypixel!
License: MIT License
A command that gets the amount of players online / per gamemode etc that are currently online.
Currently the platform is hosted on Heroku, which is great but has a monthly limit. I run a homelab - that has enough computing power to run many thousand instances of this bot.
I'll probably migrate to a generic Dockerfile that you can deploy with environmental variables.
Write method to convert package rank to rank that is friendly to the user
Using the Hypixel API as you can now add your Discord we could run a match
I think we should log to a discord channel within the Dispixel Discord. It should use webhooks and post to the channel. This would allow more permanently logging as the logging is lost when the terminal is closed.
Update to use the latest version of discord.js and add support for slash commands etc
Some of the commands are api intensive requiring one or multiple api requests for each command. Since we are limitied to 120/minute then we should apply a cooldown to each command. This would be relatively easy I believe to do with the command manage
Two actions:
develop
pushes to a Development bot that is only on my testing servermaster
pushes the master bot out to the publicPick a colour scheme and stick to it.
-namehistory
could return more than 25.
I believe you should only be able to use it if you have the Manage Messages
Permission or if you are in a DM.
The DM should be restricted once every 5 minutes and perhaps even cached. So we may have to build a caching mechanism and even cache requests for 60 seconds. This would be required when checking the guild unless we can get our limit increased. I believe we have got 360 requests a minute but for large guilds that could be our minute used up. Just planning for the future.
It's the future baby.
Many things:
Different bots may use different prefixes to allow multiple of them to be online at once.
Medium (should be fixed soon)
Gives information about the bot and me!
So the [ADMIN] becomes red?
0|Dispixel | TypeError: (intermediate value).setTitle(...).setURL(...).color is not a function
0|Dispixel | at hypixeljs.getPlayer.byUuid (/home/pi/Dispixel/commands/guild.js:16:8)
0|Dispixel | at IncomingMessage.res.once (/home/pi/Dispixel/node_modules/hypixeljs/lib/api.js:97:5)
0|Dispixel | at Object.onceWrapper (events.js:313:30)
0|Dispixel | at emitNone (events.js:111:20)
0|Dispixel | at IncomingMessage.emit (events.js:208:7)
0|Dispixel | at endReadableNT (_stream_readable.js:1064:12)
0|Dispixel | at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
0|Dispixel | at _combinedTickCallback (internal/process/next_tick.js:139:11)
0|Dispixel | at process._tickCallback (internal/process/next_tick.js:181:9)
0|Dispixel | TypeError: Cannot read property 'displayname' of null
0|Dispixel | at hypixeljs.getPlayer.byUuid (/home/pi/Dispixel/commands/guild.js:11:28)
0|Dispixel | at handleError (/home/pi/Dispixel/node_modules/hypixeljs/lib/api.js:9:38)
0|Dispixel | at IncomingMessage.res.once (/home/pi/Dispixel/node_modules/hypixeljs/lib/api.js:99:5)
0|Dispixel | at Object.onceWrapper (events.js:313:30)
0|Dispixel | at emitNone (events.js:111:20)
0|Dispixel | at IncomingMessage.emit (events.js:208:7)
0|Dispixel | at endReadableNT (_stream_readable.js:1064:12)
0|Dispixel | at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
0|Dispixel | at _combinedTickCallback (internal/process/next_tick.js:139:11)
0|Dispixel | at process._tickCallback (internal/process/next_tick.js:181:9)
Gets all the name history of a player.
The uuid
command.
Gets the player's uuid from their name.
Assuming itβs an issue with mojangjs
Would get the friends of a user
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.