Changed conversion

This commit is contained in:
root 2020-02-02 14:41:45 +01:00
parent e12609a6be
commit a4aaa134bb
2 changed files with 8 additions and 3 deletions

View file

@ -65,12 +65,12 @@ class AutoConvert(commands.Cog):
for currency in self.currencies:
if currency == element[1]:
continue
currency_string += f"{self.convert_currency(element[1], currency, element[0])}{currency}, "
embed.add_field(name=str(element[0])+element[1], value=currency_string[:-2])
currency_string += f"{currency}{self.convert_currency(element[1], currency, element[0])}, "
embed.add_field(name=element[1]+str(element[0]), value=currency_string[:-2])
if not empty:
await message.channel.send(embed=embed)
def setup(client: discord.Client):
client.add_cog(AutoConvert(client))
client.add_cog(AutoConvert(client))

5
data/count.py Normal file
View file

@ -0,0 +1,5 @@
count=0
with open('naughty_step.txt', 'r') as file:
for line in file:
count += len(line)
print(count)