package Ġgg . octave . bot . entities Ċ Ċ import Ġcom . google . common . reflect . Type Token Ċ import Ġgg . octave . bot . utils . get Ċ import Ġgg . octave . bot . utils . to Duration Ċ import Ġn inja . le aping . configur ate . ho con . Ho con Configuration Loader Ċ import Ġjava . io . File Ċ import Ġjava . time . Duration Ċ Ċ class ĠConfiguration ( file : ĠFile ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġloader Ġ= ĠHo con Configuration Loader . builder (). set File ( file ). build () ĊĠĠĠ Ġprivate Ġval Ġconfig Ġ= Ġloader . load () ĊĊĠĠĠ Ġ// Ġ+ -------------- + ĊĠĠĠ Ġ// ĠCommand ĠSettings ĊĠĠĠ Ġ// Ġ+ -------------- + ĊĠĠĠ Ġval Ġprefix : ĠString Ġ= Ġconfig [" commands ", Ġ" prefix "]. getString ("_ ") ĊĠĠĠ Ġval Ġadmins : ĠList < Long > Ġ= Ġconfig [" commands ", Ġ" administr ators "]. getList ( Type Token . of ( Long :: class . java ObjectType )) ĊĊĠĠĠ Ġ// Ġ+ -------------- + ĊĠĠĠ Ġ// ĠBot ĠSettings ĊĠĠĠ Ġ// Ġ+ -------------- + ĊĠĠĠ Ġval Ġname : ĠString Ġ= Ġconfig [" bot ", Ġ" name "]. getString (" Oct ave ") ĊĠĠĠ Ġval Ġgame : ĠString Ġ= Ġconfig [" bot ", Ġ" game "]. getString ("${ prefix } help Ġ| Ġ% d ") ĊĠĠĠ Ġval Ġset Activity ToS ong : ĠBoolean Ġ= Ġconfig [" bot ", Ġ" set Activity ToS ong "]. getBoolean ( false ) ĊĊĠĠĠ Ġval Ġipv 6 Block : ĠString Ġ= Ġconfig [" bot ", Ġ" ipv 6 block "]. getString ( null ) ĊĠĠĠ Ġval Ġipv 6 Exclude : ĠString Ġ= Ġconfig [" bot ", Ġ" ipv 6 Exclude "]. getString ( null ) ĊĊĠĠĠ Ġval Ġs entry D sn : ĠString Ġ= Ġconfig [" bot ", Ġ" sentry "]. getString ( null ) ĊĠĠĠ Ġval Ġbucket Factor : ĠInt Ġ= Ġconfig [" bot ", Ġ" bucket Factor "]. getInt ( 8 ) ĊĊĠĠĠ Ġ// Ġ+ -------------- + ĊĠĠĠ Ġ// ĠMusic ĠSettings ĊĠĠĠ Ġ// Ġ+ -------------- + ĊĠĠĠ Ġval Ġmusic Enabled Ġ= Ġconfig [" music ", Ġ" enabled "]. getBoolean ( true ) ĊĠĠĠ Ġval Ġsearch Enabled Ġ= Ġconfig [" music ", Ġ" search "]. getBoolean ( true ) ĊĊĠĠĠ Ġval Ġqueue Limit Ġ= Ġconfig [" music ", Ġ" queue Ġlimit "]. getInt ( 2 0 ) ĊĠĠĠ Ġval Ġmusic Limit Ġ= Ġconfig [" music ", Ġ" limit "]. getInt ( 5 0 0 ) ĊĊĠĠĠ Ġval Ġduration Limit Text : ĠString Ġ= Ġconfig [" music ", Ġ" duration Ġlimit "]. getString (" 2 Ġhours ") ĊĠĠĠ Ġval Ġduration Limit : ĠDuration Ġ= Ġduration Limit Text . to Duration () ĊĊĠĠĠ Ġval Ġvote Skip Cooldown Text : ĠString Ġ= Ġconfig [" music ", Ġ" vote Ġskip Ġcool down "]. getString (" 3 5 Ġseconds ") ĊĠĠĠ Ġval Ġvote Skip Cooldown : ĠDuration Ġ= Ġvote Skip Cooldown Text . to Duration () ĊĊĠĠĠ Ġval Ġvote Skip Duration Text : ĠString Ġ= Ġconfig [" music ", Ġ" vote Ġskip Ġduration "]. getString (" 2 0 Ġseconds ") ĊĠĠĠ Ġval Ġvote Skip Duration : ĠDuration Ġ= Ġvote Skip Duration Text . to Duration () ĊĊĠĠĠ Ġval Ġvote Play Cooldown Text : ĠString Ġ= Ġconfig [" music ", Ġ" vote Ġplay Ġcool down "]. getString (" 3 5 Ġseconds ") ĊĠĠĠ Ġval Ġvote Play Cooldown : ĠDuration Ġ= Ġvote Skip Cooldown Text . to Duration () ĊĊĠĠĠ Ġval Ġvote Play Duration Text : ĠString Ġ= Ġconfig [" music ", Ġ" vote Ġplay Ġduration "]. getString (" 2 0 Ġseconds ") ĊĠĠĠ Ġval Ġvote Play Duration : ĠDuration Ġ= Ġvote Skip Duration Text . to Duration () Ċ } Ċ