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