import Ġbot . Bot Ċ import Ġbot . IDS Ċ import Ġbot . Logger Ċ import Ġmodules . Pseudo Admin Module Ċ import Ġmodules . Role Manager Module Ċ import Ġmodules . Welcome Module Ċ import Ġmodules . W ig gle Module Ċ import Ġmodules . am ong Us . A mong Us Module Ċ import Ġmodules . dot a . Response Module Ċ import Ġmodules . module Manager . Module Manager Module Ċ import Ġmodules . voice Channel . VC Module Ċ import Ġjava . io . FileReader Ċ import Ġkotlin . io . path . Experimental Path Api Ċ import Ġkotlin . system . exit Process Ċ Ċ @ Experimental Path Api Ċ fun Ġmain () Ġ{ Ċ ĉ try Ġ{ Ċĉ ĉ val Ġbot Ġ= ĠBot ( IDS . getID (" D PACK _ GU ILD ") !! ) Ċĉ ĉ bot . add Module ( Module Manager Module ()) Ċĉ ĉ bot . add Module ( Response Module ()) Ċĉ ĉ bot . add Module ( A mong Us Module ( IDS . getID (" AM ONG _ US _ TEXT _ CHANNEL ") !! )) Ċĉ ĉ bot . add Module ( VC Module ( IDS . getID (" VC _ ROLE ") !! , ĠIDS . getID (" VC _ TEXT _ CHANNEL ") !! )) Ċĉ ĉ bot . add Module ( Pseudo Admin Module ()) Ċĉ ĉ bot . add Module ( W ig gle Module ()) Ċĉ ĉ bot . add Module ( Role Manager Module ( IDS . getID (" ROLE _ TO GGLE _ MESSAGE ") !! , ĠIDS . getID (" ROLE _ TO GGLE _ CHANNEL ") !! , Ġ" resources / roles ")) Ċĉ ĉ bot . add Module ( Ċĉĉ ĉ Welcome Module ( FileReader (" resources / welcome - message . txt "). read Text (), Ċĉĉĉ ĉ IDS . getID (" MEMBER _ ROLE ") !! )) Ċĉ ĉ bot . startup () Ċ ĉ } Ġcatch Ġ( e Ġ: ĠException ) Ġ{ Ċĉ ĉ Logger . log Error ( e ) Ċĉ ĉ exit Process (- 1 ) Ċ ĉ } Ċ }