misc.search: make header text bold
This commit is contained in:
parent
e793cb287d
commit
477f49f473
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ search.callback = async function (msg, line) {
|
||||||
const res = await fetch(`${librex}/api.php?q=${query}&p=0&t=0`);
|
const res = await fetch(`${librex}/api.php?q=${query}&p=0&t=0`);
|
||||||
const results = await res.json().then((arr) => arr.splice(0, 5));
|
const results = await res.json().then((arr) => arr.splice(0, 5));
|
||||||
|
|
||||||
let out = `__Results for \`${safeString(line)}\`__\n`;
|
let out = `__**Results for \`${safeString(line)}\`**__\n`;
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
if (result.special_response) {
|
if (result.special_response) {
|
||||||
out += "> " + result.special_response.response.split("\n").join("\n> ");
|
out += "> " + result.special_response.response.split("\n").join("\n> ");
|
||||||
|
|
Loading…
Reference in a new issue