Skip to content

Commit a31d6f5

Browse files
committed
Update docker-compose and startup message
1 parent fe88e2d commit a31d6f5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
environment:
66
- DISCORD_TOKEN=${DISCORD_TOKEN}
77
- BOT_PREFIX=${BOT_PREFIX}
8+
- DEBUG_CHANNEL_ID=${DEBUG_CHANNEL_ID}
89
- LOG_FILE=/etc/data/output.txt
910
- SQLITE_DB=/etc/data/db.sqlite
1011
image: poohcom1/mimicri:latest

src/main.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ impl EventHandler for Handler {
5656
.await
5757
.unwrap()
5858
.id()
59-
.say(&ctx.http, "Bot is ready")
59+
.say(
60+
&ctx.http,
61+
format!(
62+
"{} is connected. Version: {}",
63+
ready.user.name,
64+
env!("VERGEN_GIT_SEMVER")
65+
),
66+
)
6067
.await;
6168
}
6269
}
@@ -153,8 +160,6 @@ async fn version(ctx: &Context, msg: &Message) -> CommandResult {
153160
http: ctx.http.clone(),
154161
};
155162

156-
info!(env!("VERGEN_GIT_SEMVER"));
157-
158163
message_ctx
159164
.send_info(format!("Version: {}", env!("VERGEN_GIT_SEMVER")))
160165
.await;

0 commit comments

Comments
 (0)