commit
245b575f0f
10
Dockerfile
10
Dockerfile
@ -29,11 +29,11 @@ RUN pip install virtualenv
|
|||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
COPY requirements/base.txt .
|
COPY /code/geeksbot_v2/requirements/base.txt .
|
||||||
COPY requirements/production.txt .
|
COPY /code/geeksbot_v2/requirements/production.txt .
|
||||||
COPY requirements/geeksbot.txt .
|
COPY /code/geeksbot_v2/requirements/geeksbot.txt .
|
||||||
COPY .env .
|
COPY /code/geeksbot_v2/.env .
|
||||||
COPY entrypoint .
|
COPY /code/geeksbot_v2/entrypoint .
|
||||||
|
|
||||||
RUN pip install -r production.txt
|
RUN pip install -r production.txt
|
||||||
RUN pip install -r geeksbot.txt
|
RUN pip install -r geeksbot.txt
|
||||||
|
|||||||
@ -56,10 +56,7 @@ class Admin(commands.Cog):
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.cooldown(1, 5, type=commands.BucketType.user)
|
@commands.cooldown(1, 5, type=commands.BucketType.user)
|
||||||
async def ping(self, ctx):
|
async def ping(self, ctx):
|
||||||
"""Check the Bot\'s connection to Discord
|
"""Check the Bot\'s connection to Discord"""
|
||||||
|
|
||||||
For more detailed information set the <mode> as comp and it will test the ping
|
|
||||||
<count> number of times."""
|
|
||||||
em = discord.Embed(style='rich',
|
em = discord.Embed(style='rich',
|
||||||
title=f'Pong 🏓',
|
title=f'Pong 🏓',
|
||||||
color=discord.Colour.green()
|
color=discord.Colour.green()
|
||||||
|
|||||||
9
user-data.sh
Normal file
9
user-data.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
yum update -y
|
||||||
|
mkdir /code || exit
|
||||||
|
cd /code || exit
|
||||||
|
git clone git@github.com:dustinpianalto/geeksbot_v2.git
|
||||||
|
cd geeksbot_v2 || exit
|
||||||
|
docker build . -t geeksbot || exit
|
||||||
|
docker run -d -v /code/geeksbot_v2/geeksbot:/code/geeksbot --name geeksbot --restart always geeksbot:latest || exit
|
||||||
Loading…
x
Reference in New Issue
Block a user