Route the !dict fantasy command through the language-aware database too
All checks were successful
CI / check (push) Successful in 5m7s
All checks were successful
CI / check (push) Successful in 5m7s
This commit is contained in:
parent
3473d3afbd
commit
c57683b5e4
2 changed files with 13 additions and 7 deletions
|
|
@ -196,7 +196,8 @@ impl Engine {
|
|||
if self.service_uid("DictServ").is_some() {
|
||||
let query = words.collect::<Vec<_>>().join(" ");
|
||||
if !query.trim().is_empty() {
|
||||
ctx.dict_lookup(botuid.as_str(), chan, l.database, l.label, query);
|
||||
let (database, label) = echo_dictserv::database_for(l, ctx.lang());
|
||||
ctx.dict_lookup(botuid.as_str(), chan, database, label, query);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue