forked from adam/discord-bot-shtik
Compare commits
No commits in common. "401a3ecbc8f827d75cdfd0c48df841904babd7a6" and "4e82eedf9c6697277f65ec14d2cdca5e45e1bb50" have entirely different histories.
401a3ecbc8
...
4e82eedf9c
@ -10,7 +10,7 @@ public class RoomRead : Behavior
|
||||
{
|
||||
public override string Name => "Room Read";
|
||||
|
||||
public override string Trigger => "!roomread";
|
||||
public override string Trigger => "roomread";
|
||||
|
||||
public override async Task<bool> ActOn(Message message)
|
||||
{
|
||||
|
@ -127,7 +127,6 @@ namespace vassago.Conversion
|
||||
return $"{String.Format("{0:N}", accumulator)} {normalizedDestUnit}";
|
||||
}
|
||||
}
|
||||
return "you can never read this.";
|
||||
}
|
||||
return "dimensional analysis failure - I know those units but can't find a path between them.";
|
||||
}
|
||||
@ -171,9 +170,9 @@ namespace vassago.Conversion
|
||||
{
|
||||
if (conv.Item1 == last && currentPath.Contains(conv.Item2) == false && conv.Item3 != null)
|
||||
{
|
||||
var test = exhaustiveBreadthFirst(dest, currentPath.Append(conv.Item2));
|
||||
if (test != null)
|
||||
return test;
|
||||
var test = exhaustiveBreadthFirst(dest, currentPath.Append(conv.Item2));
|
||||
if (test != null)
|
||||
return test;
|
||||
}
|
||||
if (conv.Item2 == last && currentPath.Contains(conv.Item1) == false && conv.Item4 != null)
|
||||
{
|
||||
|
@ -219,16 +219,16 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"canonical":"blue whale length",
|
||||
"canonical":"blue whale lengths",
|
||||
"aliases": [
|
||||
"bwl",
|
||||
"whales"
|
||||
]
|
||||
},
|
||||
{
|
||||
"canonical":"ångström",
|
||||
"canonical":"ångströms",
|
||||
"aliases": [
|
||||
"angstrom",
|
||||
"angstroms",
|
||||
"Å"
|
||||
]
|
||||
},
|
||||
@ -239,12 +239,6 @@
|
||||
"micrometres",
|
||||
"microns"
|
||||
]
|
||||
},
|
||||
{
|
||||
"canonical":"uncle jordan",
|
||||
"aliases":[
|
||||
"uj"
|
||||
]
|
||||
}
|
||||
],
|
||||
"linearPairs":[
|
||||
@ -273,7 +267,6 @@
|
||||
{"item1":"blue whale length", "item2": "m", "factor": 29.9},
|
||||
{"item1":"m", "item2": "ångström", "factor": 10000000000},
|
||||
{"item1":"smoot", "item2": "ft", "factor": 5.583333333333},
|
||||
{"item1":"uncle jordan", "item2": "cm", "factor":192.405},
|
||||
|
||||
{"item1":"floz", "item2":"mL", "factor":29.57344},
|
||||
{"item1":"L", "item2":"mL", "factor":1000},
|
||||
|
Loading…
Reference in New Issue
Block a user