Fixed bad english + dropped Docker user from root to its own user (moviesquotebot)

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-11-12 21:25:32 +01:00
parent de2c008e63
commit 5b5f42c123
3 changed files with 10 additions and 3 deletions

View File

@ -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" ]

View File

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

View File

@ -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();