Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
dorythecat committed Aug 29, 2024
2 parents 0a80d3b + bdf4d36 commit 838892d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches:
- main
- 'releases/*'
- development

jobs:
qodana:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions src/cogs/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 838892d

Please sign in to comment.