fixing the coom function
This commit is contained in:
parent
c2ea0d4959
commit
fec60d51c1
@ -38,7 +38,7 @@ build_and_push_container:
|
|||||||
- while ! nc -z localhost 2375; do sleep 0.1; done # Wait until docker socket is available
|
- while ! nc -z localhost 2375; do sleep 0.1; done # Wait until docker socket is available
|
||||||
- docker login -u ldooks -p $DOCKER_ACCESS_TOKEN
|
- docker login -u ldooks -p $DOCKER_ACCESS_TOKEN
|
||||||
- docker build -t ldooks/dragon-bot:$CI_PIPELINE_IID -t ldooks/dragon-bot:latest .
|
- docker build -t ldooks/dragon-bot:$CI_PIPELINE_IID -t ldooks/dragon-bot:latest .
|
||||||
- docker push ldooks/dragon-bot --all-tags
|
- docker push ldooks/dragon-bot -a
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
- app/**/*
|
- app/**/*
|
||||||
|
@ -60,13 +60,17 @@ class Cheeky(commands.Cog):
|
|||||||
if emoji:
|
if emoji:
|
||||||
await message.add_reaction(emoji)
|
await message.add_reaction(emoji)
|
||||||
|
|
||||||
@commands.command(name="coom")
|
@commands.command(name="coom", pass_context=True)
|
||||||
async def coom(self, ctx: commands.Context):
|
async def coom(self, ctx: commands.Context, id=None):
|
||||||
if ctx.message.author.id != 144986109804412928:
|
if ctx.message.author.id != 144986109804412928:
|
||||||
return
|
return
|
||||||
message = list(await ctx.message.channel.history(limit=2).flatten())[-1]
|
message = list(await ctx.message.channel.history(limit=2).flatten())[-1]
|
||||||
for emoji in list(await ctx.message.guild.fetch_emojis()):
|
|
||||||
await ctx.message.add_reaction(emoji)
|
if id:
|
||||||
|
message = await ctx.channel.fetch_message(id)
|
||||||
|
|
||||||
|
for emoji in await ctx.message.guild.fetch_emojis():
|
||||||
|
await message.add_reaction(emoji)
|
||||||
|
|
||||||
@commands.command(name="clap")
|
@commands.command(name="clap")
|
||||||
async def clap(self, ctx: commands.Context):
|
async def clap(self, ctx: commands.Context):
|
||||||
|
@ -6,7 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "148"
|
tag: "149"
|
||||||
repository: ldooks/dragon-bot
|
repository: ldooks/dragon-bot
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user