fixing the coom function

This commit is contained in:
Luke Robles 2022-05-21 19:59:17 -07:00
parent 161a022dd8
commit c7b4b93a3c
3 changed files with 10 additions and 6 deletions

View File

@ -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/**/*

View File

@ -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):

View File

@ -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