command / me.schlaubi.regnumutils.common / GameAnimator

GameAnimator

class GameAnimator

Animates the bots presence according to the specified interval and TimeUnit.

Parameters

scheduler - the Scheduler used to animate the games

applier - A function that applies the games to the JDA instance

initialDelay - The delay between the start and the first animate call

Functions

start

fun start(): ScheduledFuture<*>

Starts the animator.

stop

fun stop(): List<Runnable>

Stops the game animator.

Companion Object Functions

builder

fun builder(): GameAnimatorBuilder

Creates a new GameAnimatorBuilder.