diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f34859f7..e0749726 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,7 @@ build_and_push_container: - 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 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: - changes: - app/**/* diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index 5c017138..dd91a45b 100644 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -60,13 +60,17 @@ class Cheeky(commands.Cog): if emoji: await message.add_reaction(emoji) - @commands.command(name="coom") - async def coom(self, ctx: commands.Context): + @commands.command(name="coom", pass_context=True) + async def coom(self, ctx: commands.Context, id=None): if ctx.message.author.id != 144986109804412928: return 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") async def clap(self, ctx: commands.Context): diff --git a/helm/values.yaml b/helm/values.yaml index ed619b22..3c856e84 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: # Overrides the image tag whose default is the chart appVersion. - tag: "148" + tag: "149" repository: ldooks/dragon-bot pullPolicy: IfNotPresent