Skip to content

Commit

Permalink
Thanks Nocks!
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaysoro committed Aug 10, 2023
1 parent 19b53f7 commit 80c79a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 21 deletions.
3 changes: 2 additions & 1 deletion src/main/java/enums/Donator.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ public enum Donator {
DARKRAI("Darkrai#8780"),
DREAMSVOID("DreamsVoid#8802"),
SIID("! ༺ -Siid- ༻ !#0001"),
TYNAGMO("Tynagmo");
TYNAGMO("Tynagmo"),
NOCKS("Nocks");

private String name;

Expand Down
14 changes: 0 additions & 14 deletions src/main/java/util/ClientConfig.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package util;

import commands.CommandManager;
import data.Constants;
import discord4j.core.DiscordClient;
import discord4j.core.GatewayDiscordClient;
Expand All @@ -15,7 +14,6 @@
import discord4j.core.shard.MemberRequestFilter;
import discord4j.gateway.intent.Intent;
import discord4j.gateway.intent.IntentSet;
import discord4j.rest.RestClient;
import io.sentry.Sentry;
import listeners.*;
import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -100,8 +98,6 @@ public static DiscordClient DISCORD() {
}

public void loginDiscord(){
registerSlashCommands(DISCORD()).block();

DISCORD().gateway()
.setEnabledIntents(IntentSet.of(
Intent.GUILDS,
Expand Down Expand Up @@ -143,16 +139,6 @@ public static synchronized ClientConfig getInstance(String path){
return instance;
}

private Mono<Void> registerSlashCommands(RestClient client){
return client.getApplicationId()
.flatMap(id -> client.getApplicationService()
.bulkOverwriteGlobalApplicationCommand(id, CommandManager.getSlashCommandRequests())
.doOnNext(cmd -> LOG.info("Successfully registered Global Command " + cmd.name()))
.collectList()
.then()
.doOnError(e -> LOG.error("Failed to register global commands", e)));
}

private Mono<Void> legacyCommandListener(GatewayDiscordClient client){
final MessageListener listener = new MessageListener();
return client.getEventDispatcher().on(MessageCreateEvent.class)
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/label_EN
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ about.invite.title=:electric_plug: Invitation link
about.invite.desc={name} can be invited to your servers with this [link]({invite}). You will need to have sufficient rights to perform the action!
about.support.title=:bulb: Support Server
about.support.desc=You have a problem with its use? A suggestion ? An improvement to propose? Feel free to join the server [Discord {name}]({discordInvite})!
about.twitter.title=<:twitter:383237199925215232> Twitter
about.twitter.title=<:twitter:1100040368445206619> Twitter
about.twitter.desc={name} also has his [Twitter]({twitter}) account: you will find the news or reports of failure!
about.opensource.title=<:github:372093338628784148> Open source
about.opensource.desc=All source code is licensed under GPL-3.0 and accessible on [Github]({git}).
Expand All @@ -442,7 +442,7 @@ about.privacy.title=:shield: Data privacy
about.privacy.desc=I take care to collect the strict minimum data needed to run. More informations on the support server!
about.graphist.title=:art: Visuals
about.graphist.desc=Visuals realized by the great {graphist}!
about.donators.title=:ok_woman: Donors
about.donators.title=:woman_fairy: Donors
about.help=gives information about {name} and a way to get help.
admin.help=explains how work each admin command of {name}.
admin.help.detailed.1=briefly explains each admin command.
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/label_ES
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ about.invite.title=:electric_plug: Enlace de invitación
about.invite.desc={name} puede ser invitado a sus servidores con este [enlace]({invite}). ¡Deberá tener suficientes derechos para realizar la acción!
about.support.title=:bulb: Servidor de soporte
about.support.desc=¿Tienes un problema con su uso? Una sugerencia ? Una mejora para proponer? ¡Siéntete libre de unirte al servidor [Discord {name}]({discordInvite})!
about.twitter.title=<:twitter:383237199925215232> Twitter
about.twitter.title=<:twitter:1100040368445206619> Twitter
about.twitter.desc={name} también tiene su cuenta de [Twitter]({twitter}): ¡encontrará las noticias o informes de fallas!
about.opensource.title=<:github:372093338628784148> Fuente abierta
about.opensource.desc=Todo el código fuente está licenciado bajo GPL-3.0 y accesible en [Github]({git}).
Expand All @@ -442,7 +442,7 @@ about.privacy.title=:shield: Privacidad de datos
about.privacy.desc=Me ocupo de recopilar los datos mínimos estrictos necesarios para ejecutar. ¡Más información en el servidor de soporte!
about.graphist.title=:art: Visuales
about.graphist.desc=Visuales realizados por la brillante {graphist}!
about.donators.title=:ok_woman: Donantes
about.donators.title=:woman_fairy: Donantes
about.help=brinda información sobre {name} y una forma de obtener ayuda.
admin.help=explica cómo funciona cada comando de administración de {name}.
admin.help.detailed.1=explique brevemente cada comando de administrador.
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/label_FR
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ about.invite.title=:electric_plug: Lien d'invitation
about.invite.desc={name} peut être invité sur vos serveurs grâce à ce [lien]({invite}). Vous devrez avoir les droits suffisants pour effectuer l'action !
about.support.title=:bulb: Serveur de support
about.support.desc=Vous rencontrez un problème quant à son utilisation ? Une suggestion ? Une amélioration à proposer ? N'hésitez pas à rejoindre le [Discord de {name}]({discordInvite}) !
about.twitter.title=<:twitter:383237199925215232> Twitter
about.twitter.title=<:twitter:1100040368445206619> Twitter
about.twitter.desc={name} possède également son compte [Twitter]({twitter}) : vous y trouverez les nouveautés ou encore les signalements de panne !
about.opensource.title=<:github:372093338628784148> Open source
about.opensource.desc=L'intégralité du code source est sous licence GPL-3.0 et accessible sur [Github]({git}).
Expand All @@ -552,7 +552,7 @@ about.privacy.title=:shield: Confidentialité des données
about.privacy.desc=Je prends soin de ne collecter que le strict minimum de données pour fonctionner. Plus d'informations sur le serveur de support !
about.graphist.title=:art: Visuels
about.graphist.desc=Visuels réalisés par la géniale {graphist} !
about.donators.title=:ok_woman: Donateurs
about.donators.title=:woman_fairy: Donateurs
about.help=donne des informations sur {name} et un moyen d'obtenir de l'aide.
admin.help=explique le fonctionnement de chaque commande admin de {name}.
admin.help.detailed.1=explique succinctement chaque commande admin.
Expand Down

0 comments on commit 80c79a8

Please sign in to comment.