You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
666 B
27 lines
666 B
package sig;
|
|
|
|
import java.util.TimerTask;
|
|
|
|
import net.dv8tion.jda.api.JDA;
|
|
|
|
public class Check extends TimerTask{
|
|
public boolean dead=false;
|
|
public long lastChannelMessage=System.currentTimeMillis();
|
|
public JDA bot;
|
|
|
|
public Check(JDA bot) {
|
|
this.bot=bot;
|
|
}
|
|
|
|
@Override
|
|
public void run() {
|
|
if (!dead&&System.currentTimeMillis()-lastChannelMessage>=10800000) {
|
|
dead=true;
|
|
bot.getTextChannelById(772923108997857291l).sendMessage("<:sakiPls:820748397031718923><:sakiPls:820748397031718923>")
|
|
.queue();
|
|
/*bot.getTextChannelById(744692511703826462l).sendMessage("<:sakiPls:820748397031718923><:sakiPls:820748397031718923>")
|
|
.queue();*/
|
|
}
|
|
}
|
|
|
|
} |