This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function maxIdx(list) { | |
| let maxNumber = -Infinity; | |
| let maxIndex = -1; | |
| for (let i = 0; i < list.length; i++) { | |
| if (list[i] > maxNumber) { | |
| maxNumber = list[i]; | |
| maxIndex = i; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {js: | |
| var emoji = "{args:0}" | |
| {ignore: | |
| let o = 2 | |
| let l = (emoji.length / 2) - 1 | |
| if (emoji.startsWith("<:") && emoji.endsWith(">")) { | |
| var url = `https://cdn.discordapp.com/emojis/${emoji.split(":")[2].substr(0,19)}.png` | |
| } else { | |
| let codePoint = emoji.codePointAt(0); | |
| let unicode = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {set:error|`-t ping user (user id)`}{if:{tryarg:0}|~|user|{if:{tryarg:1}|=||{get:error}|<@{arg:1}>}|{get:error}} |