forked from lemon65/lemon_bot_discord
-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_bot.sh
executable file
·39 lines (35 loc) · 1.06 KB
/
run_bot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
source "$( dirname "${BASH_SOURCE[0]}" )/scripts/common-functions.sh"
function main {
cd "$repo"
docker build -f Dockerfile . --tag lemon
source "$repo/secrets"
docker run -it \
--network host \
--env DATABASE_HOST=localhost \
--env DATABASE_PORT=5432 \
--env DATABASE_NAME=lemon \
--env DATABASE_USERNAME=lemon \
--env DATABASE_PASSWORD=lemon \
--env LEMONBOT_TOKEN \
--env ADMIN_USER_IDS \
--env DISCORD_BOT_ID \
--env DISCORD_CLIENT_ID \
--env DISCORD_CLIENT_SECRET \
--env DISCORD_CALLBACK_URL="http://localhost:8080/login/oauth2/code/discord" \
--env WOLFRAM_ALPHA_APPID \
--env OPEN_WEATHER_APPID \
--env BING_CLIENTID \
--env BING_SECRET \
--env OSU_API_KEY \
--env STEAM_API_KEY \
--env FACEIT_API_KEY \
--env WEB_SESSION_SECRET \
--env WITHINGS_CLIENT_ID \
--env WITHINGS_CLIENT_SECRET \
--env WITHINGS_CALLBACK_URL="http://localhost:8080/auth/withings/callback" \
--env OPENAI_KEY \
--env KANSALLISGALLERIA_API_KEY \
lemon
}
main "$@"