Add Info Cog #11

Merged
cswimr merged 19 commits from info into master 2023-07-01 11:36:31 -04:00
Showing only changes of commit 452f130ec1 - Show all commits

View file

@ -10,8 +10,8 @@ class Info(commands.Cog):
self.client = client self.client = client
@staticmethod @staticmethod
def rgb_to_hex(r, g, b): # pylint: disable=invalid-name def rgb_to_hex(R, G, B):
return '#{:02x}{:02x}{:02x}'.format(r, g, b) # pylint: disable=consider-using-f-string return f'#{R:02x}{G:02x}{B:02x}'
async def upload_to_revolt(self, ctx: commands.Context, asset: revolt.Asset, color: bool = False): async def upload_to_revolt(self, ctx: commands.Context, asset: revolt.Asset, color: bool = False):
"""Uploads an asset to Revolt and returns the asset ID.""" """Uploads an asset to Revolt and returns the asset ID."""