Compare commits

...

3 commits

2 changed files with 11 additions and 4 deletions

View file

@ -7,10 +7,10 @@ jobs:
container: catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.11.2"] python-version: ["3.11.5"]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v3.6
with: with:
token: ${{ secrets.COASTALCOMMITSTOKEN}} token: ${{ secrets.COASTALCOMMITSTOKEN}}
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -22,5 +22,5 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pylint pip install pylint
pip install -U Red-DiscordBot pytimeparse2 yt-dlp 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') run: pylint $(git ls-files '*.py')

View file

@ -37,7 +37,14 @@ class Galaxy(commands.Cog):
await ctx.send(f"Output link: {output}") await ctx.send(f"Output link: {output}")
@commands.Cog.listener('on_message') @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: if message.guild is not None:
emoji_id = await self.config.guild(message.guild).autoreact_emoji() emoji_id = await self.config.guild(message.guild).autoreact_emoji()
if self.check_if_discord_unicode_emoji(emoji_id) is False: if self.check_if_discord_unicode_emoji(emoji_id) is False: