diff --git a/Dockerfile b/Dockerfile index d55c371..2321564 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,11 @@ FROM openjdk:15-alpine COPY ./build/libs/moviesquotebot.jar /usr/src/MoviesQuoteBot/ WORKDIR /usr/src/MoviesQuoteBot/ + +RUN addgroup --system moviesquotebot && \ + adduser --system --no-create-home --ingroup moviesquotebot moviesquotebot && \ + mkdir logs && \ + chown moviesquotebot:moviesquotebot -R . +USER moviesquotebot + CMD [ "java", "-jar", "moviesquotebot.jar" ] diff --git a/src/main/java/xyz/vallat/louis/MoviesQuoteBot.java b/src/main/java/xyz/vallat/louis/MoviesQuoteBot.java index 25134d5..5b3e23a 100644 --- a/src/main/java/xyz/vallat/louis/MoviesQuoteBot.java +++ b/src/main/java/xyz/vallat/louis/MoviesQuoteBot.java @@ -10,8 +10,8 @@ public class MoviesQuoteBot { public static final String PREFIX = "!"; public static final String NAME = "Movies Quote Bot"; - public static final String DESCRIPTION = "I may know some quotes from some movies."; - public static final String VERSION = "0.3.5-SNAPSHOT"; + public static final String DESCRIPTION = "I may know quotes from movies."; + public static final String VERSION = "0.3.6-SNAPSHOT"; private static final Logger logger = LoggerFactory.getLogger(MoviesQuoteBot.class.getCanonicalName()); public static void main(String[] args) { diff --git a/src/main/java/xyz/vallat/louis/discord/DiscordManager.java b/src/main/java/xyz/vallat/louis/discord/DiscordManager.java index 41e1a34..7f5b80f 100644 --- a/src/main/java/xyz/vallat/louis/discord/DiscordManager.java +++ b/src/main/java/xyz/vallat/louis/discord/DiscordManager.java @@ -61,7 +61,7 @@ public final class DiscordManager { } ).block(); assert discordClient != null; - discordClient.updatePresence(Presence.online(Activity.watching("some more films"))).subscribe(); + discordClient.updatePresence(Presence.online(Activity.watching("more films"))).subscribe(); discordClient.getEventDispatcher().on(ReadyEvent.class) .subscribe(event -> { User self = event.getSelf();