package Ġme . elli ott . nano . services Ċ Ċ import Ġcom . gitlab . k ord lib . common . entity . Snow flake Ċ import Ġcom . gitlab . k ord lib . core . entity . Guild Ċ import Ġcom . gitlab . k ord lib . core . entity . channel . Text Channel Ċ import Ġme . elli ott . nano . data . Configuration Ċ import Ġme . j ake j mat t son . discord kt . api . Discord Ċ import Ġme . j ake j mat t son . discord kt . api . annotations . Service Ċ Ċ @ Service Ċ class ĠLogger Service ( private Ġval Ġconfiguration : ĠConfiguration , Ġprivate Ġval Ġdiscord : ĠDiscord ) Ġ{ ĊĠĠĠ Ġsuspend Ġfun Ġlog ( message : ĠString ) Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġguild Config Ġ= Ġconfiguration . guild Ġ?: Ġreturn ĊĠĠĠĠĠĠĠ Ġval Ġlogging Channel Ġ= Ġdiscord . api . getChannel Of < Text Channel >( Snow flake ( guild Config . logging Channel )) Ġ?: Ġreturn ĊĊĠĠĠĠĠĠĠ Ġlogging Channel . create Message ( message ) ĊĠĠĠ Ġ} Ċ }