Discord Bot framework for Java.
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.
discordBot/DiscordDivaBot/src/sig/Check.java

25 lines
529 B

4 years ago
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>=10000) {
dead=true;
bot.getTextChannelById(744692511703826462l).sendMessage("<:sakiDead1:799650259487293440><:sakiDead2:799650259746947083>")
.queue();
}
}
}