Minor refactoring

This commit is contained in:
ekardnam 2019-07-20 08:16:19 +02:00
parent e1af52377c
commit 16b3629362
3 changed files with 4 additions and 4 deletions

View file

@ -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)),

View file

@ -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}

View file

@ -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}