Minor refactoring
This commit is contained in:
parent
e1af52377c
commit
16b3629362
3 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ import com.bot4s.telegram.api.RequestHandler
|
|||
import com.bot4s.telegram.api.declarative.{Command, Commands}
|
||||
import com.bot4s.telegram.clients.ScalajHttpClient
|
||||
import com.bot4s.telegram.future.{Polling, TelegramBot}
|
||||
import com.bot4s.telegram.models.{Message, User}
|
||||
import com.bot4s.telegram.models.User
|
||||
import org.congressodeiradicali.karlmarx.coreplugins.{BanPlugin, EchoPlugin, PluginManagerPlugin, SetPlugin}
|
||||
import slogging.{LogLevel, LoggerConfig, PrintLoggerFactory}
|
||||
|
||||
|
@ -44,7 +44,7 @@ class Bot(val token: String) extends TelegramBot
|
|||
|
||||
def getLogger() = logger
|
||||
|
||||
def plugin(plugin: Plugin) = plugin.identifier -> plugin
|
||||
private def plugin(plugin: Plugin) = plugin.identifier -> plugin
|
||||
|
||||
var plugins: Map[String, Plugin] = Map(
|
||||
plugin(new PluginManagerPlugin(this)),
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
package org.congressodeiradicali.karlmarx.coreplugins
|
||||
|
||||
import com.bot4s.telegram.api.declarative.{CommandFilterMagnet, CommandImplicits}
|
||||
import org.congressodeiradicali.karlmarx.{Bot, Localizer}
|
||||
import org.congressodeiradicali.karlmarx.Bot
|
||||
|
||||
import scala.concurrent.{ExecutionContext, Future}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.congressodeiradicali.karlmarx.coreplugins
|
|||
|
||||
import com.bot4s.telegram.api.declarative.{CommandFilterMagnet, CommandImplicits}
|
||||
import com.bot4s.telegram.models.Message
|
||||
import org.congressodeiradicali.karlmarx.{Bot, LocalizableString, Plugin}
|
||||
import org.congressodeiradicali.karlmarx.{Bot, LocalizableString}
|
||||
|
||||
import scala.concurrent.{ExecutionContext, Future}
|
||||
|
||||
|
|
Loading…
Reference in a new issue