2-3 modifications très légères
Bump de la version
This commit is contained in:
@@ -17,7 +17,7 @@ import net.dv8tion.jda.api.entities.Activity;
|
||||
import net.dv8tion.jda.api.utils.cache.CacheFlag;
|
||||
|
||||
public class JdrBot {
|
||||
public static String Version = "2.61";
|
||||
public static String Version = "2.62";
|
||||
|
||||
public static JDA jda;
|
||||
public static LocalDateTime basedate;
|
||||
|
||||
@@ -15,7 +15,6 @@ import net.dv8tion.jda.api.events.user.update.UserUpdateOnlineStatusEvent;
|
||||
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
||||
|
||||
public class JdrBotListener extends ListenerAdapter {
|
||||
|
||||
Random r = new Random();
|
||||
|
||||
@Override
|
||||
|
||||
@@ -35,7 +35,6 @@ public class TrackScheduler extends AudioEventAdapter {
|
||||
System.out.println("Launching track:"+track.getInfo().title);
|
||||
} else {
|
||||
stop();
|
||||
//am.closeAudioConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ public class Emote extends Command {
|
||||
public void call(GuildMessageReceivedEvent e) {
|
||||
String[] args = Arrays.copyOfRange(e.getMessage().getContentRaw().split(" "), 1, e.getMessage().getContentRaw().split(" ").length);
|
||||
|
||||
String str = (String)args[0];
|
||||
String str = args[0];
|
||||
if(str.matches("<:.*:\\d+>"))
|
||||
{
|
||||
String id = str.replaceAll("<:.*:(\\d+)>", "$1");
|
||||
|
||||
@@ -12,7 +12,7 @@ import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent;
|
||||
import net.dv8tion.jda.api.events.user.update.UserUpdateOnlineStatusEvent;
|
||||
|
||||
public class LastTimeOnline extends Command {
|
||||
static HashMap<String, LocalDateTime> AllUsers = new HashMap<String, LocalDateTime>();
|
||||
static HashMap<String, LocalDateTime> AllUsers = new HashMap<>();
|
||||
|
||||
public LastTimeOnline() {
|
||||
SetName("lasttimeonline|lto");
|
||||
|
||||
@@ -18,7 +18,7 @@ public class FLoad extends Command {
|
||||
|
||||
@Override
|
||||
public void call(GuildMessageReceivedEvent e) {
|
||||
if(e.getGuild().getMember(e.getAuthor()).getVoiceState().getChannel() != null) {
|
||||
if(e.getMember().getVoiceState().getChannel() != null) {
|
||||
String args = StringUtils.join(Arrays.copyOfRange(e.getMessage().getContentRaw().split(" "), 1, e.getMessage().getContentRaw().split(" ").length), " ");
|
||||
|
||||
e.getGuild().getAudioManager().openAudioConnection(e.getMember().getVoiceState().getChannel());
|
||||
|
||||
@@ -18,7 +18,7 @@ public class FLoadLoop extends Command {
|
||||
|
||||
@Override
|
||||
public void call(GuildMessageReceivedEvent e) {
|
||||
if(e.getGuild().getMember(e.getAuthor()).getVoiceState().getChannel() != null) {
|
||||
if(e.getMember().getVoiceState().getChannel() != null) {
|
||||
String args = StringUtils.join(Arrays.copyOfRange(e.getMessage().getContentRaw().split(" "), 1, e.getMessage().getContentRaw().split(" ").length)," ");
|
||||
|
||||
e.getGuild().getAudioManager().openAudioConnection(e.getMember().getVoiceState().getChannel());
|
||||
|
||||
Reference in New Issue
Block a user