package Ġme . me li jn . me lij nb ot . commands . music Ċ Ċ import Ġme . me li jn . me lij nb ot . objects . command . Abstract Command Ċ import Ġme . me li jn . me lij nb ot . objects . command . Command Category Ċ import Ġme . me li jn . me lij nb ot . objects . command . Command Context Ċ import Ġme . me li jn . me lij nb ot . objects . command . Run Condition Ċ import Ġme . me li jn . me lij nb ot . objects . utils . get Duration String Ċ import Ġme . me li jn . me lij nb ot . objects . utils . getTime From Args N Message Ċ import Ġme . me li jn . me lij nb ot . objects . utils . send Msg Ċ Ċ class ĠSeek Command Ġ: ĠAbstract Command (" command . seek ") Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġid Ġ= Ġ 8 9 ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġ" seek " ĊĠĠĠĠĠĠĠ Ġaliases Ġ= ĠarrayOf (" scr ub ", Ġ" seek To ") ĊĠĠĠĠĠĠĠ Ġrun Conditions Ġ= ĠarrayOf ( Run Condition . VC _ BOT _ AL ONE _ OR _ USER _ DJ , ĠRun Condition . PLAY ING _ TRACK _ NOT _ NULL ) ĊĠĠĠĠĠĠĠ Ġcommand Category Ġ= ĠCommand Category . M US IC ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġexecute ( context : ĠCommand Context ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġi Player Ġ= Ġcontext . guild Music Player . guild Track Manager . i Player ĊĠĠĠĠĠĠĠ Ġval Ġtrack Ġ= Ġi Player . playing Track ĊĠĠĠĠĠĠĠ Ġval Ġtrack Duration Ġ= Ġtrack . duration ĊĠĠĠĠĠĠĠ Ġvar Ġtrack Position Ġ= Ġi Player . track Position ĊĊĊĠĠĠĠĠĠĠ Ġval Ġmsg Ġ= Ġif Ġ( context . args . isEmpty ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontext . get Translation ("$ root . show ") ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtrack Position Ġ= ĠgetTime From Args N Message ( context , Ġ 0 , Ġtrack Duration ) Ġ?: Ġreturn ĊĠĠĠĠĠĠĠĠĠĠĠ Ġi Player . seek To ( track Position ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontext . get Translation ("$ root . seek ed ") ĊĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. replace ("% duration %", Ġget Duration String ( track Duration )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. replace ("% position %", Ġget Duration String ( track Position )) ĊĊĠĠĠĠĠĠĠ Ġsend Msg ( context , Ġmsg ) ĊĠĠĠ Ġ} Ċ }