Skip to content

Commit

Permalink
chord
Browse files Browse the repository at this point in the history
  • Loading branch information
LoL-Human committed May 3, 2021
1 parent 2f834e8 commit b15d8b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,15 @@ async function starts() {
break

// Information //
case 'chord':
if (args.length == 0) return reply(`Example: ${prefix + command} Melukis senja`)
query = args.join(" ")
get_result = await fetchJson(`https://api.lolhuman.xyz/api/chord?apikey=${apikey}&query=${query}`)
get_result = get_result.result
ini_txt = `Title : ${get_result.title}\n`
ini_txt += `Chord : \n${get_result.chord}`
reply(ini_txt)
break
case 'heroml':
if (args.length == 0) return reply(`Example: ${prefix + command} Fanny`)
hero = args.join(" ")
Expand Down

0 comments on commit b15d8b7

Please sign in to comment.