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
|
||||
- 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/**/*
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user