- ๐ฑ Currently searching something to work on
Visit my Website
DiscordBot with FaceIT Stats
License: Apache License 2.0
Visit my Website
Can be done without checks
FaceItDiscord/src/main/java/DiscordMessage.java
Lines 1386 to 1415 in 2a375bb
Wouldn't it be easier to do it this way:
faceitLevelPNG = "https://raw.githubusercontent.com/pvhil/FaceItDiscord/master/src/main/resources/images/" + String.valueOf(faceitAPI.faceitLevel) + ".png";
P. S.
You also have a different case of the file extension in the folder where the pictures are located src/main/resources/images
. In Windows, there is a conflict because of this, I did not make a pull request.
Lots of code for maps checks:
private static final String[] MAPS = {"dust2", "mirage", "train", "cache", "overpass", "vertigo", "inferno", "nuke"};
//over if checks
boolean containsMap = Arrays.asList(MAPS).contains(savedMap.toLowerCase(Locale.ROOT));
if (args[1].equalsIgnoreCase("last") || args[1].equalsIgnoreCase("latest") || containsMap) {
//some code
}
P. S.
I can't cover the entire hierarchy/architecture of your code in a couple of minutes, but I think it will give you food for thought.
Probably my option is not very reliable, but in my case it works pretty well.
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.