From 1fb897e738ad21ca0841af5b9efc739a8b4e4d9c Mon Sep 17 00:00:00 2001 From: Dory Date: Thu, 29 Aug 2024 22:06:42 +0200 Subject: [PATCH 1/3] "Fixed" #16 --- src/cogs/transformation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cogs/transformation.py b/src/cogs/transformation.py index d41911a..ed2a259 100644 --- a/src/cogs/transformation.py +++ b/src/cogs/transformation.py @@ -146,6 +146,12 @@ async def transform(self, await ctx.respond(f'You have transformed {user.mention} into "{into}"!') return + # This avoids a bug with avatar images (See https://github.com/dorythecat/TransforMate/issues/16) + # TODO: Find a better fix, perhaps? + if utils.is_transformed(ctx.author, ctx.guild): + await ctx.respond(f"You can't transform someone (using this method) whilst you're transformed yourself!") + return + await ctx.respond(f"What do we want to transform {user.mention} into? (Send CANCEL to cancel)") response = await self.bot.wait_for('message', check=lambda m: m.author == ctx.author) if response.content.strip() == "CANCEL": From d879206f2f943c340c693993514bf57b63d337c7 Mon Sep 17 00:00:00 2001 From: Dory Date: Thu, 29 Aug 2024 22:09:10 +0200 Subject: [PATCH 2/3] Updated code_quality.yml --- .github/workflows/code_quality.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 394f03f..6ca1add 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -5,7 +5,7 @@ on: push: branches: - main - - 'releases/*' + - development jobs: qodana: From bdf4d36f9125af2a3436144eaf92bbee4cbe6cb0 Mon Sep 17 00:00:00 2001 From: Dory Date: Thu, 29 Aug 2024 22:13:54 +0200 Subject: [PATCH 3/3] Updated README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index efe5dc8..f6d1036 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Qodana](https://github.com/dorythecat/TransforMate/actions/workflows/code_quality.yml/badge.svg)](https://github.com/dorythecat/TransforMate/actions/workflows/code_quality.yml) +[![CodeQL](https://github.com/dorythecat/TransforMate/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/dorythecat/TransforMate/actions/workflows/github-code-scanning/codeql) # TransforMate (WIP) > A bot to Trasform your Mates @@ -43,7 +44,13 @@ transforming your friends and family? Well, look no further! With TransforMate, - And more fun stuff!!! ## Inviting TransforMate -TransforMate is not *yet* open to the public. Come back later! +To invite TransforMate to your server, you can use [this link](https://discord.com/oauth2/authorize?client_id=1274436972621987881). +You can either use it as is, or, if you have any security concerns with giving the bot the Administrator permission, you +can also disable it and just keep the other permissions active, though this may need additional setup, and may be prone +to unusual behaviours. + +By adding TransforMate to your server, you agree to our [Terms of Service](https://docs.google.com/document/d/1S9yDP6tI2tHs-FhqjGF9AsBZAFnHrYFyxnsIK042fvk), +and to our [Privacy Policy](https://docs.google.com/document/d/18cg4aW2XW6CE21X17SqOCFOie-fmXR6xkjDQ0LcCUqE). ## Hosting TransforMate To host your own TransforMate isntance, you'll just need to clone this repo, install the requirements,