Skip to content

Commit

Permalink
Twitter works again, to be continued
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaysoro committed Nov 5, 2023
1 parent a5ab7e2 commit a86a702
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 325 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.kaysoro</groupId>
<artifactId>Kaelly</artifactId>
<version>1.9.0</version>
<version>1.9.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
62 changes: 31 additions & 31 deletions src/main/java/data/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,151 +12,151 @@ public class Constants {
/**
* Application name
*/
public final static String name = "Kaelly";
public static final String name = "Kaelly";

/**
* Application version
*/
public final static String version = "1.9.0";
public static final String version = "1.9.1";

/**
* Changelog
*/
public final static String changelog = "https://raw.githubusercontent.com/KaellyBot/Kaelly-dashboard/master/public/img/kaellyFull.png";
public static final String changelog = "https://raw.githubusercontent.com/KaellyBot/Kaelly-dashboard/master/public/img/kaellyFull.png";

/**
* Author id
*/
public final static long authorId = 162842827183751169L;
public static final long authorId = 162842827183751169L;

/**
* Author name
*/
public final static String authorName = "Kaysoro#8327";
public static final String authorName = "Kaysoro#8327";

/**
* Author avatar
*/
public final static String authorAvatar = "https://avatars0.githubusercontent.com/u/5544670?s=460&v=4";
public static final String authorAvatar = "https://avatars0.githubusercontent.com/u/5544670?s=460&v=4";

/**
* URL for Kaelly twitter account
*/
public final static String twitterAccount = "https://twitter.com/KaellyBot";
public static final String twitterAccount = "https://twitter.com/KaellyBot";

/**
* URL for github KaellyBot repository
*/
public final static String git = "https://github.com/Kaysoro/KaellyBot";
public static final String git = "https://github.com/Kaysoro/KaellyBot";

/**
* Official link invite
*/
public final static String invite = "https://discordapp.com/oauth2/authorize?&client_id=202916641414184960&scope=bot";
public static final String invite = "https://discordapp.com/oauth2/authorize?&client_id=202916641414184960&scope=bot";

/**
* Official paypal link
*/
public final static String paypal = "https://paypal.me/kaysoro";
public static final String paypal = "https://paypal.me/kaysoro";

/**
* Database name
*/
public final static String database = "bdd.sqlite";
public static final String database = "bdd.sqlite";

/**
* Path to the database (can be left empty)
*/
public final static String database_path = "";
public static final String database_path = "";

/**
* Path to the folder containing sounds (can be left empty)
*/
public final static String sound_path = "";
public static final String sound_path = "";

/**
* prefix used for command call.
* WARN : it is injected into regex expression.
* If you use special characters as '$', don't forget to prefix it with '\\' like this : "\\$"
*/
public final static String prefixCommand = "!";
public static final String prefixCommand = "!";

public final static Language defaultLanguage = Language.FR;
public static final Language defaultLanguage = Language.FR;

/**
* Game desserved
*/
public final static Game game = Game.DOFUS;
public static final Game game = Game.DOFUS;

/**
* Official Ankama Game Logo
*/
public final static String officialLogo = "https://s.ankama.com/www/static.ankama.com/g/modules/masterpage/block/header/navbar/dofus/logo.png";
public static final String officialLogo = "https://s.ankama.com/www/static.ankama.com/g/modules/masterpage/block/header/navbar/dofus/logo.png";

/**
* Tutorial URL
*/
public final static String dofusPourLesNoobURL = "http://www.dofuspourlesnoobs.com";
public static final String dofusPourLesNoobURL = "http://www.dofuspourlesnoobs.com";

/**
* Tutorial Search URL
*/
public final static String dofusPourLesNoobSearch = "/apps/search";
public static final String dofusPourLesNoobSearch = "/apps/search";

/**
* DofusRoom build URL
*/
public final static String dofusRoomBuildUrl = "https://www.dofusroom.com/buildroom/build/show/";
public static final String dofusRoomBuildUrl = "https://www.dofusroom.com/buildroom/build/show/";

public final static String turnamentMapImg = "https://dofus-tournaments.fr/_default/src/img/maps/A{number}.jpg";
public static final String turnamentMapImg = "https://dofus-tournaments.fr/_default/src/img/maps/A{number}.jpg";

/**
* Twitter Icon from Wikipedia
*/
public final static String twitterIcon = "https://abs.twimg.com/favicons/twitter.2.ico";
public static final String twitterIcon = "https://abs.twimg.com/favicons/twitter.2.ico";

/**
* RSS Icon from Wikipedia
*/
public final static String rssIcon = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Feed-icon.svg/20px-Feed-icon.svg.png";
public static final String rssIcon = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Feed-icon.svg/20px-Feed-icon.svg.png";

/**
* Character limit for nickname discord
*/
public final static int nicknameLimit = 32;
public static final int nicknameLimit = 32;

/**
* Character limit for prefixe discord
*/
public final static int prefixeLimit = 3;
public static final int prefixeLimit = 3;

/**
* User or channel dedicated to receive info logs.
*/
public final static long chanReportID = 321197720629149698L;
public static final long chanReportID = 321197720629149698L;

/**
* User or channel dedicated to receive error logs.
*/
public final static long chanErrorID = 358201712600678400L;
public static final long chanErrorID = 358201712600678400L;

/**
* Official changelog
*/
public final static long newsChan = 330475075381886976L;
public static final long newsChan = 330475075381886976L;

/**
* Almanax API URL
*/
public final static String almanaxURL = "https://api.dofusdu.de/{game}/{language}/almanax/{date}";
public static final String almanaxURL = "https://api.dofusdu.de/{game}/{language}/almanax/{date}";

/**
* Almanax Redis cache time to live for each cached day
*/
public final static int almanaxCacheHoursTTL = 3;
public static final int almanaxCacheHoursTTL = 3;

/**
* Discord invite link
*/
public final static String discordInvite = "https://discord.gg/VsrbrYC";
public static final String discordInvite = "https://discord.gg/VsrbrYC";
}
30 changes: 8 additions & 22 deletions src/main/java/enums/Language.java
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
package enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

/**
* Created by steve on 07/06/2017.
*/
@Getter
@AllArgsConstructor
public enum Language {

FR("Français", "FR", List.of("fr")),
EN("English", "EN", List.of("en-US", "en-GB")),
ES("Español", "ES", List.of("es-ES"));

private String name;
private String abrev;

private List<String> locale;

Language(String name, String abrev, List<String> locale){
this.name = name;
this.abrev = abrev;
this.locale = locale;
}

public String getName() {
return name;
}

public String getAbrev() {
return abrev;
}

public List<String> getLocales() {
return locale;
}
private final String name;
private final String abrev;
private final List<String> locales;

@Override
public String toString(){
Expand Down
Loading

0 comments on commit a86a702

Please sign in to comment.