remove docker socket permissions from the bot and embed the bot users ID into the invite link instead of hard coding it

This commit is contained in:
Luke Robles 2020-09-01 12:48:44 -07:00
parent f7faafe4f6
commit 7c11e05356
3 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ def get_help_embed(bot):
description2 = "**Use `!help <Command>` for more information about a command.** \n\n" + \
"**Examples:** \n `!help dog` for detailed help for the dog command \n\n" + \
"**Useful links:** [My source code](http://git.luker.gq/ldooks/dragon-bot), [Server status](http://luker.gq/status), [Donate](http://luker.gq/donate) \n\n" + \
"**Invite me to another server:** [Click here](https://discord.com/oauth2/authorize?client_id=391781301419638784&scope=bot)"
"**Invite me to another server:** [Click here](https://discord.com/oauth2/authorize?client_id=%s&scope=bot)" % bot.user.id
embed.add_field(name="\u200b", value=description2, inline=False)
return embed

View File

@ -6,5 +6,5 @@ printf "[+] Done\n"
# Run that shit and mount the docker socket so it can talk to the sky-factory container
printf "\n[-] Pulling latest build of container\n"
docker pull ldooks/dragon-bot:latest
docker run -d --name dragon-bot --env-file /home/ldooks/dragon_bot_env -v /var/run/docker.sock:/var/run/docker.sock --restart always ldooks/dragon-bot:latest
docker run -d --name dragon-bot --env-file /home/ldooks/dragon_bot_env --restart always ldooks/dragon-bot:latest
printf "[+] Done\n"

View File

@ -6,4 +6,4 @@ printf "[+] Done\n"
printf "\n[-] Running dragon bot in test mode\n"
docker build -f ./Dockerfile-test-env -t dragon-bot-test . || exit
docker run -ti --rm --name dragon-bot-test -e DRAGON_ENV=test -e token="MzQ1MjkwMTI5OTQ4Mjc4Nzg0.DG5IBw._9umb82PrL22bPe7GjmHClU-NtU" -v /var/run/docker.sock:/var/run/docker.sock dragon-bot-test sh
docker run -ti --rm --name dragon-bot-test -e DRAGON_ENV=test -e token="MzQ1MjkwMTI5OTQ4Mjc4Nzg0.DG5IBw._9umb82PrL22bPe7GjmHClU-NtU" dragon-bot-test sh