Changed conversion
This commit is contained in:
parent
e12609a6be
commit
a4aaa134bb
|
@ -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
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…
Reference in a new issue