misc.wolfram: color
This commit is contained in:
parent
3a3e4fc4ad
commit
dfef61caa8
1 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,12 @@ const Command = require("../lib/command.js");
|
|||
const CATEGORY = "misc";
|
||||
|
||||
const fetch = require("node-fetch");
|
||||
const {safeString, parseHtmlEntities} = require("../lib/utils.js");
|
||||
const {
|
||||
getTopColor,
|
||||
pastelize,
|
||||
safeString,
|
||||
parseHtmlEntities,
|
||||
} = require("../lib/utils.js");
|
||||
|
||||
const yt = new Command("youtube");
|
||||
yt.addAlias("yt");
|
||||
|
@ -98,6 +103,7 @@ wolfram.callback = async function (msg, line, verboseFlag, _query) {
|
|||
if (verbose) {
|
||||
const embed = {
|
||||
title: `Result for: \`${safeString(query)}\``,
|
||||
color: getTopColor(msg, hf.bot.user.id, pastelize(hf.bot.user.id)),
|
||||
fields: [],
|
||||
footer: {
|
||||
icon_url: "http://www.wolframalpha.com/share.png",
|
||||
|
|
Loading…
Reference in a new issue