Compare commits
13
Commits
18137c054b
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c018ab81b | ||
|
|
d63d03aead | ||
|
|
fffedeccbd | ||
|
|
b7bf9494aa | ||
|
|
dbba4533c3 | ||
|
|
e7c0d8485d | ||
|
|
b5d292e6ca | ||
|
|
e19a3b4378 | ||
|
|
5013fffa59 | ||
|
|
69cedfc114 | ||
|
|
d1b6085ee8 | ||
|
|
78e9cc11a1 | ||
|
|
40c1f9dcb4 |
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"convertable": true,
|
||||||
|
"units": {
|
||||||
|
"kilogram": {
|
||||||
|
"factor": 1,
|
||||||
|
"aliases": [
|
||||||
|
"kg",
|
||||||
|
"kgs",
|
||||||
|
"kilogram",
|
||||||
|
"kilograms",
|
||||||
|
"kilogramme",
|
||||||
|
"kilogrammes",
|
||||||
|
"kg.",
|
||||||
|
"kgs."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"pound": {
|
||||||
|
"factor": 0.45,
|
||||||
|
"aliases": [
|
||||||
|
"lb",
|
||||||
|
"lb.",
|
||||||
|
"lbs",
|
||||||
|
"lbs.",
|
||||||
|
"pound",
|
||||||
|
"pounds"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tonne": {
|
||||||
|
"factor": 1000,
|
||||||
|
"aliases": [
|
||||||
|
"t",
|
||||||
|
"t.",
|
||||||
|
"tonne",
|
||||||
|
"tonnes"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,7 +12,7 @@ class FitnessCog(commands.Cog):
|
|||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
default_threads = "1457402451530350727,1328363409648910356"
|
default_threads = "1457402451530350727,1328363409648910356,1533433244186443827"
|
||||||
threads_raw = os.getenv("THREADS_ID", default_threads)
|
threads_raw = os.getenv("THREADS_ID", default_threads)
|
||||||
|
|
||||||
self.threads_id: list[int] = []
|
self.threads_id: list[int] = []
|
||||||
@@ -117,7 +117,7 @@ class FitnessCog(commands.Cog):
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
unit = parts[2] if len(parts) > 2 else "m"
|
unit = parts[2] if len(parts) > 2 else None
|
||||||
|
|
||||||
timestamp = int(message.created_at.timestamp())
|
timestamp = int(message.created_at.timestamp())
|
||||||
username = message.author.name
|
username = message.author.name
|
||||||
|
|||||||
Reference in New Issue
Block a user