Compare commits
3 commits
f20ec50cdc
...
8e6a6418fa
Author | SHA1 | Date | |
---|---|---|---|
8e6a6418fa | |||
2f45a0fa4a | |||
ebc014d285 |
2 changed files with 11 additions and 4 deletions
|
@ -7,10 +7,10 @@ jobs:
|
|||
container: catthehacker/ubuntu:act-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.11.2"]
|
||||
python-version: ["3.11.5"]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3.6
|
||||
with:
|
||||
token: ${{ secrets.COASTALCOMMITSTOKEN}}
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
|
@ -22,5 +22,5 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip install pylint
|
||||
pip install -U Red-DiscordBot pytimeparse2 yt-dlp
|
||||
- name: Analysing the code with pylint
|
||||
- name: Analysing the code with Pylint
|
||||
run: pylint $(git ls-files '*.py')
|
||||
|
|
|
@ -37,7 +37,14 @@ class Galaxy(commands.Cog):
|
|||
await ctx.send(f"Output link: {output}")
|
||||
|
||||
@commands.Cog.listener('on_message')
|
||||
async def autoreact(self, message):
|
||||
async def gank_won_let_us_flee(self, message: discord.Message):
|
||||
if message.guild.id == 204965774618656769 and message.channel.id == 753714180900519937 and message.author.id == 745790085789909033:
|
||||
embeds = message.embeds
|
||||
if len(embeds) == 1 and embeds[0].color == '#57f288':
|
||||
await message.reply("https://media.discordapp.net/attachments/409210244619698176/1115473811819737149/attachment.gif")
|
||||
|
||||
@commands.Cog.listener('on_message')
|
||||
async def autoreact(self, message: discord.Message):
|
||||
if message.guild is not None:
|
||||
emoji_id = await self.config.guild(message.guild).autoreact_emoji()
|
||||
if self.check_if_discord_unicode_emoji(emoji_id) is False:
|
||||
|
|
Loading…
Reference in a new issue