Changed conversion
This commit is contained in:
parent
e12609a6be
commit
a4aaa134bb
2 changed files with 8 additions and 3 deletions
|
@ -65,12 +65,12 @@ class AutoConvert(commands.Cog):
|
||||||
for currency in self.currencies:
|
for currency in self.currencies:
|
||||||
if currency == element[1]:
|
if currency == element[1]:
|
||||||
continue
|
continue
|
||||||
currency_string += f"{self.convert_currency(element[1], currency, element[0])}{currency}, "
|
currency_string += f"{currency}{self.convert_currency(element[1], currency, element[0])}, "
|
||||||
embed.add_field(name=str(element[0])+element[1], value=currency_string[:-2])
|
embed.add_field(name=element[1]+str(element[0]), value=currency_string[:-2])
|
||||||
|
|
||||||
if not empty:
|
if not empty:
|
||||||
await message.channel.send(embed=embed)
|
await message.channel.send(embed=embed)
|
||||||
|
|
||||||
|
|
||||||
def setup(client: discord.Client):
|
def setup(client: discord.Client):
|
||||||
client.add_cog(AutoConvert(client))
|
client.add_cog(AutoConvert(client))
|
||||||
|
|
5
data/count.py
Normal file
5
data/count.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
count=0
|
||||||
|
with open('naughty_step.txt', 'r') as file:
|
||||||
|
for line in file:
|
||||||
|
count += len(line)
|
||||||
|
print(count)
|
Loading…
Add table
Add a link
Reference in a new issue